Skip to content

Commit

Permalink
[ae/darwin] we don't need another mutex when we already have one
Browse files Browse the repository at this point in the history
  • Loading branch information
Jonathan Marshall committed Feb 25, 2014
1 parent 8858509 commit ca63894
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 2 deletions.
1 change: 0 additions & 1 deletion xbmc/cores/AudioEngine/Sinks/AESinkDARWINIOS.cpp
Expand Up @@ -252,7 +252,6 @@ unsigned int CAAudioUnitSink::write(uint8_t *data, unsigned int frames)


void CAAudioUnitSink::drain() void CAAudioUnitSink::drain()
{ {
CCriticalSection mutex;
unsigned int bytes = m_buffer->GetReadSize(); unsigned int bytes = m_buffer->GetReadSize();
while (bytes) while (bytes)
{ {
Expand Down
1 change: 0 additions & 1 deletion xbmc/cores/AudioEngine/Sinks/AESinkDARWINOSX.cpp
Expand Up @@ -576,7 +576,6 @@ unsigned int CAESinkDARWINOSX::AddPackets(uint8_t *data, unsigned int frames, bo


void CAESinkDARWINOSX::Drain() void CAESinkDARWINOSX::Drain()
{ {
CCriticalSection mutex;
int bytes = m_buffer->GetReadSize(); int bytes = m_buffer->GetReadSize();
while (bytes) while (bytes)
{ {
Expand Down

0 comments on commit ca63894

Please sign in to comment.