Skip to content
Browse files

Merge pull request #3071 from popcornmix/uninit_audio

[rbp/omxplayer] Fix uninitialised variable that can lose audio packet
  • Loading branch information...
2 parents 62aafb9 + ce7a8c1 commit 2716244dd2d7f7b651db1e585e0b94fdb0f0fba1 @huceke huceke committed
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)

0 comments on commit 2716244

Please sign in to comment.
Something went wrong with that request. Please try again.