mirror of https://github.com/mpv-player/mpv
audio/out/push: merge if branches with same condition
Cosmetic change.
This commit is contained in:
parent
afcf3e154a
commit
5d7f881bdc
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue