Commit 4d6f12af authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

Do not allow input to be found as a child, decoder/generic at all

This is not needed, and not a good idea.
parent 0716ea6d
......@@ -452,6 +452,21 @@ void * __vlc_object_find( vlc_object_t *p_this, int i_type, int i_mode )
if (i_mode == FIND_ANYWHERE)
return vlc_object_find (p_this->p_libvlc, i_type, FIND_CHILD);
switch (i_type)
{
case VLC_OBJECT_VOUT:
case VLC_OBJECT_AOUT:
break;
case VLC_OBJECT_INPUT:
/* input can only be accessed like this from children,
* otherwise we could not promise that it is initialized */
if (i_mode != FIND_PARENT)
return NULL;
break;
default:
return NULL;
}
libvlc_lock (p_this->p_libvlc);
p_found = FindObject( p_this, i_type, i_mode );
libvlc_unlock (p_this->p_libvlc);
......
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