Commit 5cb9c9d9 authored by Olivier Aubert's avatar Olivier Aubert

python/bindings/vlc_object.c: complete vlc_object_find parameters

parent c2d31f45
......@@ -127,10 +127,6 @@ vlcObject_find_object( PyObject *self, PyObject *args )
{
i_object_type = VLC_OBJECT_PLAYLIST;
}
else if (! strncmp( psz_name, "root", 4 ) )
{
i_object_type = VLC_OBJECT_ROOT;
}
else if (! strncmp( psz_name, "libvlc", 6 ) )
{
i_object_type = VLC_OBJECT_LIBVLC;
......@@ -139,6 +135,66 @@ vlcObject_find_object( PyObject *self, PyObject *args )
{
i_object_type = VLC_OBJECT_VOUT;
}
else if (! strncmp( psz_name, "sout", 4 ) )
{
i_object_type = VLC_OBJECT_SOUT;
}
else if (! strncmp( psz_name, "global", 6 ) )
{
i_object_type = VLC_OBJECT_GLOBAL;
}
else if (! strncmp( psz_name, "packetizer", 10 ) )
{
i_object_type = VLC_OBJECT_PACKETIZER;
}
else if (! strncmp( psz_name, "encoder", 7 ) )
{
i_object_type = VLC_OBJECT_ENCODER;
}
else if (! strncmp( psz_name, "vlm", 3 ) )
{
i_object_type = VLC_OBJECT_VLM;
}
else if (! strncmp( psz_name, "announce", 8 ) )
{
i_object_type = VLC_OBJECT_ANNOUNCE;
}
else if (! strncmp( psz_name, "demux", 5 ) )
{
i_object_type = VLC_OBJECT_DEMUX;
}
else if (! strncmp( psz_name, "access", 6 ) )
{
i_object_type = VLC_OBJECT_ACCESS;
}
else if (! strncmp( psz_name, "stream", 6 ) )
{
i_object_type = VLC_OBJECT_STREAM;
}
else if (! strncmp( psz_name, "filter", 6 ) )
{
i_object_type = VLC_OBJECT_FILTER;
}
else if (! strncmp( psz_name, "vod", 3 ) )
{
i_object_type = VLC_OBJECT_VOD;
}
else if (! strncmp( psz_name, "xml", 3 ) )
{
i_object_type = VLC_OBJECT_XML;
}
else if (! strncmp( psz_name, "osdmenu", 7 ) )
{
i_object_type = VLC_OBJECT_OSDMENU;
}
else if (! strncmp( psz_name, "stats", 5 ) )
{
i_object_type = VLC_OBJECT_STATS;
}
else if (! strncmp( psz_name, "metaengine", 10 ) )
{
i_object_type = VLC_OBJECT_META_ENGINE;
}
else
{
/* FIXME: raise an exception ? */
......
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