diff options
author | Mark Nauwelaerts <mark.nauwelaerts@collabora.co.uk> | 2012-09-15 19:06:06 +0200 |
---|---|---|
committer | Mark Nauwelaerts <mark.nauwelaerts@collabora.co.uk> | 2012-09-15 19:06:06 +0200 |
commit | 3eee42fdfcf2a7f8d177a1413d72580be2211c07 (patch) | |
tree | dbe73ffadd97522fedeb00bb8e3d7ae7ab75d54a /gst/autodetect | |
parent | 3a7b7efe9925a8bd57ce92d6f9c98cbd25d5c022 (diff) |
use gst_element_factory_get_metadata to replace obsolete API
Diffstat (limited to 'gst/autodetect')
-rw-r--r-- | gst/autodetect/gstautoaudiosink.c | 3 | ||||
-rw-r--r-- | gst/autodetect/gstautoaudiosrc.c | 3 | ||||
-rw-r--r-- | gst/autodetect/gstautovideosink.c | 3 | ||||
-rw-r--r-- | gst/autodetect/gstautovideosrc.c | 3 |
4 files changed, 8 insertions, 4 deletions
diff --git a/gst/autodetect/gstautoaudiosink.c b/gst/autodetect/gstautoaudiosink.c index 5990bfda0..e3fd7c70c 100644 --- a/gst/autodetect/gstautoaudiosink.c +++ b/gst/autodetect/gstautoaudiosink.c @@ -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; diff --git a/gst/autodetect/gstautoaudiosrc.c b/gst/autodetect/gstautoaudiosrc.c index 955574f5d..f251bc8e1 100644 --- a/gst/autodetect/gstautoaudiosrc.c +++ b/gst/autodetect/gstautoaudiosrc.c @@ -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; diff --git a/gst/autodetect/gstautovideosink.c b/gst/autodetect/gstautovideosink.c index 7683b3459..4aa7161f2 100644 --- a/gst/autodetect/gstautovideosink.c +++ b/gst/autodetect/gstautovideosink.c @@ -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; diff --git a/gst/autodetect/gstautovideosrc.c b/gst/autodetect/gstautovideosrc.c index bec7c6c2d..0184c673c 100644 --- a/gst/autodetect/gstautovideosrc.c +++ b/gst/autodetect/gstautovideosrc.c @@ -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; |