Commit 9c9d03c5 authored by Sébastien Escudier's avatar Sébastien Escudier

rtsp RollOverTcp : close the stream before deleting tracks.

Same problem than in 1d4c5a496b8b6d21c20ccb7598216195069f346e
parent 5d2aef66
......@@ -1506,6 +1506,10 @@ static int RollOverTcp( demux_t *p_demux )
var_SetBool( p_demux, "rtsp-tcp", true );
/* We close the old RTSP session */
p_sys->rtsp->teardownMediaSession( *p_sys->ms );
Medium::close( p_sys->ms );
RTSPClient::close( p_sys->rtsp );
for( i = 0; i < p_sys->i_track; i++ )
{
live_track_t *tk = p_sys->track[i];
......@@ -1520,10 +1524,6 @@ static int RollOverTcp( demux_t *p_demux )
if( p_sys->i_track ) free( p_sys->track );
if( p_sys->p_out_asf ) stream_Delete( p_sys->p_out_asf );
p_sys->rtsp->teardownMediaSession( *p_sys->ms );
Medium::close( p_sys->ms );
RTSPClient::close( p_sys->rtsp );
p_sys->ms = NULL;
p_sys->rtsp = NULL;
p_sys->track = 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