From 957416a392be732f074a000b71014e5972da2bda Mon Sep 17 00:00:00 2001 From: "[CST] Focus" Date: Fri, 16 Jan 2015 14:38:49 +0300 Subject: [PATCH] gui/movieplayer.cpp: fix radio recordings playback Origin commit data ------------------ Branch: ni/coolstream Commit: https://github.com/neutrino-images/ni-neutrino/commit/204d029e26daf219f63a490256b6ec2ee9784835 Author: [CST] Focus Date: 2015-01-16 (Fri, 16 Jan 2015) ------------------ No further description and justification available within origin commit message! ------------------ This commit was generated by Migit --- src/gui/movieplayer.cpp | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/gui/movieplayer.cpp b/src/gui/movieplayer.cpp index 7fda90c7f..208a71383 100644 --- a/src/gui/movieplayer.cpp +++ b/src/gui/movieplayer.cpp @@ -348,15 +348,14 @@ void CMoviePlayerGui::fillPids() vpid = p_movie_info->epgVideoPid; vtype = p_movie_info->VideoType; - /* FIXME: better way to detect TS recording */ - if (!vpid) { - is_file_player = true; - return; - } numpida = 0; currentapid = 0; + /* FIXME: better way to detect TS recording */ if (!p_movie_info->audioPids.empty()) { currentapid = p_movie_info->audioPids[0].epgAudioPid; currentac3 = p_movie_info->audioPids[0].atype; + } else if (!vpid) { + is_file_player = true; + return; } for (int i = 0; i < (int)p_movie_info->audioPids.size(); i++) { apids[i] = p_movie_info->audioPids[i].epgAudioPid;