make info copy only in timeshift mode

This commit is contained in:
Jacek Jendrzej
2014-04-20 21:03:21 +02:00
parent cb8a3c5518
commit 1bbf65c2d3
2 changed files with 5 additions and 3 deletions

View File

@@ -511,9 +511,11 @@ void CMoviePlayerGui::PlayFile(void)
MI_MOVIE_INFO mi;
if(p_movie_info) {
if(timeshift){
// 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;
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);