[0.11] gst-plugins-bad: h263parse: bring debug statements up to desired specs
Wim Taymans
wtay at kemper.freedesktop.org
Mon Sep 26 13:32:36 PDT 2011
Module: gst-plugins-bad
Branch: 0.11
Commit: b142663ca53c8d2bb8d4d03ded72ec960d2ca8a4
URL: http://cgit.freedesktop.org/gstreamer/gst-plugins-bad/commit/?id=b142663ca53c8d2bb8d4d03ded72ec960d2ca8a4
Author: Mark Nauwelaerts <mark.nauwelaerts at collabora.co.uk>
Date: Mon Sep 19 14:54:11 2011 +0200
h263parse: bring debug statements up to desired specs
---
gst/videoparsers/gsth263parse.c | 11 ++++++-----
1 files changed, 6 insertions(+), 5 deletions(-)
diff --git a/gst/videoparsers/gsth263parse.c b/gst/videoparsers/gsth263parse.c
index d83f8ef..4a5633f 100644
--- a/gst/videoparsers/gsth263parse.c
+++ b/gst/videoparsers/gsth263parse.c
@@ -101,7 +101,7 @@ gst_h263_parse_start (GstBaseParse * parse)
{
GstH263Parse *h263parse = GST_H263_PARSE (parse);
- GST_DEBUG ("Start");
+ GST_DEBUG_OBJECT (h263parse, "start");
h263parse->bitrate = 0;
h263parse->profile = -1;
@@ -117,7 +117,7 @@ gst_h263_parse_start (GstBaseParse * parse)
static gboolean
gst_h263_parse_stop (GstBaseParse * parse)
{
- GST_DEBUG ("Stop");
+ GST_DEBUG_OBJECT (parse, "stop");
return TRUE;
}
@@ -138,7 +138,7 @@ gst_h263_parse_sink_event (GstBaseParse * parse, GstEvent * event)
gst_event_parse_tag (event, &taglist);
if (gst_tag_list_get_uint (taglist, GST_TAG_BITRATE, &h263parse->bitrate))
- GST_DEBUG ("Got bitrate tag: %u", h263parse->bitrate);
+ GST_DEBUG_OBJECT (h263parse, "got bitrate tag: %u", h263parse->bitrate);
break;
}
@@ -200,7 +200,7 @@ gst_h263_parse_set_src_caps (GstH263Parse * h263parse,
if (sink_caps && (st = gst_caps_get_structure (sink_caps, 0)) &&
gst_structure_get_fraction (st, "framerate", &fr_num, &fr_denom)) {
/* Got it in caps - nothing more to do */
- GST_DEBUG ("Sink caps override framerate from headers");
+ GST_DEBUG_OBJECT (h263parse, "sink caps override framerate from headers");
} else {
/* Caps didn't have the framerate - get it from params */
gst_h263_parse_get_framerate (params, &fr_num, &fr_denom);
@@ -307,7 +307,8 @@ gst_h263_parse_check_valid_frame (GstBaseParse * parse,
/* XXX: After getting a keyframe, should we adjust min_frame_size to
* something smaller so we don't end up collecting too many non-keyframes? */
- GST_DEBUG ("Found a frame of size %d at pos %d", *framesize, *skipsize);
+ GST_DEBUG_OBJECT (h263parse, "found a frame of size %d at pos %d",
+ *framesize, *skipsize);
return TRUE;
More information about the gstreamer-commits
mailing list