[aravis] gst: use gst_element_class_set_details_simple.



commit 09332d30e81bec6ada989fc6463ebbdb3346a79c
Author: Emmanuel Pacaud <emmanuel gnome org>
Date:   Tue Feb 15 15:57:41 2011 +0100

    gst: use gst_element_class_set_details_simple.
    
    Instead of deprecated gst_element_class_set_details.

 gst/gstaravis.c |   15 ++++++---------
 1 files changed, 6 insertions(+), 9 deletions(-)
---
diff --git a/gst/gstaravis.c b/gst/gstaravis.c
index be5167f..1924ab3 100644
--- a/gst/gstaravis.c
+++ b/gst/gstaravis.c
@@ -2,7 +2,7 @@
  * Copyright © 2006 Eric Jonas <jonas mit edu>
  * Copyright © 2006 Antoine Tremblay <hexa00 gmail com>
  * Copyright © 2010 United States Government, Joshua M. Doe <joshua doe us army mil>
- * Copyright © 2010 Emmanuel Pacaud <emmanuel gnome org>
+ * Copyright © 2010-2011 Emmanuel Pacaud <emmanuel gnome org>
  *
  * This library is free software; you can redistribute it and/or
  * modify it under the terms of the GNU Library General Public
@@ -42,12 +42,6 @@
 GST_DEBUG_CATEGORY_STATIC (aravis_debug);
 #define GST_CAT_DEFAULT aravis_debug
 
-static GstElementDetails aravis_details =
-GST_ELEMENT_DETAILS ("Aravis Video Source",
-		     "Source/Video",
-		     "Aravis based source",
-		     "Emmanuel Pacaud <emmanuel gnome org>");
-
 enum
 {
   PROP_0,
@@ -348,8 +342,11 @@ gst_aravis_base_init (gpointer g_class)
 {
 	GstElementClass *element_class = GST_ELEMENT_CLASS (g_class);
 
-	gst_element_class_set_details (element_class, &aravis_details);
-
+	gst_element_class_set_details_simple (element_class,
+					      "Aravis Video Source",
+					      "Source/Video",
+					      "Aravis based source",
+					      "Emmanuel Pacaud <emmanuel gnome org>");
 	gst_element_class_add_pad_template (element_class,
 					    gst_static_pad_template_get (&aravis_src_template));
 }



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]