From 6c2e38e8a2bf932309bf72750a2abc4a759d1033 Mon Sep 17 00:00:00 2001 From: vanhofen Date: Tue, 2 Jan 2024 00:43:08 +0100 Subject: [PATCH] zapit: align to ddt Origin commit data ------------------ Branch: ni/coolstream Commit: https://github.com/neutrino-images/ni-neutrino/commit/409b7b9df5e2025cea2767eca5bb343c0ad2d6a9 Author: vanhofen Date: 2024-01-02 (Tue, 02 Jan 2024) Origin message was: ------------------ - zapit: align to ddt ------------------ No further description and justification available within origin commit message! ------------------ This commit was generated by Migit --- src/zapit/src/zapit.cpp | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) 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);