Skip to content
This repository
Browse code

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 authored August 07, 2013

Showing 1 changed file with 3 additions and 0 deletions. Show diff stats Hide diff stats

  1. 3  xbmc/cores/omxplayer/OMXPlayerAudio.cpp
3  xbmc/cores/omxplayer/OMXPlayerAudio.cpp
@@ -148,6 +148,9 @@ void OMXPlayerAudio::OpenStream(CDVDStreamInfo &hints, COMXAudioCodecOMX *codec)
148 148
   m_stalled         = m_messageQueue.GetPacketCount(CDVDMsg::DEMUXER_PACKET) == 0;
149 149
   m_use_passthrough = (CSettings::Get().GetInt("audiooutput.mode") == AUDIO_HDMI) ? true : false ;
150 150
   m_use_hw_decode   = g_advancedSettings.m_omxHWAudioDecode;
  151
+  m_format.m_dataFormat    = GetDataFormat(m_hints);
  152
+  m_format.m_sampleRate    = 0;
  153
+  m_format.m_channelLayout = 0;
151 154
 }
152 155
 
153 156
 bool OMXPlayerAudio::CloseStream(bool bWaitForBuffers)

0 notes on commit 2716244

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