queue2: Use gst_element_class_set_details_simple()
authorSebastian Dröge <sebastian.droege@collabora.co.uk>
Thu, 29 Oct 2009 10:30:57 +0000 (11:30 +0100)
committerSebastian Dröge <sebastian.droege@collabora.co.uk>
Thu, 29 Oct 2009 10:30:57 +0000 (11:30 +0100)
plugins/elements/gstqueue2.c

index 9bc4c6619ff9853514cdf9a3525e9b4d83511a40..e4495b36b85c4846f015ded924e91f38bc766687 100644 (file)
 #include <unistd.h>
 #endif
 
-static const GstElementDetails gst_queue2_details =
-GST_ELEMENT_DETAILS ("Queue",
-    "Generic",
-    "Simple data queue",
-    "Erik Walthinsen <omega@cse.ogi.edu>, "
-    "Wim Taymans <wim.taymans@gmail.com>");
-
 static GstStaticPadTemplate sinktemplate = GST_STATIC_PAD_TEMPLATE ("sink",
     GST_PAD_SINK,
     GST_PAD_ALWAYS,
@@ -350,7 +343,11 @@ gst_queue2_class_init (GstQueue2Class * klass)
   gst_element_class_add_pad_template (gstelement_class,
       gst_static_pad_template_get (&sinktemplate));
 
-  gst_element_class_set_details (gstelement_class, &gst_queue2_details);
+  gst_element_class_set_details_simple (gstelement_class, "Queue",
+      "Generic",
+      "Simple data queue",
+      "Erik Walthinsen <omega@cse.ogi.edu>, "
+      "Wim Taymans <wim.taymans@gmail.com>");
 
   /* set several parent class virtual functions */
   gobject_class->finalize = gst_queue2_finalize;