summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEdward Hervey <bilboed@bilboed.com>2009-05-09 10:57:55 +0200
committerEdward Hervey <bilboed@bilboed.com>2009-05-09 10:57:55 +0200
commit36bdeea0e7c1587f24b50ee82e55064fad17aa9c (patch)
tree2c36b00e898291ed30318bc244bdd3ff409f5773
parentda8d4abad2d023888f560fb91b1d347e975ed38a (diff)
win32: Fix non-portable printf format.
-rw-r--r--ext/ffmpeg/gstffmpegdemux.c9
-rw-r--r--ext/ffmpeg/gstffmpegprotocol.c9
2 files changed, 11 insertions, 7 deletions
diff --git a/ext/ffmpeg/gstffmpegdemux.c b/ext/ffmpeg/gstffmpegdemux.c
index 0aaf110..7b2e8c0 100644
--- a/ext/ffmpeg/gstffmpegdemux.c
+++ b/ext/ffmpeg/gstffmpegdemux.c
@@ -475,8 +475,9 @@ gst_ffmpegdemux_do_seek (GstFFMpegDemux * demux, GstSegment * segment)
}
GST_DEBUG_OBJECT (demux,
- "About to call av_seek_frame (context, %d, %lld, 0) for time %"
- GST_TIME_FORMAT, index, fftarget, GST_TIME_ARGS (target));
+ "About to call av_seek_frame (context, %d, %" G_GINT64_FORMAT
+ ", 0) for time %" GST_TIME_FORMAT, index, fftarget,
+ GST_TIME_ARGS (target));
if ((seekret =
av_seek_frame (demux->context, index, fftarget,
@@ -1315,8 +1316,8 @@ gst_ffmpegdemux_loop (GstFFMpegDemux * demux)
GST_DEBUG_OBJECT (demux,
"pkt pts:%" GST_TIME_FORMAT
" / size:%d / stream_index:%d / flags:%d / duration:%" GST_TIME_FORMAT
- " / pos:%lld", GST_TIME_ARGS (timestamp), pkt.size, pkt.stream_index,
- pkt.flags, GST_TIME_ARGS (duration), pkt.pos);
+ " / pos:%" G_GINT64_FORMAT, GST_TIME_ARGS (timestamp), pkt.size,
+ pkt.stream_index, pkt.flags, GST_TIME_ARGS (duration), pkt.pos);
/* check start_time */
if (demux->start_time != -1 && demux->start_time > timestamp)
diff --git a/ext/ffmpeg/gstffmpegprotocol.c b/ext/ffmpeg/gstffmpegprotocol.c
index 50d35b1..6134a3a 100644
--- a/ext/ffmpeg/gstffmpegprotocol.c
+++ b/ext/ffmpeg/gstffmpegprotocol.c
@@ -104,7 +104,8 @@ gst_ffmpegdata_peek (URLContext * h, unsigned char *buf, int size)
g_return_val_if_fail (h->flags == URL_RDONLY, AVERROR_IO);
info = (GstProtocolInfo *) h->priv_data;
- GST_DEBUG ("Pulling %d bytes at position %lld", size, info->offset);
+ GST_DEBUG ("Pulling %d bytes at position %" G_GUINT64_FORMAT, size,
+ info->offset);
ret = gst_pad_pull_range (info->pad, info->offset, (guint) size, &inbuf);
@@ -140,7 +141,8 @@ gst_ffmpegdata_read (URLContext * h, unsigned char *buf, int size)
info = (GstProtocolInfo *) h->priv_data;
- GST_DEBUG ("Reading %d bytes of data at position %lld", size, info->offset);
+ GST_DEBUG ("Reading %d bytes of data at position %" G_GUINT64_FORMAT, size,
+ info->offset);
res = gst_ffmpegdata_peek (h, buf, size);
if (res >= 0)
@@ -250,7 +252,8 @@ gst_ffmpegdata_seek (URLContext * h, int64_t pos, int whence)
break;
}
- GST_DEBUG ("Now at offset %lld (returning %lld)", info->offset, newpos);
+ GST_DEBUG ("Now at offset %" G_GUINT64_FORMAT " (returning %" G_GUINT64_FORMAT
+ ")", info->offset, newpos);
return newpos;
}