From 8e7d6eb1518f87926b6d1c34b9ca48e4b5836198 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Wed, 6 Nov 2013 23:12:04 +0100 Subject: DecoderInternal: wake up the player thread in _flush_chunk() Merge duplicate code. --- src/DecoderAPI.cxx | 4 ---- 1 file changed, 4 deletions(-) (limited to 'src/DecoderAPI.cxx') diff --git a/src/DecoderAPI.cxx b/src/DecoderAPI.cxx index aaa8bb17f..fbe4d98c0 100644 --- a/src/DecoderAPI.cxx +++ b/src/DecoderAPI.cxx @@ -312,7 +312,6 @@ do_send_tag(Decoder &decoder, const Tag &tag) /* there is a partial chunk - flush it, we want the tag in a new chunk */ decoder_flush_chunk(decoder); - decoder.dc.client_cond.signal(); } assert(decoder.chunk == nullptr); @@ -422,7 +421,6 @@ decoder_data(Decoder &decoder, if (dest.IsNull()) { /* the chunk is full, flush it */ decoder_flush_chunk(decoder); - dc.client_cond.signal(); continue; } @@ -442,7 +440,6 @@ decoder_data(Decoder &decoder, if (full) { /* the chunk is full, flush it */ decoder_flush_chunk(decoder); - dc.client_cond.signal(); } data = (const uint8_t *)data + nbytes; @@ -535,7 +532,6 @@ decoder_replay_gain(Decoder &decoder, replay gain values affect the following samples */ decoder_flush_chunk(decoder); - decoder.dc.client_cond.signal(); } } else decoder.replay_gain_serial = 0; -- cgit v1.2.3