Commit d1282d53 authored by Tristan Matthews's avatar Tristan Matthews

live555: avoid NULL dereference if codec undefined

Refs #11938
parent ff66d141
......@@ -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