summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ext/resindvd/rsndec.c6
-rw-r--r--gst/autoconvert/gstautovideoconvert.c3
-rw-r--r--tests/examples/opencv/gst_element_print_properties.c4
3 files changed, 9 insertions, 4 deletions
diff --git a/ext/resindvd/rsndec.c b/ext/resindvd/rsndec.c
index baf1d7850..81e15d6d4 100644
--- a/ext/resindvd/rsndec.c
+++ b/ext/resindvd/rsndec.c
@@ -171,7 +171,8 @@ rsndec_factory_filter (GstPluginFeature * feature, RsnDecFactoryFilterCtx * ctx)
factory = GST_ELEMENT_FACTORY (feature);
- klass = gst_element_factory_get_klass (factory);
+ klass =
+ gst_element_factory_get_metadata (factory, GST_ELEMENT_METADATA_KLASS);
/* only decoders can play */
if (strstr (klass, "Decoder") == NULL)
return FALSE;
@@ -211,7 +212,8 @@ rsndec_factory_filter (GstPluginFeature * feature, RsnDecFactoryFilterCtx * ctx)
if (can_sink) {
GST_DEBUG ("Found decoder element %s (%s)",
- gst_element_factory_get_longname (factory),
+ gst_element_factory_get_metadata (factory,
+ GST_ELEMENT_METADATA_LONGNAME),
gst_plugin_feature_get_name (feature));
}
diff --git a/gst/autoconvert/gstautovideoconvert.c b/gst/autoconvert/gstautovideoconvert.c
index 14562193b..84177ee9a 100644
--- a/gst/autoconvert/gstautovideoconvert.c
+++ b/gst/autoconvert/gstautovideoconvert.c
@@ -69,7 +69,8 @@ gst_auto_video_convert_element_filter (GstPluginFeature * feature,
if (G_UNLIKELY (!GST_IS_ELEMENT_FACTORY (feature)))
return FALSE;
- klass = gst_element_factory_get_klass (GST_ELEMENT_FACTORY_CAST (feature));
+ klass = gst_element_factory_get_metadata (GST_ELEMENT_FACTORY_CAST (feature),
+ GST_ELEMENT_METADATA_KLASS);
/* only select color space converter */
if (strstr (klass, "Filter") &&
strstr (klass, "Converter") && strstr (klass, "Video")) {
diff --git a/tests/examples/opencv/gst_element_print_properties.c b/tests/examples/opencv/gst_element_print_properties.c
index b28740668..68ec8b812 100644
--- a/tests/examples/opencv/gst_element_print_properties.c
+++ b/tests/examples/opencv/gst_element_print_properties.c
@@ -508,7 +508,9 @@ print_element_info (GstElement * element, guint c2w, guint c3w, guint c4w)
g_print (" | %-*s", c3w,
gst_plugin_feature_get_name (GST_PLUGIN_FEATURE (factory)));
- g_print (" | %-*s | \n", c4w, gst_element_factory_get_longname (factory));
+ g_print (" | %-*s | \n", c4w,
+ gst_element_factory_get_metadata (factory,
+ GST_ELEMENT_METADATA_LONGNAME));
// "Audio Resampler" g_print( " | %-*s", c3w, gst_element_factory_get_longname( gst_element_get_factory( element )) );