From 8ab8af183b311fbaaddb52f024ea6627fd76667b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim-Philipp=20M=C3=BCller?= Date: Sun, 20 May 2007 14:14:49 +0000 Subject: gst/: Printf format fixes (#439910, #439911). Original commit message from CVS: * gst/qtdemux/qtdemux.c: (gst_qtdemux_prepare_current_sample): * gst/switch/gstswitch.c: (gst_switch_chain): Printf format fixes (#439910, #439911). --- ChangeLog | 6 ++++++ gst/qtdemux/qtdemux.c | 2 +- gst/switch/gstswitch.c | 5 +++-- 3 files changed, 10 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index d5512844..eed4b442 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2007-05-20 Tim-Philipp Müller + + * gst/qtdemux/qtdemux.c: (gst_qtdemux_prepare_current_sample): + * gst/switch/gstswitch.c: (gst_switch_chain): + Printf format fixes (#439910, #439911). + 2007-05-19 Tim-Philipp Müller * tests/check/Makefile.am: diff --git a/gst/qtdemux/qtdemux.c b/gst/qtdemux/qtdemux.c index ec438d5c..ce3f18b1 100644 --- a/gst/qtdemux/qtdemux.c +++ b/gst/qtdemux/qtdemux.c @@ -1142,7 +1142,7 @@ gst_qtdemux_prepare_current_sample (GstQTDemux * qtdemux, if (stream->segment_index != seg_idx) gst_qtdemux_activate_segment (qtdemux, stream, seg_idx, time_position); - GST_LOG_OBJECT (qtdemux, "segment active, index = %lu of %lu", + GST_LOG_OBJECT (qtdemux, "segment active, index = %u of %u", stream->sample_index, stream->n_samples); if (stream->sample_index >= stream->n_samples) diff --git a/gst/switch/gstswitch.c b/gst/switch/gstswitch.c index 633dfe32..1c66a791 100644 --- a/gst/switch/gstswitch.c +++ b/gst/switch/gstswitch.c @@ -225,6 +225,7 @@ gst_switch_chain (GstPad * pad, GstBuffer * buf) GstEvent *prev_newsegment = (GstEvent *) g_hash_table_lookup (gstswitch->newsegment_events, gstswitch->previous_sinkpad); + if (prev_newsegment) { /* need to send a new segment update changing stop */ gboolean update; @@ -272,8 +273,8 @@ gst_switch_chain (GstPad * pad, GstBuffer * buf) GST_DEBUG_OBJECT (gstswitch, "Sending new segment with start of %" G_GUINT64_FORMAT, start); } else { - GST_WARNING_OBJECT (gstswitch, - "Could not find new segment for pad %r in hashtable", pad); + GST_WARNING_OBJECT (pad, + "Couldn't find new segment for pad in hashtable"); } /* reset stop and start value */ gstswitch->start_value = GST_CLOCK_TIME_NONE; -- cgit v1.2.1