]> git.sesse.net Git - vlc/commitdiff
demux: ts: don't delete unknown group
authorFrancois Cartegnie <fcvlcdev@free.fr>
Fri, 6 Mar 2015 21:30:40 +0000 (22:30 +0100)
committerFrancois Cartegnie <fcvlcdev@free.fr>
Fri, 6 Mar 2015 21:43:22 +0000 (22:43 +0100)
modules/demux/ts.c

index 103abd1d940ee076b0bee37653f18dd0b6d7533e..51b6656cc3f2352f89047e764cac524f6379195c 100644 (file)
@@ -5657,7 +5657,8 @@ static void ts_pmt_Del( demux_t *p_demux, ts_pmt_t *pmt )
     ARRAY_RESET( pmt->e_streams );
     if( pmt->iod )
         IODFree( pmt->iod );
-    es_out_Control( p_demux->out, ES_OUT_DEL_GROUP, pmt->i_number );
+    if( pmt->i_number > -1 )
+        es_out_Control( p_demux->out, ES_OUT_DEL_GROUP, pmt->i_number );
     free( pmt );
 }