diff options
author | Olivier CrĂȘte <olivier.crete@collabora.co.uk> | 2009-07-16 15:43:15 -0400 |
---|---|---|
committer | Olivier CrĂȘte <olivier.crete@collabora.co.uk> | 2009-07-16 15:47:08 -0400 |
commit | 8eac8701ff4ba06702c655dc40bdd9d8eec8fe21 (patch) | |
tree | 7c50edbf226559c7bcf6b01a09830d55c5d83e45 /ext | |
parent | b9890a2bf724cafb561c47df2ff48cc3ae4f0e89 (diff) | |
download | gst-plugins-bad-8eac8701ff4ba06702c655dc40bdd9d8eec8fe21.tar.gz gst-plugins-bad-8eac8701ff4ba06702c655dc40bdd9d8eec8fe21.tar.bz2 gst-plugins-bad-8eac8701ff4ba06702c655dc40bdd9d8eec8fe21.zip |
mimdec: Print the incoming fourcc on errors
Diffstat (limited to 'ext')
-rw-r--r-- | ext/mimic/gstmimdec.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/ext/mimic/gstmimdec.c b/ext/mimic/gstmimdec.c index 1579bd41..f06473ba 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; |