Commit 3eee42fd authored by Mark Nauwelaerts's avatar Mark Nauwelaerts

use gst_element_factory_get_metadata to replace obsolete API

parent 3a7b7efe
......@@ -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;
......
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