From 9f1732fba70c67d64f161b35ea6f61fbaabe6d87 Mon Sep 17 00:00:00 2001 From: Alessandro Decina Date: Sun, 26 Feb 2012 20:36:46 +0100 Subject: [PATCH] Fix compiler warnings --- ext/vorbis/gstvorbisparse.c | 2 +- gst-libs/gst/video/gstvideometa.c | 3 ++- gst/tcp/gstmultifdsink.c | 4 ++-- gst/tcp/gstmultisocketsink.c | 2 +- 4 files changed, 6 insertions(+), 5 deletions(-) diff --git a/ext/vorbis/gstvorbisparse.c b/ext/vorbis/gstvorbisparse.c index 174199bc19..0d1bea8d5a 100644 --- a/ext/vorbis/gstvorbisparse.c +++ b/ext/vorbis/gstvorbisparse.c @@ -363,7 +363,7 @@ vorbis_parse_queue_buffer (GstVorbisParse * parse, GstBuffer * buf) gst_buffer_map (buf, &map, GST_MAP_READ); packet.packet = map.data; packet.bytes = map.size; - GST_DEBUG ("%p, %d", map.data, map.size); + GST_DEBUG ("%p, %" G_GSIZE_FORMAT, map.data, map.size); packet.granulepos = GST_BUFFER_OFFSET_END (buf); packet.packetno = parse->packetno + parse->buffer_queue->length; packet.e_o_s = 0; diff --git a/gst-libs/gst/video/gstvideometa.c b/gst-libs/gst/video/gstvideometa.c index 30857af419..b11cd3b05d 100644 --- a/gst-libs/gst/video/gstvideometa.c +++ b/gst-libs/gst/video/gstvideometa.c @@ -132,7 +132,8 @@ default_map (GstVideoMeta * meta, guint plane, GstMapInfo * info, offset -= size; gst_memory_unref (mem); } - GST_DEBUG ("no memory found for offset %u", meta->offset[plane]); + GST_DEBUG ("no memory found for offset %" G_GSIZE_FORMAT, + meta->offset[plane]); return FALSE; /* ERRORS */ diff --git a/gst/tcp/gstmultifdsink.c b/gst/tcp/gstmultifdsink.c index bb960165aa..9f187c03c8 100644 --- a/gst/tcp/gstmultifdsink.c +++ b/gst/tcp/gstmultifdsink.c @@ -454,7 +454,7 @@ gst_multi_fd_sink_new_client (GstMultiHandleSink * mhsink, /* set the socket to non blocking */ if (fcntl (handle.fd, F_SETFL, O_NONBLOCK) < 0) { - GST_ERROR_OBJECT (mhsink, "failed to make socket %d non-blocking: %s", + GST_ERROR_OBJECT (mhsink, "failed to make socket %s non-blocking: %s", mhclient->debug, g_strerror (errno)); } @@ -736,7 +736,7 @@ gst_multi_fd_sink_handle_client_write (GstMultiFdSink * sink, /* partial write means that the client cannot read more and we should * stop sending more */ GST_LOG_OBJECT (sink, - "partial write on %d of %" G_GSSIZE_FORMAT " bytes", + "partial write on %s of %" G_GSSIZE_FORMAT " bytes", mhclient->debug, wrote); mhclient->bufoffset += wrote; more = FALSE; diff --git a/gst/tcp/gstmultisocketsink.c b/gst/tcp/gstmultisocketsink.c index 62d65e0048..d9f5188b60 100644 --- a/gst/tcp/gstmultisocketsink.c +++ b/gst/tcp/gstmultisocketsink.c @@ -613,7 +613,7 @@ gst_multi_socket_sink_handle_client_write (GstMultiSocketSink * sink, mhclient->flushcount--; GST_LOG_OBJECT (sink, "%s client %p at position %d", - socket, client, mhclient->bufpos); + mhclient->debug, client, mhclient->bufpos); /* queueing a buffer will ref it */ mhsinkclass->client_queue_buffer (mhsink, mhclient, buf);