summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlessandro Decina <alessandro.d@gmail.com>2012-02-27 06:26:02 +0100
committerAlessandro Decina <alessandro.d@gmail.com>2012-02-27 06:26:02 +0100
commitd48fc1806586e0a629a223f57d795883452e5774 (patch)
treea8c0d6964a42320a9117840cfb9599fe87b5f1ae
parent0c7430adec170bc184fc78709dc8f28638adf700 (diff)
Fix compiler warnings
-rw-r--r--ext/ffmpeg/gstffmpegcodecmap.c2
-rw-r--r--ext/ffmpeg/gstffmpegdec.c2
-rw-r--r--ext/ffmpeg/gstffmpegdemux.c5
-rw-r--r--ext/ffmpeg/gstffmpegenc.c3
-rw-r--r--ext/ffmpeg/gstffmpegprotocol.c2
-rw-r--r--ext/libswscale/gstffmpegscale.c5
6 files changed, 11 insertions, 8 deletions
diff --git a/ext/ffmpeg/gstffmpegcodecmap.c b/ext/ffmpeg/gstffmpegcodecmap.c
index a93b292..948bd67 100644
--- a/ext/ffmpeg/gstffmpegcodecmap.c
+++ b/ext/ffmpeg/gstffmpegcodecmap.c
@@ -2247,7 +2247,7 @@ gst_ffmpeg_caps_with_codecid (enum CodecID codec_id,
context->extradata[0] = (guint8) map.size;
}
- GST_DEBUG ("have codec data of size %d", map.size);
+ GST_DEBUG ("have codec data of size %" G_GSIZE_FORMAT, map.size);
gst_buffer_unmap (buf, &map);
} else if (context->extradata == NULL && codec_id != CODEC_ID_AAC_LATM &&
diff --git a/ext/ffmpeg/gstffmpegdec.c b/ext/ffmpeg/gstffmpegdec.c
index 9b2044c..3b8ff1c 100644
--- a/ext/ffmpeg/gstffmpegdec.c
+++ b/ext/ffmpeg/gstffmpegdec.c
@@ -2823,7 +2823,7 @@ gst_ffmpegdec_chain (GstPad * pad, GstObject * parent, GstBuffer * inbuf)
GST_LOG_OBJECT (ffmpegdec,
"parser returned res %d and size %d, id %" G_GINT64_FORMAT, res, size,
- ffmpegdec->pctx->pts);
+ (gint64) ffmpegdec->pctx->pts);
/* store pts for decoding */
if (ffmpegdec->pctx->pts != AV_NOPTS_VALUE && ffmpegdec->pctx->pts != -1)
diff --git a/ext/ffmpeg/gstffmpegdemux.c b/ext/ffmpeg/gstffmpegdemux.c
index e202c29..2a97e12 100644
--- a/ext/ffmpeg/gstffmpegdemux.c
+++ b/ext/ffmpeg/gstffmpegdemux.c
@@ -1435,7 +1435,7 @@ gst_ffmpegdemux_loop (GstFFMpegDemux * demux)
}
GST_DEBUG_OBJECT (demux,
- "Sending out buffer time:%" GST_TIME_FORMAT " size:%d",
+ "Sending out buffer time:%" GST_TIME_FORMAT " size:%" G_GSIZE_FORMAT,
GST_TIME_ARGS (timestamp), gst_buffer_get_size (outbuf));
ret = stream->last_flow = gst_pad_push (srcpad, outbuf);
@@ -1646,7 +1646,8 @@ gst_ffmpegdemux_chain (GstPad * sinkpad, GstObject * parent, GstBuffer * buffer)
if (G_UNLIKELY (ffpipe->srcresult != GST_FLOW_OK))
goto ignore;
- GST_DEBUG ("Giving a buffer of %d bytes", gst_buffer_get_size (buffer));
+ GST_DEBUG ("Giving a buffer of %" G_GSIZE_FORMAT " bytes",
+ gst_buffer_get_size (buffer));
gst_adapter_push (ffpipe->adapter, buffer);
buffer = NULL;
while (gst_adapter_available (ffpipe->adapter) >= ffpipe->needed) {
diff --git a/ext/ffmpeg/gstffmpegenc.c b/ext/ffmpeg/gstffmpegenc.c
index 4e4bd1e..9388e09 100644
--- a/ext/ffmpeg/gstffmpegenc.c
+++ b/ext/ffmpeg/gstffmpegenc.c
@@ -952,7 +952,8 @@ gst_ffmpegenc_chain_audio (GstPad * pad, GstObject * parent, GstBuffer * inbuf)
GST_DEBUG_OBJECT (ffmpegenc,
"Received time %" GST_TIME_FORMAT ", duration %" GST_TIME_FORMAT
- ", size %d", GST_TIME_ARGS (timestamp), GST_TIME_ARGS (duration), size);
+ ", size %" G_GSIZE_FORMAT, GST_TIME_ARGS (timestamp),
+ GST_TIME_ARGS (duration), size);
frame_size = ctx->frame_size;
osize = av_get_bits_per_sample_format (ctx->sample_fmt) / 8;
diff --git a/ext/ffmpeg/gstffmpegprotocol.c b/ext/ffmpeg/gstffmpegprotocol.c
index 431b14b..5dd78e5 100644
--- a/ext/ffmpeg/gstffmpegprotocol.c
+++ b/ext/ffmpeg/gstffmpegprotocol.c
@@ -360,7 +360,7 @@ gst_ffmpeg_pipe_read (URLContext * h, unsigned char *buf, int size)
GST_LOG ("Getting %d bytes", size);
gst_adapter_copy (ffpipe->adapter, buf, 0, size);
gst_adapter_flush (ffpipe->adapter, size);
- GST_LOG ("%d bytes left in adapter",
+ GST_LOG ("%" G_GSIZE_FORMAT " bytes left in adapter",
gst_adapter_available (ffpipe->adapter));
ffpipe->needed = 0;
}
diff --git a/ext/libswscale/gstffmpegscale.c b/ext/libswscale/gstffmpegscale.c
index 226f69a..a987f10 100644
--- a/ext/libswscale/gstffmpegscale.c
+++ b/ext/libswscale/gstffmpegscale.c
@@ -465,8 +465,9 @@ gst_ffmpegscale_get_unit_size (GstBaseTransform * trans, GstCaps * caps,
*size = info.size;
- GST_DEBUG_OBJECT (trans, "unit size = %d for format %d w %d height %d",
- *size, GST_VIDEO_INFO_FORMAT (&info), GST_VIDEO_INFO_WIDTH (&info),
+ GST_DEBUG_OBJECT (trans,
+ "unit size = %" G_GSIZE_FORMAT " for format %d w %d height %d", *size,
+ GST_VIDEO_INFO_FORMAT (&info), GST_VIDEO_INFO_WIDTH (&info),
GST_VIDEO_INFO_HEIGHT (&info));
return TRUE;