insertbin, tests: fix printf format compiler warnings

This commit is contained in:
Tim-Philipp Müller 2013-01-25 12:24:55 +00:00
parent 10639eb889
commit cf695c6da9
2 changed files with 4 additions and 4 deletions

View file

@ -622,7 +622,7 @@ gst_insert_bin_do_change (GstInsertBin * self, GstPad * pad)
} else { } else {
if (!gst_ghost_pad_set_target (GST_GHOST_PAD (self->priv->sinkpad), if (!gst_ghost_pad_set_target (GST_GHOST_PAD (self->priv->sinkpad),
sinkpad)) { sinkpad)) {
GST_WARNING_OBJECT (self, "Can not set %s:%s as target for %s", GST_WARNING_OBJECT (self, "Can not set %s:%s as target for %s:%s",
GST_DEBUG_PAD_NAME (sinkpad), GST_DEBUG_PAD_NAME (sinkpad),
GST_DEBUG_PAD_NAME (self->priv->sinkpad)); GST_DEBUG_PAD_NAME (self->priv->sinkpad));
goto error; goto error;
@ -639,7 +639,7 @@ gst_insert_bin_do_change (GstInsertBin * self, GstPad * pad)
} else { } else {
if (!gst_ghost_pad_set_target (GST_GHOST_PAD (self->priv->srcpad), if (!gst_ghost_pad_set_target (GST_GHOST_PAD (self->priv->srcpad),
srcpad)) { srcpad)) {
GST_WARNING_OBJECT (self, "Can not set %s:%s as target for %s", GST_WARNING_OBJECT (self, "Can not set %s:%s as target for %s:%s",
GST_DEBUG_PAD_NAME (srcpad), GST_DEBUG_PAD_NAME (srcpad),
GST_DEBUG_PAD_NAME (self->priv->srcpad)); GST_DEBUG_PAD_NAME (self->priv->srcpad));
goto error; goto error;

View file

@ -105,7 +105,7 @@ GST_START_TEST (test_autoconvert_simple)
/* Push 10 items */ /* Push 10 items */
for (i = 0; i < 10; i++) { for (i = 0; i < 10; i++) {
GST_LOG ("Pushing test buffer %d, caps 1"); GST_LOG ("Pushing test buffer %d, caps 1", i);
fail_unless (gst_pad_push (test_src_pad, gst_buffer_new_and_alloc (4096)) fail_unless (gst_pad_push (test_src_pad, gst_buffer_new_and_alloc (4096))
== GST_FLOW_OK); == GST_FLOW_OK);
} }
@ -117,7 +117,7 @@ GST_START_TEST (test_autoconvert_simple)
/* Push 10 more items */ /* Push 10 more items */
for (i = 0; i < 10; i++) { for (i = 0; i < 10; i++) {
GST_LOG ("Pushing test buffer %d, caps 2"); GST_LOG ("Pushing test buffer %d, caps 2", i);
fail_unless (gst_pad_push (test_src_pad, gst_buffer_new_and_alloc (4096)) fail_unless (gst_pad_push (test_src_pad, gst_buffer_new_and_alloc (4096))
== GST_FLOW_OK); == GST_FLOW_OK);
} }