Permalink
Browse files

Merge pull request #3561 from popcornmix/amp_deinit_crash

[rbp/omxplayer] Fix crash on stopping mp3 playback with amplification
  • Loading branch information...
2 parents 81fd4d3 + dd1903d commit fd297a5e7f83a808e7bebba21d7e3089c8426455 @huceke huceke committed Nov 4, 2013
Showing with 4 additions and 0 deletions.
  1. +4 −0 xbmc/cores/omxplayer/OMXAudio.cpp
@@ -1087,6 +1087,10 @@ unsigned int COMXAudio::AddPackets(const void* data, unsigned int len, double dt
void COMXAudio::UpdateAttenuation()
{
+ // always called with m_critSection lock held
+ if (!m_Initialized || m_Passthrough)
+ return;
+
if (m_amplification == 1.0)
{
ApplyVolume();

0 comments on commit fd297a5

Please sign in to comment.