From 7e8573d8432f386927e9737c3a66af35631359df Mon Sep 17 00:00:00 2001 From: Gnanesha Date: Sat, 24 Jan 2026 18:19:16 -0500 Subject: [PATCH] VPLAY-12203: - Subtitles Fails to display after Ad break point on VOD asset on perform FF till the ad break point Reason for Change: fix inband CC resume from ad to content and content to ad Test Guidance: Check the ticket Risk: Low Signed-off-by: Gnanesha --- priv_aamp.cpp | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) 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);