Commit 71119a76 authored by Sébastien Escudier's avatar Sébastien Escudier

rtsp RollOverTcp : close the stream before deleting tracks.

Same problem than in 1d4c5a49
parent 51b60275
......@@ -1575,6 +1575,10 @@ static int RollOverTcp( demux_t *p_demux )
var_SetBool( p_demux, "rtsp-tcp", true );
/* We close the old RTSP session */
p_sys->rtsp->sendTeardownCommand( *p_sys->ms, NULL );
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];
......@@ -1589,10 +1593,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->sendTeardownCommand( *p_sys->ms, NULL );
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