From 3be1cdf8e0488a933371a6a45ced720d2aa67905 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Wed, 25 Mar 2009 18:04:41 +0100 Subject: output_all: synchronize playback with a notify object Use audio_output_client_notify instead of g_usleep(1ms) in audio_output_all_wait() to synchronize with the output_thread. Signal the audio_output_client_notify object in ao_play(). --- src/output_thread.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/output_thread.c') diff --git a/src/output_thread.c b/src/output_thread.c index 62b893074..b545a62be 100644 --- a/src/output_thread.c +++ b/src/output_thread.c @@ -155,6 +155,8 @@ static void ao_play(struct audio_output *ao) ao->chunk_finished = true; g_mutex_unlock(ao->mutex); + + notify_signal(&audio_output_client_notify); } static void ao_pause(struct audio_output *ao) -- cgit v1.2.3