Skip to content
Browse files

Merge pull request #3749 from popcornmix/fullscreen_seg

[rbp/omxplayer] Avoid segfault when switching fullscreen
  • Loading branch information...
2 parents aff4398 + 4168c18 commit 70ef5d7641079262c62f9ee03fea91b4edc6ac75 @popcornmix popcornmix committed Dec 10, 2013
Showing with 2 additions and 0 deletions.
  1. +2 −0 xbmc/cores/omxplayer/OMXAudio.cpp
View
2 xbmc/cores/omxplayer/OMXAudio.cpp
@@ -1198,6 +1198,7 @@ int COMXAudio::SetPlaySpeed(int iSpeed)
void COMXAudio::RegisterAudioCallback(IAudioCallback *pCallback)
{
+ CSingleLock lock (m_critSection);
if(!m_Passthrough && !m_HWDecode)
{
m_pCallback = pCallback;
@@ -1210,6 +1211,7 @@ void COMXAudio::RegisterAudioCallback(IAudioCallback *pCallback)
void COMXAudio::UnRegisterAudioCallback()
{
+ CSingleLock lock (m_critSection);
m_pCallback = NULL;
}

0 comments on commit 70ef5d7

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