aacparse: fix warnings in macosx snow leopard
authorJosep Torra <n770galaxy@gmail.com>
Sun, 11 Oct 2009 09:22:11 +0000 (11:22 +0200)
committerTim-Philipp Müller <tim.muller@collabora.co.uk>
Fri, 8 Apr 2011 17:06:59 +0000 (18:06 +0100)
gst/aacparse/gstaacparse.c
gst/aacparse/gstbaseparse.c

index 3f15a62..9bb5c10 100644 (file)
@@ -809,7 +809,8 @@ gst_aacparse_convert (GstBaseParse * parse,
 
       if (aacparse->framecount && aacparse->frames_per_sec) {
         *dest_value = AAC_FRAME_DURATION (aacparse) * src_value / bpf;
-        GST_DEBUG ("conversion result: %lld ms", *dest_value / GST_MSECOND);
+        GST_DEBUG ("conversion result: %" G_GINT64_FORMAT " ms",
+            *dest_value / GST_MSECOND);
         ret = TRUE;
       }
     } else if (dest_format == GST_FORMAT_BYTES) {
@@ -822,8 +823,8 @@ gst_aacparse_convert (GstBaseParse * parse,
     if (dest_format == GST_FORMAT_BYTES) {
       if (aacparse->framecount && aacparse->frames_per_sec) {
         *dest_value = bpf * src_value / AAC_FRAME_DURATION (aacparse);
-        GST_DEBUG ("time %lld ms in bytes = %lld", src_value / GST_MSECOND,
-            *dest_value);
+        GST_DEBUG ("time %" G_GINT64_FORMAT " ms in bytes = %" G_GINT64_FORMAT,
+            src_value / GST_MSECOND, *dest_value);
         ret = TRUE;
       }
     }
index 333485f..0febb37 100644 (file)
@@ -919,7 +919,7 @@ gst_base_parse_chain (GstPad * pad, GstBuffer * buffer)
   bclass = GST_BASE_PARSE_GET_CLASS (parse);
 
   if (G_LIKELY (buffer)) {
-    GST_LOG_OBJECT (parse, "buffer size: %d, offset = %lld",
+    GST_LOG_OBJECT (parse, "buffer size: %d, offset = %" G_GINT64_FORMAT,
         GST_BUFFER_SIZE (buffer), GST_BUFFER_OFFSET (buffer));
     if (G_UNLIKELY (parse->priv->passthrough)) {
       buffer = gst_buffer_make_metadata_writable (buffer);
@@ -1391,7 +1391,7 @@ gst_base_parse_set_duration (GstBaseParse * parse,
   }
   parse->priv->duration = duration;
   parse->priv->duration_fmt = fmt;
-  GST_DEBUG_OBJECT (parse, "set duration: %lld", duration);
+  GST_DEBUG_OBJECT (parse, "set duration: %" G_GINT64_FORMAT, duration);
   GST_BASE_PARSE_UNLOCK (parse);
 }
 
@@ -1662,7 +1662,9 @@ gst_base_parse_handle_seek (GstBaseParse * parse, GstEvent * event)
     return FALSE;
   }
 
-  GST_DEBUG_OBJECT (parse, "seek position %lld in bytes: %lld", cur, seekpos);
+  GST_DEBUG_OBJECT (parse,
+      "seek position %" G_GINT64_FORMAT " in bytes: %" G_GINT64_FORMAT, cur,
+      seekpos);
 
   if (parse->priv->pad_mode == GST_ACTIVATE_PULL) {
     gint64 last_stop;