mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-18 05:16:05 +00:00
elementfactory: Add support for checking subtitle/metadata factory types
This commit is contained in:
parent
ee21c26cea
commit
cc7113b619
1 changed files with 3 additions and 1 deletions
|
@ -735,7 +735,9 @@ gst_element_factory_list_is_type (GstElementFactory * factory,
|
|||
if ((res || !(type & (GST_ELEMENT_FACTORY_TYPE_MAX_ELEMENTS - 1)))
|
||||
&& (type & (GST_ELEMENT_FACTORY_TYPE_MEDIA_AUDIO |
|
||||
GST_ELEMENT_FACTORY_TYPE_MEDIA_VIDEO |
|
||||
GST_ELEMENT_FACTORY_TYPE_MEDIA_IMAGE)))
|
||||
GST_ELEMENT_FACTORY_TYPE_MEDIA_IMAGE |
|
||||
GST_ELEMENT_FACTORY_TYPE_MEDIA_SUBTITLE |
|
||||
GST_ELEMENT_FACTORY_TYPE_MEDIA_METADATA)))
|
||||
res = ((type & GST_ELEMENT_FACTORY_TYPE_MEDIA_AUDIO)
|
||||
&& (strstr (klass, "Audio") != NULL))
|
||||
|| ((type & GST_ELEMENT_FACTORY_TYPE_MEDIA_VIDEO)
|
||||
|
|
Loading…
Reference in a new issue