gst-libs/gst/app/: Make debug categories static. Use _element_class_set_details_simple().
authorTim-Philipp Müller <tim@centricular.net>
Tue, 6 Jan 2009 11:10:29 +0000 (11:10 +0000)
committerTim-Philipp Müller <tim@centricular.net>
Tue, 6 Jan 2009 11:10:29 +0000 (11:10 +0000)
Original commit message from CVS:
* gst-libs/gst/app/gstappsink.c:
* gst-libs/gst/app/gstappsink.h:
* gst-libs/gst/app/gstappsrc.c:
* gst-libs/gst/app/gstappsrc.h:
Make debug categories static. Use _element_class_set_details_simple().

ChangeLog
gst-libs/gst/app/gstappsink.c
gst-libs/gst/app/gstappsink.h
gst-libs/gst/app/gstappsrc.c
gst-libs/gst/app/gstappsrc.h

index 2af29f8..704bb2e 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,13 @@
 2009-01-06  Tim-Philipp Müller  <tim.muller at collabora co uk>
 
+       * gst-libs/gst/app/gstappsink.c:
+       * gst-libs/gst/app/gstappsink.h:
+       * gst-libs/gst/app/gstappsrc.c:
+       * gst-libs/gst/app/gstappsrc.h:
+         Make debug categories static. Use _element_class_set_details_simple().
+
+2009-01-06  Tim-Philipp Müller  <tim.muller at collabora co uk>
+
        * gst-libs/gst/app/gstappsink.c: (_GstAppSinkPrivate),
          (gst_app_sink_class_init), (gst_app_sink_init),
          (gst_app_sink_dispose), (gst_app_sink_finalize),
@@ -12,8 +20,8 @@
          (gst_app_sink_get_emit_signals), (gst_app_sink_set_max_buffers),
          (gst_app_sink_get_max_buffers), (gst_app_sink_set_drop),
          (gst_app_sink_get_drop), (gst_app_sink_pull_preroll),
-         (gst_app_sink_pull_buffer)::
-       * gst-libs/gst/app/gstappsink.h: (GstAppSinkPrivate), (_GstAppSink)::
+         (gst_app_sink_pull_buffer):
+       * gst-libs/gst/app/gstappsink.h: (GstAppSinkPrivate), (_GstAppSink):
        * gst-libs/gst/app/gstappsrc.c: (_GstAppSrcPrivate),
          (gst_app_src_class_init), (gst_app_src_init),
          (gst_app_src_flush_queued), (gst_app_src_dispose),
@@ -28,8 +36,8 @@
          (gst_app_src_set_max_bytes), (gst_app_src_get_max_bytes),
          (gst_app_src_set_latencies), (gst_app_src_set_latency),
          (gst_app_src_get_latency), (gst_app_src_push_buffer_full),
-         (gst_app_src_push_buffer_action), (gst_app_src_end_of_stream)::
-       * gst-libs/gst/app/gstappsrc.h: (GstAppSrcPrivate)::
+         (gst_app_src_push_buffer_action), (gst_app_src_end_of_stream):
+       * gst-libs/gst/app/gstappsrc.h: (GstAppSrcPrivate):
          Move private data into a private instance struct. Add padding to
          instance and class structures exposed in public headers. Add
          Since markers to the gtk-doc blurbs (#566750).
index e9b76c4..8be5385 100644 (file)
@@ -105,15 +105,9 @@ struct _GstAppSinkPrivate
   gboolean is_eos;
 };
 
-GST_DEBUG_CATEGORY (app_sink_debug);
+GST_DEBUG_CATEGORY_STATIC (app_sink_debug);
 #define GST_CAT_DEFAULT app_sink_debug
 
-static const GstElementDetails app_sink_details =
-GST_ELEMENT_DETAILS ("AppSink",
-    "Generic/Sink",
-    "Allow the application to get access to raw buffer",
-    "David Schleef <ds@schleef.org>, Wim Taymans <wim.taymans@gmail.com>");
-
 enum
 {
   /* signals */
@@ -212,7 +206,9 @@ gst_app_sink_base_init (gpointer g_class)
 
   GST_DEBUG_CATEGORY_INIT (app_sink_debug, "appsink", 0, "appsink element");
 
-  gst_element_class_set_details (element_class, &app_sink_details);
+  gst_element_class_set_details_simple (element_class, "AppSink",
+      "Generic/Sink", "Allow the application to get access to raw buffer",
+      "David Schleef <ds@schleef.org>, Wim Taymans <wim.taymans@gmail.com>");
 
   gst_element_class_add_pad_template (element_class,
       gst_static_pad_template_get (&gst_app_sink_template));
index c70a3ff..3dbeb64 100644 (file)
@@ -70,8 +70,6 @@ struct _GstAppSinkClass
 
 GType gst_app_sink_get_type(void);
 
-GST_DEBUG_CATEGORY_EXTERN (app_sink_debug);
-
 void            gst_app_sink_set_caps         (GstAppSink *appsink, const GstCaps *caps);
 GstCaps *       gst_app_sink_get_caps         (GstAppSink *appsink);
 
index 2c750c7..0df865e 100644 (file)
@@ -138,14 +138,9 @@ struct _GstAppSrcPrivate
   guint64 max_latency;
 };
 
-GST_DEBUG_CATEGORY (app_src_debug);
+GST_DEBUG_CATEGORY_STATIC (app_src_debug);
 #define GST_CAT_DEFAULT app_src_debug
 
-static const GstElementDetails app_src_details = GST_ELEMENT_DETAILS ("AppSrc",
-    "Generic/Src",
-    "Allow the application to feed buffers to a pipeline",
-    "David Schleef <ds@schleef.org>, Wim Taymans <wim.taymans@gmail.com>");
-
 enum
 {
   /* signals */
@@ -262,7 +257,9 @@ gst_app_src_base_init (gpointer g_class)
 
   GST_DEBUG_CATEGORY_INIT (app_src_debug, "appsrc", 0, "appsrc element");
 
-  gst_element_class_set_details (element_class, &app_src_details);
+  gst_element_class_set_details_simple (element_class, "AppSrc",
+      "Generic/Src", "Allow the application to feed buffers to a pipeline",
+      "David Schleef <ds@schleef.org>, Wim Taymans <wim.taymans@gmail.com>");
 
   gst_element_class_add_pad_template (element_class,
       gst_static_pad_template_get (&gst_app_src_template));
index 2e93c58..4e1b29f 100644 (file)
@@ -88,8 +88,6 @@ struct _GstAppSrcClass
 
 GType gst_app_src_get_type(void);
 
-GST_DEBUG_CATEGORY_EXTERN (app_src_debug);
-
 void             gst_app_src_set_caps         (GstAppSrc *appsrc, const GstCaps *caps);
 GstCaps*         gst_app_src_get_caps         (GstAppSrc *appsrc);