clipping should also work if it's done on the first buffer starting at 0

This commit is contained in:
Thomas Vander Stichele 2009-03-03 10:06:52 +01:00 committed by Thomas Vander Stichele
parent 5439fb89d1
commit 5e19fc1058

View file

@ -835,7 +835,7 @@ gst_flac_dec_write (GstFlacDec * flacdec, const FLAC__Frame * frame,
* of the segment */
if (flacdec->segment.format == GST_FORMAT_DEFAULT &&
flacdec->segment.stop != -1 &&
flacdec->segment.last_stop > 0 &&
flacdec->segment.last_stop >= 0 &&
flacdec->segment.last_stop + samples > flacdec->segment.stop) {
samples = flacdec->segment.stop - flacdec->segment.last_stop;
GST_DEBUG_OBJECT (flacdec,