aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2013-01-10 09:50:43 +0100
committerMax Kellermann <max@duempel.org>2013-01-10 10:00:53 +0100
commit53117ac204cd99d9695dc317a78527b43c8e87b7 (patch)
treef95169c1d5e821946d25ef0cc208e4d23281d6b8 /src
parent51a8c109ab964810f5a5c439310f589d92cf1589 (diff)
downloadmpd-53117ac204cd99d9695dc317a78527b43c8e87b7.tar.gz
mpd-53117ac204cd99d9695dc317a78527b43c8e87b7.tar.xz
mpd-53117ac204cd99d9695dc317a78527b43c8e87b7.zip
DecoderThread: signal the client after decoder finishes
Fixes potential dead lock bug.
Diffstat (limited to 'src')
-rw-r--r--src/DecoderThread.cxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/DecoderThread.cxx b/src/DecoderThread.cxx
index 8ab157582..21653830b 100644
--- a/src/DecoderThread.cxx
+++ b/src/DecoderThread.cxx
@@ -416,6 +416,8 @@ decoder_run_song(struct decoder_control *dc,
"Failed to decode %s", error_uri);
g_free(allocated);
}
+
+ g_cond_signal(dc->client_cond);
}
static void