0
0
mirror of https://github.com/mpv-player/mpv.git synced 2024-09-20 03:52:22 +02:00

audio/out/push: merge if branches with same condition

Cosmetic change.
This commit is contained in:
wm4 2017-01-09 13:32:04 +01:00
parent afcf3e154a
commit 5d7f881bdc

View File

@ -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)
wakeup_playthread(ao);
}
pthread_mutex_unlock(&p->lock);
return write_samples;
}