mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-19 06:46:38 +00:00
use gst_element_factory_get_metadata to replace obsolete API
This commit is contained in:
parent
3a7b7efe99
commit
3eee42fdfc
4 changed files with 8 additions and 4 deletions
|
@ -191,7 +191,8 @@ gst_auto_audio_sink_factory_filter (GstPluginFeature * feature, gpointer data)
|
|||
return FALSE;
|
||||
|
||||
/* audio sinks */
|
||||
klass = gst_element_factory_get_klass (GST_ELEMENT_FACTORY (feature));
|
||||
klass = gst_element_factory_get_metadata (GST_ELEMENT_FACTORY (feature),
|
||||
GST_ELEMENT_METADATA_KLASS);
|
||||
if (!(strstr (klass, "Sink") && strstr (klass, "Audio")))
|
||||
return FALSE;
|
||||
|
||||
|
|
|
@ -185,7 +185,8 @@ gst_auto_audio_src_factory_filter (GstPluginFeature * feature, gpointer data)
|
|||
return FALSE;
|
||||
|
||||
/* audio sinks */
|
||||
klass = gst_element_factory_get_klass (GST_ELEMENT_FACTORY (feature));
|
||||
klass = gst_element_factory_get_metadata (GST_ELEMENT_FACTORY (feature),
|
||||
GST_ELEMENT_METADATA_KLASS);
|
||||
if (!(strstr (klass, "Source") && strstr (klass, "Audio")))
|
||||
return FALSE;
|
||||
|
||||
|
|
|
@ -190,7 +190,8 @@ gst_auto_video_sink_factory_filter (GstPluginFeature * feature, gpointer data)
|
|||
return FALSE;
|
||||
|
||||
/* video sinks */
|
||||
klass = gst_element_factory_get_klass (GST_ELEMENT_FACTORY (feature));
|
||||
klass = gst_element_factory_get_metadata (GST_ELEMENT_FACTORY (feature),
|
||||
GST_ELEMENT_METADATA_KLASS);
|
||||
if (!(strstr (klass, "Sink") && strstr (klass, "Video")))
|
||||
return FALSE;
|
||||
|
||||
|
|
|
@ -184,7 +184,8 @@ gst_auto_video_src_factory_filter (GstPluginFeature * feature, gpointer data)
|
|||
return FALSE;
|
||||
|
||||
/* video sources */
|
||||
klass = gst_element_factory_get_klass (GST_ELEMENT_FACTORY (feature));
|
||||
klass = gst_element_factory_get_metadata (GST_ELEMENT_FACTORY (feature),
|
||||
GST_ELEMENT_METADATA_KLASS);
|
||||
if (!(strstr (klass, "Source") && strstr (klass, "Video")))
|
||||
return FALSE;
|
||||
|
||||
|
|
Loading…
Reference in a new issue