sap.c: fix too early free in demux

parent 16e04b75
......@@ -427,7 +427,6 @@ static int OpenDemux( vlc_object_t *p_this )
p_demux->pf_demux = Demux;
free( psz_sdp );
if( p_sdp ) FreeSDP( p_sdp );
return VLC_SUCCESS;
error:
......@@ -591,6 +590,7 @@ static int Demux( demux_t *p_demux )
PLAYLIST_APPEND, PLAYLIST_END );
vlc_object_release( p_playlist );
if( p_sdp ) FreeSDP( p_sdp );
return VLC_SUCCESS;
}
......
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