[rbp/omxplayer] fixed another m_flush which need protection.
authorgimli <ebsi4711@gmail.com>
Mon, 24 Dec 2012 20:52:44 +0000 (21:52 +0100)
committergimli <ebsi4711@gmail.com>
Mon, 24 Dec 2012 20:52:44 +0000 (21:52 +0100)
xbmc/cores/omxplayer/OMXPlayerAudio.cpp

index af25c43..d9bcccb 100644 (file)
@@ -421,7 +421,9 @@ bool OMXPlayerAudio::Decode(DemuxPacket *pkt, bool bDropPacket)
     {
       if(m_flush)
       {
+        CSingleLock lock(m_flushLock);
         m_flush = false;
+        lock.Leave();
         break;
       }