summaryrefslogtreecommitdiffstats
path: root/gst/switch
diff options
context:
space:
mode:
authorTim-Philipp Müller <tim@centricular.net>2007-05-20 14:14:49 +0000
committerTim-Philipp Müller <tim@centricular.net>2007-05-20 14:14:49 +0000
commit8ab8af183b311fbaaddb52f024ea6627fd76667b (patch)
treed4372d96da2c05774073f4a1bc5998a701558b62 /gst/switch
parent59ee7965e4de8981a9c2223f04b58b13961460e7 (diff)
downloadgst-plugins-bad-8ab8af183b311fbaaddb52f024ea6627fd76667b.tar.gz
gst-plugins-bad-8ab8af183b311fbaaddb52f024ea6627fd76667b.tar.bz2
gst-plugins-bad-8ab8af183b311fbaaddb52f024ea6627fd76667b.zip
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).
Diffstat (limited to 'gst/switch')
-rw-r--r--gst/switch/gstswitch.c5
1 files changed, 3 insertions, 2 deletions
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;