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