Search
SailfishOS Open Build Service
>
Projects
>
home:sledge
:
branches:nemo:devel:hw:ti:omap4:common
>
gstreamer
> 0010-baseparse-print-unsigned-values-as-unsigned-values.patch
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
File 0010-baseparse-print-unsigned-values-as-unsigned-values.patch of Package gstreamer
From e1c89c8c705a1e3f56c6472da6949d3edce8a95d Mon Sep 17 00:00:00 2001 From: Vincent Penquerc'h <vincent.penquerch@collabora.co.uk> Date: Tue, 19 Jun 2012 09:35:49 +0000 Subject: [PATCH 10/11] baseparse: print unsigned values as unsigned values Avoids G_MAXUINT confusingly being printed as -1, among others. --- libs/gst/base/gstbaseparse.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/libs/gst/base/gstbaseparse.c b/libs/gst/base/gstbaseparse.c index 1da663c..e721ea9 100644 --- a/libs/gst/base/gstbaseparse.c +++ b/libs/gst/base/gstbaseparse.c @@ -2316,7 +2316,7 @@ gst_base_parse_chain (GstPad * pad, GstBuffer * buffer) frame = &parse->priv->frame; if (G_LIKELY (buffer)) { - GST_LOG_OBJECT (parse, "buffer size: %d, offset = %" G_GINT64_FORMAT, + GST_LOG_OBJECT (parse, "buffer size: %u, offset = %" G_GINT64_FORMAT, GST_BUFFER_SIZE (buffer), GST_BUFFER_OFFSET (buffer)); if (G_UNLIKELY (parse->priv->passthrough)) { gst_base_parse_frame_init (frame); @@ -2369,7 +2369,7 @@ gst_base_parse_chain (GstPad * pad, GstBuffer * buffer) if (G_UNLIKELY (parse->priv->drain)) { min_size = av; - GST_DEBUG_OBJECT (parse, "draining, data left: %d", min_size); + GST_DEBUG_OBJECT (parse, "draining, data left: %u", min_size); if (G_UNLIKELY (!min_size)) { gst_buffer_unref (tmpbuf); goto done; @@ -2378,7 +2378,7 @@ gst_base_parse_chain (GstPad * pad, GstBuffer * buffer) /* Collect at least min_frame_size bytes */ if (av < min_size) { - GST_DEBUG_OBJECT (parse, "not enough data available (only %d bytes)", + GST_DEBUG_OBJECT (parse, "not enough data available (only %u bytes)", av); gst_buffer_unref (tmpbuf); goto done; @@ -2403,12 +2403,12 @@ gst_base_parse_chain (GstPad * pad, GstBuffer * buffer) if (res) { if (gst_adapter_available (parse->priv->adapter) < fsize) { GST_DEBUG_OBJECT (parse, - "found valid frame but not enough data available (only %d bytes)", + "found valid frame but not enough data available (only %u bytes)", gst_adapter_available (parse->priv->adapter)); gst_buffer_unref (tmpbuf); goto done; } - GST_LOG_OBJECT (parse, "valid frame of size %d at pos %d", fsize, skip); + GST_LOG_OBJECT (parse, "valid frame of size %u at pos %d", fsize, skip); break; } if (skip == -1) { @@ -2501,7 +2501,7 @@ done: invalid_min: { GST_ELEMENT_ERROR (parse, STREAM, FAILED, (NULL), - ("min_size evolution %d -> %d; breaking to avoid looping", + ("min_size evolution %u -> %u; breaking to avoid looping", old_min_size, min_size)); return GST_FLOW_ERROR; } @@ -2719,7 +2719,7 @@ gst_base_parse_scan_frame (GstBaseParse * parse, GstBaseParseClass * klass, gst_buffer_replace (&frame->buffer, NULL); if (res) { parse->priv->drain = FALSE; - GST_LOG_OBJECT (parse, "valid frame of size %d at pos %d", fsize, skip); + GST_LOG_OBJECT (parse, "valid frame of size %u at pos %d", fsize, skip); break; } parse->priv->drain = FALSE; @@ -2787,7 +2787,7 @@ done: invalid_min: { GST_ELEMENT_ERROR (parse, STREAM, FAILED, (NULL), - ("min_size evolution %d -> %d; breaking to avoid looping", + ("min_size evolution %u -> %u; breaking to avoid looping", old_min_size, min_size)); return GST_FLOW_ERROR; } -- 1.7.9.5