]> git.sesse.net Git - vlc/commitdiff
live555 : don't call ES_OUT_SET_ES_STATE with NULL pointer
authorSébastien Escudier <sebastien-devel@celeos.eu>
Thu, 23 Feb 2012 13:14:36 +0000 (14:14 +0100)
committerSébastien Escudier <sebastien-devel@celeos.eu>
Thu, 23 Feb 2012 13:19:02 +0000 (14:19 +0100)
modules/demux/live555.cpp

index db83afcf189214dad4e5b53d596da526fcefbc87..28afd33a6c929688e89827e3600bd3057a9c94d7 100644 (file)
@@ -1964,7 +1964,8 @@ static void StreamClose( void *p_private )
     p_sys->event_rtsp = 0xff;
     p_sys->event_data = 0xff;
 
-    es_out_Control( p_demux->out, ES_OUT_SET_ES_STATE, tk->p_es, false );
+    if( tk->p_es )
+        es_out_Control( p_demux->out, ES_OUT_SET_ES_STATE, tk->p_es, false );
 
     int nb_tracks = 0;
     for( int i = 0; i < p_sys->i_track; i++ )