use gst_element_factory_get_metadata to replace obsolete API

This commit is contained in:
Mark Nauwelaerts 2012-09-15 19:06:06 +02:00
parent 3a7b7efe99
commit 3eee42fdfc
4 changed files with 8 additions and 4 deletions

View file

@ -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;

View file

@ -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;

View file

@ -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;

View file

@ -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;