riff: Print invalid fourcc in error message in hex
authorSebastian Rasmussen <sebrn@axis.com>
Thu, 3 Jul 2014 16:32:02 +0000 (18:32 +0200)
committerSebastian Dröge <sebastian@centricular.com>
Thu, 3 Jul 2014 17:37:18 +0000 (19:37 +0200)
Previously this was printed as characters which caused later processing
of the error message to sometimes warn about non-UTF-8 characters.

Fixes https://bugzilla.gnome.org/show_bug.cgi?id=732697

gst-libs/gst/riff/riff-read.c

index 824bc73..a60b9cf 100644 (file)
@@ -258,8 +258,7 @@ too_small:
 not_riff:
   {
     GST_ELEMENT_ERROR (element, STREAM, WRONG_TYPE, (NULL),
-        ("Stream is no RIFF stream: %" GST_FOURCC_FORMAT,
-            GST_FOURCC_ARGS (tag)));
+        ("Stream is no RIFF stream: 0x%" G_GINT32_MODIFIER "x", tag));
     gst_buffer_unmap (buf, &info);
     gst_buffer_unref (buf);
     return FALSE;