summaryrefslogtreecommitdiffstats
path: root/ext/flac
diff options
context:
space:
mode:
authorThomas Vander Stichele <thomas (at) apestaart (dot) org>2009-03-03 10:06:52 +0100
committerThomas Vander Stichele <thomas@davedina.amantes>2009-04-04 15:14:31 +0200
commit5e19fc105852965802e6d2761218c2b236dd7456 (patch)
tree6d3a7b1cabff27c75a3989288f55513302967921 /ext/flac
parent5439fb89d1f4c64e814af101adea001576feef05 (diff)
clipping should also work if it's done on the first buffer starting at 0
Diffstat (limited to 'ext/flac')
-rw-r--r--ext/flac/gstflacdec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/flac/gstflacdec.c b/ext/flac/gstflacdec.c
index 2968a939..a8e1e4e3 100644
--- a/ext/flac/gstflacdec.c
+++ b/ext/flac/gstflacdec.c
@@ -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,