summaryrefslogtreecommitdiffstats
path: root/ext/flac/gstflacdec.h
diff options
context:
space:
mode:
authorTim-Philipp Müller <tim@centricular.net>2006-04-07 18:15:08 +0000
committerTim-Philipp Müller <tim@centricular.net>2006-04-07 18:15:08 +0000
commit661ddc65c3981aaa640ef9135eb35901f7861db1 (patch)
tree6d03de9de692a9bb442db438e04f549552dcce6b /ext/flac/gstflacdec.h
parent5900db993d5d1a06d9e587695f4e62cbda1ddd20 (diff)
ext/flac/gstflacdec.*: If the stream header doesn't contain the total number of samples, search for the last flac fra...
Original commit message from CVS: * ext/flac/gstflacdec.c: (gst_flac_calculate_crc8), (gst_flac_dec_scan_got_frame), (gst_flac_dec_scan_for_last_block), (gst_flac_dec_metadata_callback): * ext/flac/gstflacdec.h: If the stream header doesn't contain the total number of samples, search for the last flac frame at the end of the file and calculate the total duration from that frame's offset (fixes #337609).
Diffstat (limited to 'ext/flac/gstflacdec.h')
-rw-r--r--ext/flac/gstflacdec.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/ext/flac/gstflacdec.h b/ext/flac/gstflacdec.h
index 8987e562..75d4326f 100644
--- a/ext/flac/gstflacdec.h
+++ b/ext/flac/gstflacdec.h
@@ -64,6 +64,10 @@ struct _GstFlacDec {
gint depth;
gint width;
gint sample_rate;
+
+ /* from the stream info, needed for scanning */
+ guint16 min_blocksize;
+ guint16 max_blocksize;
};
struct _GstFlacDecClass {