summaryrefslogtreecommitdiff
path: root/ext/mimic
diff options
context:
space:
mode:
authorOlivier CrĂȘte <olivier.crete@collabora.co.uk>2009-07-16 15:43:15 -0400
committerOlivier CrĂȘte <olivier.crete@collabora.co.uk>2009-07-16 15:47:08 -0400
commit8eac8701ff4ba06702c655dc40bdd9d8eec8fe21 (patch)
tree7c50edbf226559c7bcf6b01a09830d55c5d83e45 /ext/mimic
parentb9890a2bf724cafb561c47df2ff48cc3ae4f0e89 (diff)
downloadgstreamer-plugins-bad-8eac8701ff4ba06702c655dc40bdd9d8eec8fe21.tar.gz
mimdec: Print the incoming fourcc on errors
Diffstat (limited to 'ext/mimic')
-rw-r--r--ext/mimic/gstmimdec.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/ext/mimic/gstmimdec.c b/ext/mimic/gstmimdec.c
index 1579bd41f..f06473ba5 100644
--- a/ext/mimic/gstmimdec.c
+++ b/ext/mimic/gstmimdec.c
@@ -181,10 +181,10 @@ gst_mimdec_chain (GstPad * pad, GstBuffer * in)
goto out;
}
- fourcc = GST_MAKE_FOURCC ('M', 'L', '2', '0');
- if (GUINT32_FROM_LE (*((guint32 *) (header + 12))) != fourcc) {
- GST_WARNING_OBJECT (mimdec, "invalid frame: unknown FOURCC code %d",
- fourcc);
+ fourcc = GUINT32_FROM_LE (*((guint32 *) (header + 12)));
+ if (GST_MAKE_FOURCC ('M', 'L', '2', '0') != fourcc) {
+ GST_WARNING_OBJECT (mimdec, "invalid frame: unknown FOURCC code"
+ " %X (%" GST_FOURCC_FORMAT ")", fourcc, GST_FOURCC_ARGS (fourcc));
gst_adapter_flush (mimdec->adapter, 24);
res = GST_FLOW_ERROR;
goto out;