Commit 4b5e0dc6 authored by Thomas Guillem's avatar Thomas Guillem

chromecast: autoclean in case of failure

A method should clean itself in case of failure.
parent 7da95868
......@@ -685,7 +685,14 @@ bool sout_stream_sys_t::startSoutChain(sout_stream_t *p_stream,
else
++it;
}
return out_streams.empty() == false;
if (out_streams.empty())
{
stopSoutChain( p_stream );
access_out_live.clear();
return false;
}
return true;
}
bool sout_stream_sys_t::UpdateOutput( sout_stream_t *p_stream )
......@@ -888,13 +895,8 @@ bool sout_stream_sys_t::UpdateOutput( sout_stream_t *p_stream )
<< ",access=chromecast-http";
if ( !startSoutChain( p_stream, new_streams, ssout.str() ) )
{
p_intf->requestPlayerStop();
sout_StreamChainDelete( p_out, NULL );
access_out_live.clear();
p_out = NULL;
}
return true;
}
......
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