[gst-cvs] gst-plugins-good: clipping should also work if it' s done on the first buffer starting at 0
Thomas Vander Stichele
thomasvs at kemper.freedesktop.org
Sat Apr 4 06:14:05 PDT 2009
Module: gst-plugins-good
Branch: master
Commit: 5e19fc105852965802e6d2761218c2b236dd7456
URL: http://cgit.freedesktop.org/gstreamer/gst-plugins-good/commit/?id=5e19fc105852965802e6d2761218c2b236dd7456
Author: Thomas Vander Stichele <thomas (at) apestaart (dot) org>
Date: Tue Mar 3 10:06:52 2009 +0100
clipping should also work if it's done on the first buffer starting at 0
---
ext/flac/gstflacdec.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/ext/flac/gstflacdec.c b/ext/flac/gstflacdec.c
index 2968a93..a8e1e4e 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,
More information about the Gstreamer-commits
mailing list