diff --git a/priv_aamp.cpp b/priv_aamp.cpp index 9d572f636..d02f7faa4 100644 --- a/priv_aamp.cpp +++ b/priv_aamp.cpp @@ -5690,15 +5690,7 @@ void PrivateInstanceAAMP::TuneHelper(TuneType tuneType, bool seekWhilePaused) } TeardownStream(newTune|| (eTUNETYPE_RETUNE == tuneType)); - if (!newTune) - { - // Capture the current CC enabled state only for non-new tunes (e.g. retune/seek). - // For brand new tunes we intentionally do NOT restore any previous CC state; - // previousCCEnabled remains at its default (false) so RestoreCC() starts CC - // from a clean, disabled state for new content. - previousCCEnabled = PlayerCCManager::GetInstance()->GetStatus(); - AAMPLOG_WARN("previousCCEnabled:%d isCCinBand:%d", previousCCEnabled, mIsInbandCC); - } + if(SocUtils::ResetNewSegmentEvent()) { // Send new SEGMENT event only on all trickplay and trickplay -> play, not on pause -> play / seek while paused @@ -6064,6 +6056,10 @@ void PrivateInstanceAAMP::TuneHelper(TuneType tuneType, bool seekWhilePaused) IncreaseGSTBufferSize(); } + // Retrieve the current closed‑captioning state and log it along with the in‑band CC flag. + previousCCEnabled = PlayerCCManager::GetInstance()->GetStatus(); + AAMPLOG_WARN("previousCCEnabled:%d isCCinBand:%d", previousCCEnabled, mIsInbandCC); + if (!mbUsingExternalPlayer) { StreamSink *sink = AampStreamSinkManager::GetInstance().GetStreamSink(this);