mirror of https://github.com/mpv-player/mpv
demux: cosmetics: remove indirection
Let's not waste precious lines.
This commit is contained in:
parent
dd08018e9e
commit
0a1a5707bf
|
@ -428,10 +428,8 @@ static bool read_packet(struct demux_internal *in)
|
||||||
pthread_mutex_lock(&in->lock);
|
pthread_mutex_lock(&in->lock);
|
||||||
|
|
||||||
if (eof) {
|
if (eof) {
|
||||||
for (int n = 0; n < in->d_buffer->num_streams; n++) {
|
for (int n = 0; n < in->d_buffer->num_streams; n++)
|
||||||
struct demux_stream *ds = in->d_buffer->streams[n]->ds;
|
in->d_buffer->streams[n]->ds->eof = true;
|
||||||
ds->eof = true;
|
|
||||||
}
|
|
||||||
// If we had EOF previously, then don't wakeup (avoids wakeup loop)
|
// If we had EOF previously, then don't wakeup (avoids wakeup loop)
|
||||||
if (!in->last_eof) {
|
if (!in->last_eof) {
|
||||||
if (in->wakeup_cb)
|
if (in->wakeup_cb)
|
||||||
|
|
Loading…
Reference in New Issue