Commit df4c17d6 authored by Marian Ďurkovič's avatar Marian Ďurkovič

Properly attach stream_Demux object to its parent.

Now :demuxdump-file=foo works correctly with RTP input.
Signed-off-by: default avatarRémi Denis-Courmont <remi@remlab.net>
parent 067facf9
......@@ -92,9 +92,12 @@ stream_t *__stream_DemuxNew( vlc_object_t *p_obj, const char *psz_demux,
return NULL;
}
vlc_object_attach( s, p_obj );
if( vlc_thread_create( s, "stream out", DStreamThread,
VLC_THREAD_PRIORITY_INPUT ) )
{
vlc_object_detach( s );
stream_CommonDelete( s );
free( p_sys->psz_name );
free( p_sys );
......@@ -131,7 +134,7 @@ static void DStreamDelete( stream_t *s )
block_FifoRelease( p_sys->p_fifo );
free( p_sys->psz_name );
free( p_sys );
vlc_object_detach( s );
stream_CommonDelete( s );
}
......
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