summaryrefslogtreecommitdiff
path: root/gst/printf
diff options
context:
space:
mode:
authorTim-Philipp Müller <tim@centricular.net>2013-04-07 17:29:02 +0100
committerTim-Philipp Müller <tim.muller@collabora.co.uk>2013-04-12 23:05:57 +0100
commit3778c1878cf59b486228fcf3c500a091e7607e71 (patch)
treee7dd44f6bb53e229f26d7bbb72c0209921d66a3c /gst/printf
parent6d8a6470d59142ff1de3841894bb33e71d133566 (diff)
downloadgstreamer-3778c1878cf59b486228fcf3c500a091e7607e71.tar.gz
printf: skip pointer extension signifier chars after %p
So they don't get printed after the serialised pointer string.
Diffstat (limited to 'gst/printf')
-rw-r--r--gst/printf/printf-parse.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/gst/printf/printf-parse.c b/gst/printf/printf-parse.c
index fc7b4d5d43..f8d3475f91 100644
--- a/gst/printf/printf-parse.c
+++ b/gst/printf/printf-parse.c
@@ -400,6 +400,7 @@ printf_parse (const char *format, char_directives * d, arguments * a)
type = TYPE_POINTER_EXT;
dp->flags |= FLAG_PTR_EXT;
dp->ptr_ext_char = cp[1];
+ cp += 2;
/* we do not use dp->conversion='s' on purpose here, so we
* can fall back to printing just the pointer with %p if the
* serialisation function returned NULL for some reason */