output/osx: don't drain the buffer when closing
Eliminate an unnecessary source of deadlocks.
This commit is contained in:
parent
e7abdab58d
commit
596f36bb78
1
NEWS
1
NEWS
|
@ -17,6 +17,7 @@ ver 0.16.4 (2011/??/??)
|
|||
* output:
|
||||
- alsa: fix SIGFPE when alsa announces a period size of 0
|
||||
- httpd: don't warn on client disconnect
|
||||
- osx: don't drain the buffer when closing
|
||||
- pulse: fix deadlock when resuming the stream
|
||||
- pulse: fix deadlock when the stream was suspended
|
||||
|
||||
|
|
|
@ -95,12 +95,6 @@ static void osx_output_close(void *data)
|
|||
{
|
||||
struct osx_output *od = data;
|
||||
|
||||
g_mutex_lock(od->mutex);
|
||||
while (od->len) {
|
||||
g_cond_wait(od->condition, od->mutex);
|
||||
}
|
||||
g_mutex_unlock(od->mutex);
|
||||
|
||||
AudioOutputUnitStop(od->au);
|
||||
AudioUnitUninitialize(od->au);
|
||||
CloseComponent(od->au);
|
||||
|
|
Loading…
Reference in New Issue