1
0
mirror of https://github.com/mpv-player/mpv synced 2024-12-14 10:55:43 +00:00

demux: do not add packets between refresh seek requested and done

Could cause strange issues on seeks or track switches, was only visible
as race condition.
This commit is contained in:
wm4 2016-08-08 11:13:43 +02:00
parent 56c52bd2e1
commit 896a97c2e2

View File

@ -476,7 +476,7 @@ void demux_add_packet(struct sh_stream *stream, demux_packet_t *dp)
}
}
if (!ds->selected || in->seeking || drop) {
if (!ds->selected || ds->need_refresh || in->seeking || drop) {
pthread_mutex_unlock(&in->lock);
talloc_free(dp);
return;