diff options
Diffstat (limited to 'gst')
-rw-r--r-- | gst/auparse/gstauparse.c | 6 | ||||
-rw-r--r-- | gst/avi/gstavidemux.c | 8 | ||||
-rw-r--r-- | gst/cutter/gstcutter.c | 4 | ||||
-rw-r--r-- | gst/debug/efence.c | 4 | ||||
-rw-r--r-- | gst/id3demux/id3v2frames.c | 4 | ||||
-rw-r--r-- | gst/matroska/matroska-demux.c | 5 | ||||
-rw-r--r-- | gst/matroska/matroska-mux.c | 2 | ||||
-rw-r--r-- | gst/rtsp/gstrtspsrc.c | 8 | ||||
-rw-r--r-- | gst/wavparse/gstwavparse.c | 4 |
9 files changed, 23 insertions, 22 deletions
diff --git a/gst/auparse/gstauparse.c b/gst/auparse/gstauparse.c index 1450efb1..406e5454 100644 --- a/gst/auparse/gstauparse.c +++ b/gst/auparse/gstauparse.c @@ -268,8 +268,8 @@ gst_au_parse_parse_header (GstAuParse * auparse) auparse->samplerate = GST_READ_UINT32_BE (head + 16); auparse->channels = GST_READ_UINT32_BE (head + 20); - GST_DEBUG_OBJECT (auparse, "offset %ld, size %u, encoding %u, " - "frequency %u, channels %u", auparse->offset, size, + GST_DEBUG_OBJECT (auparse, "offset %" G_GINT64_FORMAT ", size %u, " + "encoding %u, frequency %u, channels %u", auparse->offset, size, auparse->encoding, auparse->samplerate, auparse->channels); /* Docs: @@ -389,7 +389,7 @@ gst_au_parse_parse_header (GstAuParse * auparse) if (!gst_au_parse_add_srcpad (auparse, tempcaps)) goto add_pad_failed; - GST_DEBUG_OBJECT (auparse, "offset=%ld", auparse->offset); + GST_DEBUG_OBJECT (auparse, "offset=%" G_GINT64_FORMAT, auparse->offset); gst_adapter_flush (auparse->adapter, auparse->offset); gst_caps_unref (tempcaps); diff --git a/gst/avi/gstavidemux.c b/gst/avi/gstavidemux.c index 1ed9b27d..aef6995f 100644 --- a/gst/avi/gstavidemux.c +++ b/gst/avi/gstavidemux.c @@ -823,7 +823,7 @@ gst_avi_demux_parse_superindex (GstAviDemux * avi, if (GST_READ_UINT16_LE (data) != 4 || (data[2] & 0xfe) != 0x0 || data[3] != 0x0) { GST_WARNING_OBJECT (avi, - "Superindex for stream %d has unexpected " + "Superindex for stream has unexpected " "size_entry %d (bytes) or flags 0x%02x/0x%02x", GST_READ_UINT16_LE (data), data[2], data[3]); bpe = GST_READ_UINT16_LE (data) * 4; @@ -904,7 +904,7 @@ gst_avi_demux_parse_subindex (GstElement * element, GST_WARNING_OBJECT (element, "Superindex for stream %d has unexpected " "size_entry %d (bytes) or flags 0x%02x/0x%02x", - GST_READ_UINT16_LE (data), data[2], data[3]); + stream->num, GST_READ_UINT16_LE (data), data[2], data[3]); bpe = GST_READ_UINT16_LE (data) * 4; } num = GST_READ_UINT32_LE (&data[4]); @@ -1121,7 +1121,7 @@ gst_avi_demux_parse_stream (GstAviDemux * avi, GstBuffer * buf) if (!gst_riff_parse_chunk (element, buf, &offset, &tag, &sub) || tag != GST_RIFF_TAG_strh) { GST_ERROR_OBJECT (avi, - "Failed to find strh chunk (tag: %" GST_FOURCC_FORMAT ")", + "Failed to find strh chunk (bufsize: %d, tag: %" GST_FOURCC_FORMAT ")", GST_BUFFER_SIZE (buf), GST_FOURCC_ARGS (tag)); goto fail; } else if (!gst_riff_parse_strh (element, sub, &stream->strh)) { @@ -3266,7 +3266,7 @@ gst_avi_demux_stream_data (GstAviDemux * avi) gst_adapter_flush (avi->adapter, 8); return GST_FLOW_OK; } - GST_DEBUG ("chunk ID %" GST_FOURCC_FORMAT ", size %lu", + GST_DEBUG ("chunk ID %" GST_FOURCC_FORMAT ", size %u", GST_FOURCC_ARGS (tag), size); stream_nr = CHUNKID_TO_STREAMNR (tag); diff --git a/gst/cutter/gstcutter.c b/gst/cutter/gstcutter.c index fc75754f..cffa780f 100644 --- a/gst/cutter/gstcutter.c +++ b/gst/cutter/gstcutter.c @@ -260,8 +260,8 @@ gst_cutter_chain (GstPad * pad, GstBuffer * buf) /* if RMS below threshold, add buffer length to silent run length count * if not, reset */ - GST_LOG_OBJECT (filter, "buffer stats: NMS %f, RMS %f, audio length %f", - NMS, RMS, gst_audio_duration_from_pad_buffer (filter->sinkpad, buf)); + GST_LOG_OBJECT (filter, "buffer stats: NMS %f, RMS %f, audio length %f", NMS, + RMS, (gdouble) gst_audio_duration_from_pad_buffer (filter->sinkpad, buf)); if (RMS < filter->threshold_level) filter->silent_run_length += gst_guint64_to_gdouble (gst_audio_duration_from_pad_buffer (filter-> diff --git a/gst/debug/efence.c b/gst/debug/efence.c index 1ef462f3..94eed9eb 100644 --- a/gst/debug/efence.c +++ b/gst/debug/efence.c @@ -306,7 +306,7 @@ gst_efence_buffer_alloc (GstPad * pad, guint64 offset, *buf = buffer; - GST_DEBUG_OBJECT (efence, "Allocated buffer of size %u, caps: % " + GST_DEBUG_OBJECT (efence, "Allocated buffer of size %u, caps: %" GST_PTR_FORMAT, GST_BUFFER_SIZE (buffer), GST_BUFFER_CAPS (buffer)); return GST_FLOW_OK; @@ -429,7 +429,7 @@ gst_fenced_buffer_copy (const GstBuffer * buffer) GST_BUFFER_CAPS (copy) = NULL; GST_DEBUG ("Copied buffer %p with ts %" GST_TIME_FORMAT - ", caps: % " GST_PTR_FORMAT, buffer, + ", caps: %" GST_PTR_FORMAT, buffer, GST_TIME_ARGS (GST_BUFFER_TIMESTAMP (copy)), GST_BUFFER_CAPS (copy)); return GST_FENCED_BUFFER (copy); diff --git a/gst/id3demux/id3v2frames.c b/gst/id3demux/id3v2frames.c index 96fa88ec..8f4711a7 100644 --- a/gst/id3demux/id3v2frames.c +++ b/gst/id3demux/id3v2frames.c @@ -133,8 +133,8 @@ id3demux_id3v2_parse_frame (ID3TagsWorking * work) } if (destSize != work->parse_size) { GST_WARNING - ("Decompressing ID3v2 frame %s did not produce expected size %d bytes (got %d)", - tag_name, work->parse_data, destSize); + ("Decompressing ID3v2 frame %s did not produce expected size %d bytes (got %lu)", + tag_name, work->parse_size, destSize); return FALSE; } #else diff --git a/gst/matroska/matroska-demux.c b/gst/matroska/matroska-demux.c index 17120a0e..72d3273c 100644 --- a/gst/matroska/matroska-demux.c +++ b/gst/matroska/matroska-demux.c @@ -590,7 +590,8 @@ gst_matroska_demux_add_stream (GstMatroskaDemux * demux) case GST_MATROSKA_TRACK_TYPE_LOGO: case GST_MATROSKA_TRACK_TYPE_CONTROL: default: - GST_WARNING ("Unknown or unsupported track type 0x%x", track_type); + GST_WARNING ("Unknown or unsupported track type %" + G_GUINT64_FORMAT, track_type); context->type = 0; break; } @@ -890,7 +891,7 @@ gst_matroska_demux_add_stream (GstMatroskaDemux * demux) } context->codec_priv = data; context->codec_priv_size = size; - GST_LOG_OBJECT (demux, "%u bytes of codec private data", size); + GST_LOG_OBJECT (demux, "%u bytes of codec private data", (guint) size); break; } diff --git a/gst/matroska/matroska-mux.c b/gst/matroska/matroska-mux.c index 59495053..473e2ba3 100644 --- a/gst/matroska/matroska-mux.c +++ b/gst/matroska/matroska-mux.c @@ -1206,7 +1206,7 @@ gst_matroska_mux_start (GstMatroskaMux * mux) peerpad = gst_pad_get_peer (thepad); GST_DEBUG_OBJECT (thepad, "querying duration"); if (gst_pad_query_duration (peerpad, &format, &trackduration)) { - GST_DEBUG_OBJECT (thepad, "%duration: %" GST_TIME_FORMAT, + GST_DEBUG_OBJECT (thepad, "duration: %" GST_TIME_FORMAT, GST_TIME_ARGS (trackduration)); if ((gdouble) trackduration > duration) { duration = (gdouble) trackduration; diff --git a/gst/rtsp/gstrtspsrc.c b/gst/rtsp/gstrtspsrc.c index 2494f532..0ea88313 100644 --- a/gst/rtsp/gstrtspsrc.c +++ b/gst/rtsp/gstrtspsrc.c @@ -1208,7 +1208,7 @@ send_error: gchar *str = rtsp_strresult (res); GST_ELEMENT_ERROR (src, RESOURCE, WRITE, (NULL), - ("Could not send message. (%s)", res)); + ("Could not send message. (%s)", str)); g_free (str); return FALSE; } @@ -1845,9 +1845,9 @@ gst_rtspsrc_handle_message (GstBin * bin, GstMessage * message) /* FIXME, we post an error message now to inform the user * that nothing happened. It's most likely a firewall thing. */ GST_ELEMENT_ERROR (rtspsrc, RESOURCE, READ, (NULL), - ("Could not receive any UDP packets for %" G_GUINT64_FORMAT - ".%d seconds, maybe your firewall is blocking it.", - rtspsrc->timeout / 1000000, rtspsrc->timeout % 1000000)); + ("Could not receive any UDP packets for %.4f seconds, maybe your " + "firewall is blocking it.", + (gdouble) rtspsrc->timeout / 1000000)); return; } } diff --git a/gst/wavparse/gstwavparse.c b/gst/wavparse/gstwavparse.c index 558cb063..7ac9bc54 100644 --- a/gst/wavparse/gstwavparse.c +++ b/gst/wavparse/gstwavparse.c @@ -1183,7 +1183,7 @@ gst_wavparse_stream_headers (GstWavParse * wav) /* We will continue parsing tags 'till end */ wav->offset += size; } - GST_DEBUG_OBJECT (wav, "datasize = %ld", size); + GST_DEBUG_OBJECT (wav, "datasize = %d", size); break; } case GST_RIFF_TAG_fact:{ @@ -1237,7 +1237,7 @@ gst_wavparse_stream_headers (GstWavParse * wav) wav->bps = (guint32) gst_util_uint64_scale ((guint64) wav->rate, wav->datasize, (guint64) wav->fact); - GST_DEBUG_OBJECT (wav, "calculated bps : %ld", wav->bps); + GST_DEBUG_OBJECT (wav, "calculated bps : %d", wav->bps); } if (wav->bps <= 0) goto no_bitrate; |