From 7807e2e6fd146cce26a0374aa3e4e03cc443a9b5 Mon Sep 17 00:00:00 2001 From: Sebastian Rasmussen Date: Thu, 3 Jul 2014 18:32:02 +0200 Subject: [PATCH] riff: Print invalid fourcc in error message in hex 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 | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/gst-libs/gst/riff/riff-read.c b/gst-libs/gst/riff/riff-read.c index 824bc7324f..a60b9cf7bf 100644 --- a/gst-libs/gst/riff/riff-read.c +++ b/gst-libs/gst/riff/riff-read.c @@ -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; -- 2.34.1