From 467b9f2861846accbc3cfbe726d163cf1be312a1 Mon Sep 17 00:00:00 2001 From: Craig Keogh Date: Sun, 31 Aug 2008 08:32:45 +0000 Subject: [PATCH] ext/annodex/gstcmmlparser.c: Fix compiler warnings caused by passing a string as format string instead of "%s" and th... Original commit message from CVS: Patch by: Craig Keogh * ext/annodex/gstcmmlparser.c: (gst_cmml_parser_parse_chunk): Fix compiler warnings caused by passing a string as format string instead of "%s" and then the string. This is only exposed by -Wformat=2 as used by default on Ubuntu. Fixes bug #550015. --- ChangeLog | 9 +++++++++ ext/annodex/gstcmmlparser.c | 2 +- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index c2df11dfe9..0e71c1652c 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,12 @@ +2008-08-31 Sebastian Dröge + + Patch by: Craig Keogh + + * ext/annodex/gstcmmlparser.c: (gst_cmml_parser_parse_chunk): + Fix compiler warnings caused by passing a string as format string + instead of "%s" and then the string. This is only exposed by -Wformat=2 + as used by default on Ubuntu. Fixes bug #550015. + 2008-08-30 Tim-Philipp Müller * ext/raw1394/gsthdv1394src.c: (gst_hdv1394src_create): diff --git a/ext/annodex/gstcmmlparser.c b/ext/annodex/gstcmmlparser.c index abc79e76b3..221f9f91cf 100644 --- a/ext/annodex/gstcmmlparser.c +++ b/ext/annodex/gstcmmlparser.c @@ -112,7 +112,7 @@ gst_cmml_parser_parse_chunk (GstCmmlParser * parser, GST_DEBUG ("Error occurred decoding chunk %s", data); g_set_error (err, - GST_LIBRARY_ERROR, GST_LIBRARY_ERROR_FAILED, xml_error->message); + GST_LIBRARY_ERROR, GST_LIBRARY_ERROR_FAILED, "%s", xml_error->message); return FALSE; }