mirror of
https://github.com/mpv-player/mpv.git
synced 2024-09-20 12:02:23 +02:00
demux: on queue overflow wake up reader thread on EOF only
This seems to make more sense.
This commit is contained in:
parent
49ae599883
commit
d46c9c2e62
@ -736,10 +736,10 @@ static bool read_packet(struct demux_internal *in)
|
||||
if (eof && !ds->eof) {
|
||||
if (in->wakeup_cb)
|
||||
in->wakeup_cb(in->wakeup_cb_ctx);
|
||||
pthread_cond_signal(&in->wakeup);
|
||||
}
|
||||
ds->eof |= eof;
|
||||
}
|
||||
pthread_cond_signal(&in->wakeup);
|
||||
return false;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user