flac: fix warnings on macosx
authorJosep Torra <n770galaxy@gmail.com>
Fri, 9 Oct 2009 10:25:19 +0000 (12:25 +0200)
committerJosep Torra <n770galaxy@gmail.com>
Fri, 9 Oct 2009 10:25:19 +0000 (12:25 +0200)
ext/flac/gstflacdec.c
ext/flac/gstflacenc.c

index 31c5f85..87077f5 100644 (file)
@@ -669,7 +669,7 @@ gst_flac_dec_seek (const FLAC__StreamDecoder * decoder,
 
   flacdec = GST_FLAC_DEC (client_data);
 
-  GST_DEBUG_OBJECT (flacdec, "seek %" G_GINT64_FORMAT, position);
+  GST_DEBUG_OBJECT (flacdec, "seek %" G_GINT64_FORMAT, (gint64) position);
   flacdec->offset = position;
 
   return FLAC__STREAM_DECODER_SEEK_STATUS_OK;
@@ -685,7 +685,7 @@ gst_flac_dec_tell (const FLAC__StreamDecoder * decoder,
 
   *position = flacdec->offset;
 
-  GST_DEBUG_OBJECT (flacdec, "tell %" G_GINT64_FORMAT, *position);
+  GST_DEBUG_OBJECT (flacdec, "tell %" G_GINT64_FORMAT, (gint64) * position);
 
   return FLAC__STREAM_DECODER_TELL_STATUS_OK;
 }
@@ -711,7 +711,8 @@ gst_flac_dec_length (const FLAC__StreamDecoder * decoder,
 
   *length = len;
 
-  GST_DEBUG_OBJECT (flacdec, "encoded byte length %" G_GINT64_FORMAT, *length);
+  GST_DEBUG_OBJECT (flacdec, "encoded byte length %" G_GINT64_FORMAT,
+      (gint64) * length);
 
   return FLAC__STREAM_DECODER_LENGTH_STATUS_OK;
 }
index 6d86c9b..47832af 100644 (file)
@@ -757,16 +757,16 @@ gst_flac_enc_seek_callback (const FLAC__StreamEncoder * encoder,
     gst_object_unref (peerpad);
 
     if (ret) {
-      GST_DEBUG ("Seek to %" G_GUINT64_FORMAT " %s", absolute_byte_offset,
-          "succeeded");
+      GST_DEBUG ("Seek to %" G_GUINT64_FORMAT " %s",
+          (guint64) absolute_byte_offset, "succeeded");
     } else {
-      GST_DEBUG ("Seek to %" G_GUINT64_FORMAT " %s", absolute_byte_offset,
-          "failed");
+      GST_DEBUG ("Seek to %" G_GUINT64_FORMAT " %s",
+          (guint64) absolute_byte_offset, "failed");
       return FLAC__STREAM_ENCODER_SEEK_STATUS_UNSUPPORTED;
     }
   } else {
     GST_DEBUG ("Seek to %" G_GUINT64_FORMAT " failed (no peer pad)",
-        absolute_byte_offset);
+        (guint64) absolute_byte_offset);
   }
 
   flacenc->offset = absolute_byte_offset;