From: Tim-Philipp Müller Date: Sat, 17 Nov 2012 00:26:45 +0000 (+0000) Subject: examples: don't use deprecated API X-Git-Tag: 1.19.3~511^2~5740 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=bd22e3c7cb63e8c269d0f210c405adcd92602ff1;p=platform%2Fupstream%2Fgstreamer.git examples: don't use deprecated API --- diff --git a/tests/examples/playback/playback-test.c b/tests/examples/playback/playback-test.c index 51308b54ea..def9b88170 100644 --- a/tests/examples/playback/playback-test.c +++ b/tests/examples/playback/playback-test.c @@ -1206,11 +1206,13 @@ static gboolean filter_vis_features (GstPluginFeature * feature, gpointer data) { GstElementFactory *f; + const gchar *klass; if (!GST_IS_ELEMENT_FACTORY (feature)) return FALSE; f = GST_ELEMENT_FACTORY (feature); - if (!g_strrstr (gst_element_factory_get_klass (f), "Visualization")) + klass = gst_element_factory_get_metadata (f, GST_ELEMENT_METADATA_KLASS); + if (!g_strrstr (klass, "Visualization")) return FALSE; return TRUE; @@ -1231,7 +1233,8 @@ init_visualization_features (PlaybackApp * app) const gchar *name; entry.factory = GST_ELEMENT_FACTORY (walk->data); - name = gst_element_factory_get_longname (entry.factory); + name = gst_element_factory_get_metadata (entry.factory, + GST_ELEMENT_METADATA_LONGNAME); g_array_append_val (app->vis_entries, entry); gtk_combo_box_text_append_text (GTK_COMBO_BOX_TEXT (app->vis_combo), name);