[vlc-devel] [PATCH 1/1] live555: avoid NULL dereference if codec undefined

Tristan Matthews tmatth at videolan.org
Wed Dec 31 05:46:01 CET 2014


Refs #11938
---
 modules/access/live555.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/access/live555.cpp b/modules/access/live555.cpp
index b14898c..a86c439 100644
--- a/modules/access/live555.cpp
+++ b/modules/access/live555.cpp
@@ -1292,7 +1292,7 @@ static int Demux( demux_t *p_demux )
         {
             bool b;
             es_out_Control( p_demux->out, ES_OUT_GET_ES_STATE, tk->p_es, &b );
-            if( !b && tk->b_selected )
+            if( !b && tk->b_selected && p_sys->rtsp )
             {
                 tk->b_selected = false;
                 p_sys->rtsp->sendTeardownCommand( *tk->sub, NULL );
-- 
2.1.0




More information about the vlc-devel mailing list