From: Benjamin Otte Date: Thu, 18 Mar 2010 16:30:26 +0000 (+0100) Subject: valve: gst_element_class_set_details => gst_element_class_set_details_simple X-Git-Tag: RELEASE-0.10.32~145 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a2de9458c186b107e5d8dd347d53193fcf7b1ad9;p=platform%2Fupstream%2Fgstreamer.git valve: gst_element_class_set_details => gst_element_class_set_details_simple --- diff --git a/plugins/elements/gstvalve.c b/plugins/elements/gstvalve.c index 702b3e5..3fc1908 100644 --- a/plugins/elements/gstvalve.c +++ b/plugins/elements/gstvalve.c @@ -45,14 +45,6 @@ GST_DEBUG_CATEGORY (valve_debug); #define GST_CAT_DEFAULT (valve_debug) -/* elementfactory information */ -static const GstElementDetails gst_valve_details = -GST_ELEMENT_DETAILS ("Valve element", - "Filter", - "This element drops all packets when drop is TRUE", - "Olivier Crete "); - - static GstStaticPadTemplate sinktemplate = GST_STATIC_PAD_TEMPLATE ("sink", GST_PAD_SINK, GST_PAD_ALWAYS, @@ -109,7 +101,10 @@ gst_valve_base_init (gpointer klass) gst_element_class_add_pad_template (element_class, gst_static_pad_template_get (&sinktemplate)); - gst_element_class_set_details (element_class, &gst_valve_details); + gst_element_class_set_details_simple (element_class, "Valve element", + "Filter", + "This element drops all packets when drop is TRUE", + "Olivier Crete "); } static void