mirror of
https://github.com/owntone/owntone-server.git
synced 2025-01-27 06:33:21 -05:00
[db] Add missing casts of time_skipped (fixes #593)
The print mask for some reason uses int64, so time_skipped was too short
This commit is contained in:
parent
4a16384d3a
commit
a003c419c3
4
src/db.c
4
src/db.c
@ -2869,7 +2869,7 @@ db_file_add(struct media_file_info *mfi)
|
||||
mfi->tv_episode_sort, mfi->tv_season_num, mfi->album_artist, mfi->album_artist, mfi->album,
|
||||
mfi->title_sort, mfi->artist_sort, mfi->album_sort, mfi->composer_sort,
|
||||
mfi->album_artist_sort, mfi->virtual_path, mfi->directory_id, mfi->date_released,
|
||||
mfi->skip_count, mfi->time_skipped);
|
||||
mfi->skip_count, (int64_t)mfi->time_skipped);
|
||||
|
||||
if (!query)
|
||||
{
|
||||
@ -2947,7 +2947,7 @@ db_file_update(struct media_file_info *mfi)
|
||||
mfi->album_artist, mfi->album_artist, mfi->album,
|
||||
mfi->title_sort, mfi->artist_sort, mfi->album_sort,
|
||||
mfi->composer_sort, mfi->album_artist_sort,
|
||||
mfi->virtual_path, mfi->directory_id, mfi->date_released, mfi->skip_count, mfi->time_skipped,
|
||||
mfi->virtual_path, mfi->directory_id, mfi->date_released, mfi->skip_count, (int64_t)mfi->time_skipped,
|
||||
mfi->id);
|
||||
|
||||
if (!query)
|
||||
|
Loading…
x
Reference in New Issue
Block a user