[vlc-commits] live555 : don't call ES_OUT_SET_ES_STATE with NULL pointer

Sébastien Escudier git at videolan.org
Thu Feb 23 14:19:08 CET 2012


vlc | branch: master | Sébastien Escudier <sebastien-devel at celeos.eu> | Thu Feb 23 14:14:36 2012 +0100| [2dce8e0c3d0b60c888d75e1d684d743e8a260083] | committer: Sébastien Escudier

live555 : don't call ES_OUT_SET_ES_STATE with NULL pointer

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

 modules/demux/live555.cpp |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/modules/demux/live555.cpp b/modules/demux/live555.cpp
index db83afc..28afd33 100644
--- a/modules/demux/live555.cpp
+++ b/modules/demux/live555.cpp
@@ -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++ )



More information about the vlc-commits mailing list