- id = malloc( sizeof( sout_stream_id_t ) );
- if( id == NULL )
- return NULL;
-
- if( p_sys->i_es == 0 )
- {
- p_sys->p_input = vlc_object_find( p_stream, VLC_OBJECT_INPUT,
- FIND_PARENT );
- if( p_sys->p_input == NULL )
- {
- msg_Err( p_stream, "cannot find input" );
- free( id );
- return NULL;
- }
- }
-
- id->p_dec = input_DecoderNew( p_sys->p_input, p_fmt, NULL, NULL );
- if( id->p_dec == NULL )