+2007-09-12 Tim-Philipp Müller <tim at centricular dot net>
+
+ Patch by: Peter Kjellerstedt <pkj at axis com>
+
+ * gst-libs/gst/app/gstappsink.c:
+ * gst/flv/gstflvdemux.c:
+ * gst/flv/gstflvparse.c:
+ * gst/interleave/deinterleave.c:
+ * gst/switch/gstswitch.c:
+ Printf format fixes (#476128).
+
2007-09-09 Tim-Philipp Müller <tim at centricular dot net>
Patch by: Thomas Green <tom78999 gmail com>
GST_OBJECT_LOCK (appsink);
if ((caps = appsink->caps))
gst_caps_ref (caps);
- GST_DEBUG_OBJECT (appsink, "got caps " GST_PTR_FORMAT, caps);
+ GST_DEBUG_OBJECT (appsink, "got caps %" GST_PTR_FORMAT, caps);
GST_OBJECT_UNLOCK (appsink);
return caps;
g_return_if_fail (GST_IS_APP_SINK (appsink));
GST_OBJECT_LOCK (appsink);
- GST_DEBUG_OBJECT (appsink, "setting caps to " GST_PTR_FORMAT, caps);
+ GST_DEBUG_OBJECT (appsink, "setting caps to %" GST_PTR_FORMAT, caps);
gst_caps_replace (&appsink->caps, caps);
GST_OBJECT_UNLOCK (appsink);
}
/* Pull the whole tag */
ret = gst_pad_pull_range (pad, demux->offset, demux->tag_size, &buffer);
if (G_UNLIKELY (ret != GST_FLOW_OK)) {
- GST_WARNING_OBJECT (demux, "failed when pulling %d bytes", demux->tag_size);
+ GST_WARNING_OBJECT (demux,
+ "failed when pulling %" G_GUINT64_FORMAT " bytes", demux->tag_size);
goto beach;
}
if (G_UNLIKELY (buffer && GST_BUFFER_SIZE (buffer) != demux->tag_size)) {
- GST_WARNING_OBJECT (demux, "partial pull got %d when expecting %d",
+ GST_WARNING_OBJECT (demux,
+ "partial pull got %d when expecting %" G_GUINT64_FORMAT,
GST_BUFFER_SIZE (buffer), demux->tag_size);
gst_buffer_unref (buffer);
ret = GST_FLOW_UNEXPECTED;
caps = gst_caps_new_simple ("audio/x-raw-int", NULL);
break;
default:
- GST_WARNING_OBJECT (demux, "unsupported audio codec tag", codec_tag);
+ GST_WARNING_OBJECT (demux, "unsupported audio codec tag %u", codec_tag);
}
if (G_UNLIKELY (!caps)) {
caps = gst_caps_new_simple ("audio/x-raw-int", NULL);
break;
default:
- GST_WARNING_OBJECT (demux, "unsupported audio codec tag", codec_tag);
+ GST_WARNING_OBJECT (demux, "unsupported audio codec tag %u", codec_tag);
}
if (G_UNLIKELY (!caps)) {
demux->tag_data_size = FLV_GET_BEUI24 (data + 1, data_size - 1);
demux->tag_size = demux->tag_data_size + 11;
- GST_LOG_OBJECT (demux, "tag data size is %d", demux->tag_data_size);
+ GST_LOG_OBJECT (demux, "tag data size is %" G_GUINT64_FORMAT,
+ demux->tag_data_size);
return ret;
}
static GstFlowReturn
gst_deinterleave_process (GstDeinterleave * self, GstBuffer * buf)
{
- GstFlowReturn ret;
+ GstFlowReturn ret = GST_FLOW_OK; /* initialized to silence a warning */
GList *srcs;
guint bufsize, i, j, channels, pads_pushed, nframes;
GstBuffer **buffers_out;
"Sending new segment with start of %" G_GUINT64_FORMAT, start);
} else {
GST_WARNING_OBJECT (gstswitch,
- "Couldn't find new segment for pad %s:%s in hashtable",
+ "Couldn't find new segment for pad %s in hashtable",
GST_PAD_NAME (pad));
}
/* reset stop and start value */
"Sending new segment with start of %" G_GUINT64_FORMAT, start);
} else {
GST_WARNING_OBJECT (gstswitch,
- "Couldn't find new segment for pad %s:%s in hashtable",
+ "Couldn't find new segment for pad %s in hashtable",
GST_PAD_NAME (gstswitch->active_sinkpad));
}
/* reset stop and start value */