Commit b1afb643 authored by Tristan Matthews's avatar Tristan Matthews Committed by Jean-Baptiste Kempf

live555: avoid NULL dereference if codec undefined

Refs #11938

(cherry picked from commit d1282d53331f4f1982ed070b6a5fd14879349bfc)
Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
parent 548b27b1
......@@ -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 );
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment