From a003c419c3c95794a4a8815fa459cebdda36c839 Mon Sep 17 00:00:00 2001 From: ejurgensen Date: Wed, 19 Sep 2018 08:12:40 +0200 Subject: [PATCH] [db] Add missing casts of time_skipped (fixes #593) The print mask for some reason uses int64, so time_skipped was too short --- src/db.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/db.c b/src/db.c index 5919fa8c..4c2e878b 100644 --- a/src/db.c +++ b/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)