- p_sys->p_input = vlc_object_find( p_this, VLC_OBJECT_INPUT, FIND_PARENT );
- if( !p_sys->p_input ) return VLC_EGENERIC;
-
+ p_sys->data = var_InheritAddress(p_stream, "sout-description-data");
+ if (p_sys->data == NULL)
+ {
+ msg_Err(p_stream, "Missing data: the description stream output is "
+ "not meant to be used without special setup from the core");
+ free(p_sys);
+ return VLC_EGENERIC;
+ }