mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-27 07:23:09 +02:00
correct length in movie-info during "stop"
This commit is contained in:
@@ -2348,6 +2348,9 @@ void CMoviePlayerGui::handleMovieBrowser(neutrino_msg_t msg, int /*position*/)
|
|||||||
p_movie_info->dateOfLastPlay = current_time.time;
|
p_movie_info->dateOfLastPlay = current_time.time;
|
||||||
current_time.time = time(NULL);
|
current_time.time = time(NULL);
|
||||||
p_movie_info->bookmarks.lastPlayStop = position / 1000;
|
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);
|
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
|
//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
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user