mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-31 19:42:26 +00:00
ext/mad/gstmad.c: Fix buffer clipping to correctly clip to the segment stop.
Original commit message from CVS: * ext/mad/gstmad.c: (clip_outgoing_buffer): Fix buffer clipping to correctly clip to the segment stop.
This commit is contained in:
parent
4039063c80
commit
b55c8a16b9
2 changed files with 6 additions and 1 deletions
|
@ -1,3 +1,8 @@
|
|||
2007-07-16 Sebastian Dröge <slomo@circular-chaos.org>
|
||||
|
||||
* ext/mad/gstmad.c: (clip_outgoing_buffer):
|
||||
Fix buffer clipping to correctly clip to the segment stop.
|
||||
|
||||
2007-07-15 Jan Schmidt <thaytan@noraisin.net>
|
||||
|
||||
* gst/mpegaudioparse/gstmpegaudioparse.c:
|
||||
|
|
|
@ -1251,7 +1251,7 @@ clip_outgoing_buffer (GstMad * mad, GstBuffer * buffer)
|
|||
GST_BUFFER_DATA (buffer) += diff;
|
||||
GST_BUFFER_SIZE (buffer) -= diff;
|
||||
}
|
||||
diff = cstop - stop;
|
||||
diff = stop - cstop;
|
||||
if (diff > 0) {
|
||||
GST_BUFFER_DURATION (buffer) -= diff;
|
||||
/* time->frames->bytes */
|
||||
|
|
Loading…
Reference in a new issue