gst_element_class_set_details => gst_element_class_set_details_simple

This commit is contained in:
Benjamin Otte 2010-03-18 17:30:26 +01:00 committed by Tim-Philipp Müller
parent 0eee8477df
commit 076d3ff456

View file

@ -83,12 +83,6 @@ enum
#define DEFAULT_JOIN TRUE #define DEFAULT_JOIN TRUE
#define DEFAULT_REPLACE FALSE #define DEFAULT_REPLACE FALSE
static GstElementDetails caps_setter_details =
GST_ELEMENT_DETAILS ("CapsSetter",
"Generic",
"Set/merge caps on stream",
"Mark Nauwelaerts <mnauw@users.sourceforge.net>");
static GstStaticPadTemplate gst_caps_setter_src_template = static GstStaticPadTemplate gst_caps_setter_src_template =
GST_STATIC_PAD_TEMPLATE (GST_BASE_TRANSFORM_SRC_NAME, GST_STATIC_PAD_TEMPLATE (GST_BASE_TRANSFORM_SRC_NAME,
GST_PAD_SRC, GST_PAD_SRC,
@ -125,7 +119,10 @@ gst_caps_setter_base_init (gpointer g_class)
{ {
GstElementClass *element_class = GST_ELEMENT_CLASS (g_class); GstElementClass *element_class = GST_ELEMENT_CLASS (g_class);
gst_element_class_set_details (element_class, &caps_setter_details); gst_element_class_set_details_simple (element_class, "CapsSetter",
"Generic",
"Set/merge caps on stream",
"Mark Nauwelaerts <mnauw@users.sourceforge.net>");
gst_element_class_add_pad_template (element_class, gst_element_class_add_pad_template (element_class,
gst_static_pad_template_get (&gst_caps_setter_sink_template)); gst_static_pad_template_get (&gst_caps_setter_sink_template));