diff options
author | shdown <shdownnine@gmail.com> | 2014-08-30 13:11:09 +0400 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2014-08-30 15:15:37 +0200 |
commit | f49099b94d1b73a8b74da64d14ebd6f0e622f06b (patch) | |
tree | a752d9dd010b22a1d667d382ef799a2f377cf035 | |
parent | 5bc3b7c3687e7e3f9a4b5c9053a2618a33712f4a (diff) | |
download | mpv-f49099b94d1b73a8b74da64d14ebd6f0e622f06b.tar.bz2 mpv-f49099b94d1b73a8b74da64d14ebd6f0e622f06b.tar.xz |
demux: eliminate redundant check
pkt can't be NULL since it's initialized from ds->head, which is checked
at the beginning.
-rw-r--r-- | demux/demux.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/demux/demux.c b/demux/demux.c index 6b4f25be51..b139dbc922 100644 --- a/demux/demux.c +++ b/demux/demux.c @@ -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; |