From 5bc48e28e3de5e391ab03767c789fc8b97ebacf6 Mon Sep 17 00:00:00 2001 From: limes007 <39467727+limes007@users.noreply.github.com> Date: Sun, 27 May 2018 23:29:39 +0200 Subject: [PATCH] correct length in movie-info during "stop" --- src/gui/movieplayer.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/gui/movieplayer.cpp b/src/gui/movieplayer.cpp index 88c1b448c..1bbf5f844 100644 --- a/src/gui/movieplayer.cpp +++ b/src/gui/movieplayer.cpp @@ -2348,6 +2348,9 @@ void CMoviePlayerGui::handleMovieBrowser(neutrino_msg_t msg, int /*position*/) p_movie_info->dateOfLastPlay = current_time.time; current_time.time = time(NULL); p_movie_info->bookmarks.lastPlayStop = position / 1000; + if (p_movie_info->length == 0) { + p_movie_info->length = (float)duration / 60 / 1000 + 0.5; + } cMovieInfo.saveMovieInfo(*p_movie_info); //p_movie_info->fileInfoStale(); //TODO: we might to tell the Moviebrowser that the movie info has changed, but this could cause long reload times when reentering the Moviebrowser }