diff --git a/src/zapit/src/zapit.cpp b/src/zapit/src/zapit.cpp index 5fd430357..8e94e14b0 100644 --- a/src/zapit/src/zapit.cpp +++ b/src/zapit/src/zapit.cpp @@ -2473,6 +2473,17 @@ bool CZapit::StartPlayBack(CZapitChannel *thisChannel) pcrDemux->Start(); } + /* start video */ + if (video_pid) { +#if HAVE_CST_HARDWARE + videoDecoder->Start(0, pcr_pid, video_pid); + videoDemux->Start(); +#else + videoDemux->Start(); + videoDecoder->Start(0, pcr_pid, video_pid); +#endif + } + /* select audio output and start audio */ if (audio_pid) { SetAudioStreamType(thisChannel->getAudioChannel()->audioChannelType); @@ -2480,17 +2491,6 @@ bool CZapit::StartPlayBack(CZapitChannel *thisChannel) audioDecoder->Start(); } - /* start video */ - if (video_pid) { - #if HAVE_CST_HARDWARE - videoDecoder->Start(0, pcr_pid, video_pid); - videoDemux->Start(); - #else - videoDemux->Start(); - videoDecoder->Start(0, pcr_pid, video_pid); - #endif - } - #ifdef USE_VBI if(teletext_pid) videoDecoder->StartVBI(teletext_pid);