output/osx: signal the GCond while mutex is locked
This commit is contained in:
parent
13cdc9a9f8
commit
e7abdab58d
@ -143,8 +143,8 @@ osx_render(void *vdata,
|
|||||||
if (od->pos >= od->buffer_size)
|
if (od->pos >= od->buffer_size)
|
||||||
od->pos = 0;
|
od->pos = 0;
|
||||||
|
|
||||||
g_mutex_unlock(od->mutex);
|
|
||||||
g_cond_signal(od->condition);
|
g_cond_signal(od->condition);
|
||||||
|
g_mutex_unlock(od->mutex);
|
||||||
|
|
||||||
buffer->mDataByteSize = buffer_size;
|
buffer->mDataByteSize = buffer_size;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user