mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-09-01 09:51:22 +02:00
gui/movieplayer.cpp: fix crash, always copy movie info, pointer invalidated on milist.clear()
This commit is contained in:
@@ -690,11 +690,8 @@ bool CMoviePlayerGui::PlayFileStart(void)
|
|||||||
printf("IS FILE PLAYER: %s\n", is_file_player ? "true": "false" );
|
printf("IS FILE PLAYER: %s\n", is_file_player ? "true": "false" );
|
||||||
|
|
||||||
if (p_movie_info) {
|
if (p_movie_info) {
|
||||||
if (timeshift != TSHIFT_MODE_OFF) {
|
movie_info = *p_movie_info;
|
||||||
// p_movie_info may be invalidated by CRecordManager while we're still using it. Create and use a copy.
|
p_movie_info = &movie_info;
|
||||||
movie_info = *p_movie_info;
|
|
||||||
p_movie_info = &movie_info;
|
|
||||||
}
|
|
||||||
|
|
||||||
duration = p_movie_info->length * 60 * 1000;
|
duration = p_movie_info->length * 60 * 1000;
|
||||||
int percent = CZapit::getInstance()->GetPidVolume(p_movie_info->epgId, currentapid, currentac3 == 1);
|
int percent = CZapit::getInstance()->GetPidVolume(p_movie_info->epgId, currentapid, currentac3 == 1);
|
||||||
|
Reference in New Issue
Block a user