mirror of
https://github.com/mpv-player/mpv
synced 2025-01-01 12:22:22 +00:00
demux: eliminate redundant check
pkt can't be NULL since it's initialized from ds->head, which is checked at the beginning.
This commit is contained in:
parent
5bc3b7c368
commit
f49099b94d
@ -500,7 +500,7 @@ static struct demux_packet *dequeue_packet(struct demux_stream *ds)
|
||||
ds->base_ts = ts;
|
||||
|
||||
// This implies this function is actually called from "the" user thread.
|
||||
if (pkt && pkt->pos >= 0)
|
||||
if (pkt->pos >= 0)
|
||||
ds->in->d_user->filepos = pkt->pos;
|
||||
|
||||
return pkt;
|
||||
|
Loading…
Reference in New Issue
Block a user