From 5d7f881bdc5c4d961ca341a1ddc30e297e06166b Mon Sep 17 00:00:00 2001 From: wm4 Date: Mon, 9 Jan 2017 13:32:04 +0100 Subject: audio/out/push: merge if branches with same condition Cosmetic change. --- audio/out/push.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'audio') diff --git a/audio/out/push.c b/audio/out/push.c index a4a6808d7f..a722d19ea2 100644 --- a/audio/out/push.c +++ b/audio/out/push.c @@ -251,12 +251,11 @@ static int play(struct ao *ao, void **data, int samples, int flags) if (got_data) { p->still_playing = true; p->expected_end_time = 0; - } - // If we don't have new data, the decoder thread basically promises it - // will send new data as soon as it's available. - if (got_data) + // If we don't have new data, the decoder thread basically promises it + // will send new data as soon as it's available. wakeup_playthread(ao); + } pthread_mutex_unlock(&p->lock); return write_samples; } -- cgit v1.2.3