[vlc-commits] live555: avoid NULL dereference if codec undefined

Tristan Matthews git at videolan.org
Wed Dec 31 16:06:53 CET 2014


vlc | branch: master | Tristan Matthews <tmatth at videolan.org> | Tue Dec 30 23:39:57 2014 -0500| [d1282d53331f4f1982ed070b6a5fd14879349bfc] | committer: Tristan Matthews

live555: avoid NULL dereference if codec undefined

Refs #11938

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

 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 );



More information about the vlc-commits mailing list