mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-24 08:08:22 +00:00
clipping should also work if it's done on the first buffer starting at 0
This commit is contained in:
parent
5439fb89d1
commit
5e19fc1058
1 changed files with 1 additions and 1 deletions
|
@ -835,7 +835,7 @@ gst_flac_dec_write (GstFlacDec * flacdec, const FLAC__Frame * frame,
|
||||||
* of the segment */
|
* of the segment */
|
||||||
if (flacdec->segment.format == GST_FORMAT_DEFAULT &&
|
if (flacdec->segment.format == GST_FORMAT_DEFAULT &&
|
||||||
flacdec->segment.stop != -1 &&
|
flacdec->segment.stop != -1 &&
|
||||||
flacdec->segment.last_stop > 0 &&
|
flacdec->segment.last_stop >= 0 &&
|
||||||
flacdec->segment.last_stop + samples > flacdec->segment.stop) {
|
flacdec->segment.last_stop + samples > flacdec->segment.stop) {
|
||||||
samples = flacdec->segment.stop - flacdec->segment.last_stop;
|
samples = flacdec->segment.stop - flacdec->segment.last_stop;
|
||||||
GST_DEBUG_OBJECT (flacdec,
|
GST_DEBUG_OBJECT (flacdec,
|
||||||
|
|
Loading…
Reference in a new issue