Browse Source

chromecast: autoclean in case of failure

A method should clean itself in case of failure.
pull/64/merge
Thomas Guillem 9 years ago
parent
commit
4b5e0dc653
  1. 14
      modules/stream_out/chromecast/cast.cpp

14
modules/stream_out/chromecast/cast.cpp

@ -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;
}

Loading…
Cancel
Save