Skip to content

Commit

Permalink
Merge pull request #23167 from mglae/nexus_AudioSinkAE_resample
Browse files Browse the repository at this point in the history
[Nexus] ViderPlayerAudio: fix setting of resample mode on stream change
  • Loading branch information
thexai committed Apr 29, 2023
2 parents 00398d5 + 807ce2d commit 5169c10
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions xbmc/cores/VideoPlayer/VideoPlayerAudio.cpp
Expand Up @@ -525,6 +525,8 @@ bool CVideoPlayerAudio::ProcessDecoderOutput(DVDAudioFrame &audioframe)
if (!m_audioSink.Create(audioframe, m_streaminfo.codec, m_synctype == SYNC_RESAMPLE))
CLog::Log(LOGERROR, "{} - failed to create audio renderer", __FUNCTION__);

m_prevsynctype = -1;

if (m_syncState == IDVDStreamPlayer::SYNC_INSYNC)
m_audioSink.Resume();
}
Expand Down

0 comments on commit 5169c10

Please sign in to comment.