gui/movieplayer: create and use a movieinfo copy (fixes timeshift playback)

This commit is contained in:
martii
2013-09-26 14:47:17 +02:00
committed by [CST] Focus
parent fd57dace0e
commit 87d5f4feb9

View File

@@ -508,7 +508,13 @@ void CMoviePlayerGui::PlayFile(void)
printf("IS FILE PLAYER: %s\n", is_file_player ? "true": "false" );
if(p_movie_info != NULL) {
MI_MOVIE_INFO mi;
if(p_movie_info) {
// p_movie_info may be invalidated by CRecordManager while we're still using it. Create and use a copy.
mi = *p_movie_info;
p_movie_info = &mi;
duration = p_movie_info->length * 60 * 1000;
int percent = CZapit::getInstance()->GetPidVolume(p_movie_info->epgId, currentapid, currentac3 == 1);
CZapit::getInstance()->SetVolumePercent(percent);