[gst-cvs] gst-plugins-bad: baseparse: Fix debug output
Mark Nauwelaerts
mnauw at kemper.freedesktop.org
Fri Oct 1 04:37:01 PDT 2010
Module: gst-plugins-bad
Branch: master
Commit: 2d699010e93bb610a89e606780fed6a6b070a847
URL: http://cgit.freedesktop.org/gstreamer/gst-plugins-bad/commit/?id=2d699010e93bb610a89e606780fed6a6b070a847
Author: Arun Raghavan <arun.raghavan at collabora.co.uk>
Date: Wed Sep 22 16:02:43 2010 +0530
baseparse: Fix debug output
We lose the reference to the buffer after gst_pad_push(), so the debug
print should happen before.
https://bugzilla.gnome.org/show_bug.cgi?id=622276
---
gst/audioparsers/gstbaseparse.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/gst/audioparsers/gstbaseparse.c b/gst/audioparsers/gstbaseparse.c
index bec23ff..f86fbb2 100644
--- a/gst/audioparsers/gstbaseparse.c
+++ b/gst/audioparsers/gstbaseparse.c
@@ -1577,9 +1577,9 @@ gst_base_parse_push_buffer (GstBaseParse * parse, GstBuffer * buffer)
} else if (ret == GST_FLOW_OK) {
if (parse->segment.rate > 0.0) {
if (G_LIKELY (!parse->priv->skip)) {
- ret = gst_pad_push (parse->srcpad, buffer);
GST_LOG_OBJECT (parse, "frame (%d bytes) pushed: %s",
GST_BUFFER_SIZE (buffer), gst_flow_get_name (ret));
+ ret = gst_pad_push (parse->srcpad, buffer);
} else {
GST_DEBUG_OBJECT (parse, "initial frame (%d bytes) discarded",
GST_BUFFER_SIZE (buffer));
More information about the Gstreamer-commits
mailing list