From: Tim-Philipp Müller Date: Tue, 6 Jan 2009 11:10:29 +0000 (+0000) Subject: gst-libs/gst/app/: Make debug categories static. Use _element_class_set_details_simple(). X-Git-Tag: 1.19.3~511^2~10103 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ada70bb15981023b3336e5559ee5f1ba3fccdbcd;p=platform%2Fupstream%2Fgstreamer.git gst-libs/gst/app/: Make debug categories static. Use _element_class_set_details_simple(). 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(). --- diff --git a/ChangeLog b/ChangeLog index 2af29f8..704bb2e 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,13 @@ 2009-01-06 Tim-Philipp Müller + * 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 + * 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). diff --git a/gst-libs/gst/app/gstappsink.c b/gst-libs/gst/app/gstappsink.c index e9b76c4..8be5385 100644 --- a/gst-libs/gst/app/gstappsink.c +++ b/gst-libs/gst/app/gstappsink.c @@ -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 , Wim Taymans "); - 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 , Wim Taymans "); gst_element_class_add_pad_template (element_class, gst_static_pad_template_get (&gst_app_sink_template)); diff --git a/gst-libs/gst/app/gstappsink.h b/gst-libs/gst/app/gstappsink.h index c70a3ff..3dbeb64 100644 --- a/gst-libs/gst/app/gstappsink.h +++ b/gst-libs/gst/app/gstappsink.h @@ -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); diff --git a/gst-libs/gst/app/gstappsrc.c b/gst-libs/gst/app/gstappsrc.c index 2c750c7..0df865e 100644 --- a/gst-libs/gst/app/gstappsrc.c +++ b/gst-libs/gst/app/gstappsrc.c @@ -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 , Wim Taymans "); - 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 , Wim Taymans "); gst_element_class_add_pad_template (element_class, gst_static_pad_template_get (&gst_app_src_template)); diff --git a/gst-libs/gst/app/gstappsrc.h b/gst-libs/gst/app/gstappsrc.h index 2e93c58..4e1b29f 100644 --- a/gst-libs/gst/app/gstappsrc.h +++ b/gst-libs/gst/app/gstappsrc.h @@ -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);