When an ES is removed, it is possible to set up a track that won't be
cleaned up and will remain dangling, causing a crash later. Make sure
we unregister the RTSP URL before cleaning up.
void RtspDelId( rtsp_stream_t *rtsp, rtsp_stream_id_t *id )
{
void RtspDelId( rtsp_stream_t *rtsp, rtsp_stream_id_t *id )
{
+ httpd_UrlDelete( id->url );
+
vlc_mutex_lock( &rtsp->lock );
for( int i = 0; i < rtsp->sessionc; i++ )
{
vlc_mutex_lock( &rtsp->lock );
for( int i = 0; i < rtsp->sessionc; i++ )
{
}
vlc_mutex_unlock( &rtsp->lock );
}
vlc_mutex_unlock( &rtsp->lock );
- httpd_UrlDelete( id->url );