Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge pull request #3071 from popcornmix/uninit_audio

[rbp/omxplayer] Fix uninitialised variable that can lose audio packet
  • Loading branch information...
commit 2716244dd2d7f7b651db1e585e0b94fdb0f0fba1 2 parents 62aafb9 + ce7a8c1
huceke huceke authored
Showing with 3 additions and 0 deletions.
  1. +3 −0  xbmc/cores/omxplayer/OMXPlayerAudio.cpp
3  xbmc/cores/omxplayer/OMXPlayerAudio.cpp
View
@@ -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.