+ 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;
+ }
+ }