summaryrefslogtreecommitdiff
path: root/audio.c
diff options
context:
space:
mode:
authorThomas Reufer <thomas@reufer.ch>2014-01-07 16:36:27 +0100
committerThomas Reufer <thomas@reufer.ch>2014-01-07 16:36:27 +0100
commit4e710fc5c2bf2e2e33518eb3c537b7022085bda9 (patch)
treeea4afd9fa90c6c2e15a6b8f8777e6eca087a04fb /audio.c
parent2741f31236bfbe2087095af7320183cf863ae02e (diff)
downloadvdr-plugin-rpihddevice-0.0.6a.tar.gz
vdr-plugin-rpihddevice-0.0.6a.tar.bz2
2013-12-16: Version 0.0.6a0.0.6a
-------------------------- - fixed: - removed OMX mutex
Diffstat (limited to 'audio.c')
-rw-r--r--audio.c13
1 files changed, 6 insertions, 7 deletions
diff --git a/audio.c b/audio.c
index 1cb3734..cacc47a 100644
--- a/audio.c
+++ b/audio.c
@@ -649,11 +649,8 @@ int cAudioDecoder::WriteData(const unsigned char *buf, unsigned int length, uint
if (m_parser->Append(buf, length))
{
m_pts = pts;
- if (!m_parser->Empty())
- {
- m_ready = false;
- m_wait->Signal();
- }
+ m_ready = false;
+ m_wait->Signal();
ret = length;
}
m_mutex->Unlock();
@@ -830,8 +827,10 @@ void cAudioDecoder::Action(void)
if (buf && buf->nFilledLen > 0)
bufferFull = true;
else
- if (m_ready)
- m_wait->Wait(50);
+ {
+ m_ready = true;
+ m_wait->Wait(50);
+ }
}
// we have a buffer to empty