mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-30 17:01:08 +02:00
gui/movieplayer: create and use a movieinfo copy (fixes timeshift playback)
Origin commit data
------------------
Commit: 87d5f4feb9
Author: martii <m4rtii@gmx.de>
Date: 2013-09-26 (Thu, 26 Sep 2013)
This commit is contained in:
@@ -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);
|
||||
|
Reference in New Issue
Block a user