From 81acb5e8145ab3874917deeeab7bf4417f74376c Mon Sep 17 00:00:00 2001 From: satbaby Date: Sun, 5 Jun 2011 11:29:41 +0000 Subject: [PATCH] zapit: Workaround for Radio 60er/70er git-svn-id: file:///home/bas/coolstream_public_svn/THIRDPARTY/applications/neutrino-experimental@1519 e54a6e83-5905-42d5-8d5c-058d10e6a962 --- src/zapit/src/zapit.cpp | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/src/zapit/src/zapit.cpp b/src/zapit/src/zapit.cpp index 238c93e09..272df99ec 100644 --- a/src/zapit/src/zapit.cpp +++ b/src/zapit/src/zapit.cpp @@ -109,7 +109,7 @@ bool playing = false; char pipzap = 0; bool g_list_changed = false; // flag to indicate, allchans was changed int sig_delay = 2; // seconds between signal check - +bool mute_true_false = false; /* variables for EN 50494 (a.k.a Unicable) */ int uni_scr = -1; /* the unicable SCR address, -1 == no unicable */ int uni_qrg = 0; /* the unicable frequency in MHz, 0 == from spec */ @@ -1615,10 +1615,14 @@ DBG("NVOD insert %llx\n", CREATE_CHANNEL_ID_FROM_SERVICE_ORIGINALNETWORK_TRANSPO //if(!audioDecoder) audioDecoder = new CAudio(); if(!audioDecoder) break; //printf("[zapit] mute %d\n", msgBoolean.truefalse); - if (msgBoolean.truefalse) + if (msgBoolean.truefalse){ audioDecoder->mute(); - else + mute_true_false = true; + } + else{ audioDecoder->unmute(); + mute_true_false = false; + } break; } @@ -1973,6 +1977,8 @@ int startPlayBack(CZapitChannel *thisChannel) printf("[zapit] starting %s audio\n", audioStr); audioDemux->Start(); audioDecoder->Start(); + if(!mute_true_false) + audioDecoder->unmute(); } /* start video */ @@ -2005,7 +2011,8 @@ int stopPlayBack(bool stop_camd) } ca->SendPMT(0, (unsigned char*) "", 0, CA_SLOT_TYPE_SMARTCARD); } - + if(!standby && !mute_true_false) + audioDecoder->mute(); printf("stopPlayBack: standby %d forced %d\n", standby, playbackStopForced); //if(standby || !playing)