[vlc-commits] demux: ts: remove useless check (cid #1349948)

Francois Cartegnie git at videolan.org
Wed Nov 22 18:04:59 CET 2017


vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Wed Nov 22 14:49:37 2017 +0100| [aa70bdf272a58147208707f712ad75e817039432] | committer: Francois Cartegnie

demux: ts: remove useless check (cid #1349948)

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=aa70bdf272a58147208707f712ad75e817039432
---

 modules/demux/mpeg/ts_streams.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/demux/mpeg/ts_streams.c b/modules/demux/mpeg/ts_streams.c
index 68de1e0eca..ef42e120c9 100644
--- a/modules/demux/mpeg/ts_streams.c
+++ b/modules/demux/mpeg/ts_streams.c
@@ -190,7 +190,7 @@ ts_es_t * ts_es_New( ts_pmt_t *p_program )
 
 static void ts_pes_es_Clean( demux_t *p_demux, ts_es_t *p_es )
 {
-    if( p_es && p_es->id )
+    if( p_es->id )
     {
         /* Ensure we don't wait for overlap hacks #14257 */
         es_out_Control( p_demux->out, ES_OUT_SET_ES_STATE, p_es->id, false );



More information about the vlc-commits mailing list