Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

[rbp/omxplayer] Fix uninitialised variable that can lose audio packet

The uninitialised variable meant the first run through Decode goes through the non-passthrough path (when passthrough)
and so doesn't get correctly submitted and is discarded
  • Loading branch information...
commit ce7a8c1ca996d3d17665a8fa604ea2ef89face68 1 parent 60d1fd5
@popcornmix popcornmix authored
Showing with 3 additions and 0 deletions.
  1. +3 −0  xbmc/cores/omxplayer/OMXPlayerAudio.cpp
View
3  xbmc/cores/omxplayer/OMXPlayerAudio.cpp
@@ -148,6 +148,9 @@ void OMXPlayerAudio::OpenStream(CDVDStreamInfo &hints, COMXAudioCodecOMX *codec)
m_stalled = m_messageQueue.GetPacketCount(CDVDMsg::DEMUXER_PACKET) == 0;
m_use_passthrough = (CSettings::Get().GetInt("audiooutput.mode") == AUDIO_HDMI) ? true : false ;
m_use_hw_decode = g_advancedSettings.m_omxHWAudioDecode;
+ m_format.m_dataFormat = GetDataFormat(m_hints);
+ m_format.m_sampleRate = 0;
+ m_format.m_channelLayout = 0;
}
bool OMXPlayerAudio::CloseStream(bool bWaitForBuffers)
Please sign in to comment.
Something went wrong with that request. Please try again.