From: Vincent Penquerc'h Date: Tue, 10 Jun 2014 09:52:23 +0000 (+0100) Subject: flacdec: add const where appropriate X-Git-Tag: 1.19.3~509^2~4384 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=592c34336e3f217fbbb7872e854863a268f1f9f1;p=platform%2Fupstream%2Fgstreamer.git flacdec: add const where appropriate --- diff --git a/ext/flac/gstflacdec.c b/ext/flac/gstflacdec.c index 5de5bc0..f5e0702 100644 --- a/ext/flac/gstflacdec.c +++ b/ext/flac/gstflacdec.c @@ -317,7 +317,7 @@ static const guint8 crc8_table[256] = { }; static guint8 -gst_flac_calculate_crc8 (guint8 * data, guint length) +gst_flac_calculate_crc8 (const guint8 * data, guint length) { guint8 crc = 0; @@ -332,7 +332,8 @@ gst_flac_calculate_crc8 (guint8 * data, guint length) /* FIXME: for our purposes it's probably enough to just check for the sync * marker - we just want to know if it's a header frame or not */ static gboolean -gst_flac_dec_scan_got_frame (GstFlacDec * flacdec, guint8 * data, guint size) +gst_flac_dec_scan_got_frame (GstFlacDec * flacdec, const guint8 * data, + guint size) { guint headerlen; guint sr_from_end = 0; /* can be 0, 8 or 16 */