From 25a806a347ce420126eb75d82c5fb875eb0a5e0d Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Sat, 31 Oct 2009 17:02:12 +0100 Subject: player_control: protect command, state, error with a mutex Use GMutex/GCond instead of the notify library. Manually lock the player_control object before accessing the protected attributes. Use the GCond object to notify the player thread and the main thread. --- src/output_thread.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/output_thread.c') diff --git a/src/output_thread.c b/src/output_thread.c index 24a22f6df..ef8fe7418 100644 --- a/src/output_thread.c +++ b/src/output_thread.c @@ -359,7 +359,7 @@ ao_play(struct audio_output *ao) ao->chunk_finished = true; g_mutex_unlock(ao->mutex); - notify_signal(&pc.notify); + player_lock_signal(); g_mutex_lock(ao->mutex); return true; -- cgit v1.2.3