From: Reynaldo H. Verdejo Pinochet Date: Thu, 31 Dec 2015 23:46:31 +0000 (-0800) Subject: flacparse: add debug msg on CRC mismatch while validating frame header X-Git-Tag: 1.10.4~655 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ba094b50e1ceddc58540f4969e8bad975058df89;p=platform%2Fupstream%2Fgst-plugins-good.git flacparse: add debug msg on CRC mismatch while validating frame header --- diff --git a/gst/audioparsers/gstflacparse.c b/gst/audioparsers/gstflacparse.c index 9c328c0..33d0479 100644 --- a/gst/audioparsers/gstflacparse.c +++ b/gst/audioparsers/gstflacparse.c @@ -548,8 +548,12 @@ gst_flac_parse_frame_header_is_valid (GstFlacParse * flacparse, actual_crc = gst_flac_calculate_crc8 (data, (gst_bit_reader_get_pos (&reader) / 8) - 1); - if (actual_crc != expected_crc) + if (actual_crc != expected_crc) { + GST_DEBUG_OBJECT (flacparse, + "Checksum mismatch. Header CRC was '%d' but frame has '%d'", + expected_crc, actual_crc); goto error; + } /* Sanity check sample number against blocking strategy, as it seems some files claim fixed block size but supply sample numbers,