[0.11] gstreamer: Fix printf format build warnings

Tim Müller tpm at kemper.freedesktop.org
Mon Jan 9 05:19:22 PST 2012


Module: gstreamer
Branch: 0.11
Commit: 9092fb87f0459a1a273a239cebb53b4a9d559d2c
URL:    http://cgit.freedesktop.org/gstreamer/gstreamer/commit/?id=9092fb87f0459a1a273a239cebb53b4a9d559d2c

Author: Matej Knopp <matej.knopp at gmail.com>
Date:   Mon Jan  9 03:14:41 2012 -0500

Fix printf format build warnings

---

 gst/gstmemory.c                               |    7 ++++---
 libs/gst/controller/gsttriggercontrolsource.c |    2 +-
 2 files changed, 5 insertions(+), 4 deletions(-)

diff --git a/gst/gstmemory.c b/gst/gstmemory.c
index c63588d..a8a8995 100644
--- a/gst/gstmemory.c
+++ b/gst/gstmemory.c
@@ -221,9 +221,10 @@ _default_mem_map (GstMemoryDefault * mem, gsize * size, gsize * maxsize,
 static gboolean
 _default_mem_unmap (GstMemoryDefault * mem, gpointer data, gsize size)
 {
-  GST_DEBUG ("mem: %p, data %p, size %u", mem, data, size);
-  GST_DEBUG ("mem: %p, data %p,  offset %u, size %u, maxsize %u", mem,
-      mem->data, mem->offset, mem->size, mem->maxsize);
+  GST_DEBUG ("mem: %p, data %p, size %" G_GSIZE_FORMAT, mem, data, size);
+  GST_DEBUG ("mem: %p, data %p,  offset %" G_GSIZE_FORMAT ", size %"
+      G_GSIZE_FORMAT ", maxsize %" G_GSIZE_FORMAT, mem, mem->data, mem->offset,
+      mem->size, mem->maxsize);
 
   g_return_val_if_fail ((guint8 *) data >= mem->data
       && (guint8 *) data < mem->data + mem->maxsize, FALSE);
diff --git a/libs/gst/controller/gsttriggercontrolsource.c b/libs/gst/controller/gsttriggercontrolsource.c
index 931ffc5..6633fe5 100644
--- a/libs/gst/controller/gsttriggercontrolsource.c
+++ b/libs/gst/controller/gsttriggercontrolsource.c
@@ -56,7 +56,7 @@ struct _GstTriggerControlSourcePrivate
 /*  returns the default value of the property, except for times with specific values */
 /*  needed for one-shot events, such as notes and triggers */
 
-static inline const gdouble
+static inline gdouble
 _interpolate_trigger (GstTimedValueControlSource * self, GSequenceIter * iter,
     GstClockTime timestamp)
 {



More information about the gstreamer-commits mailing list