Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 5 additions & 9 deletions priv_aamp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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);
Expand Down
Loading