ext/vorbis/vorbisenc.c: Fix discontinuity detection which was broken by last commit.

Original commit message from CVS:
* ext/vorbis/vorbisenc.c:
(gst_vorbis_enc_buffer_check_discontinuous):
Fix discontinuity detection which was broken by last commit.
This commit is contained in:
Sebastian Dröge 2008-10-10 15:21:38 +00:00
parent 36427ba880
commit 0d43cf2474
2 changed files with 7 additions and 1 deletions

View file

@ -1,3 +1,9 @@
2008-10-10 Sebastian Dröge <sebastian.droege@collabora.co.uk>
* ext/vorbis/vorbisenc.c:
(gst_vorbis_enc_buffer_check_discontinuous):
Fix discontinuity detection which was broken by last commit.
2008-10-09 Tim-Philipp Müller <tim.muller at collabora co uk>
* configure.ac::

View file

@ -1062,7 +1062,7 @@ gst_vorbis_enc_buffer_check_discontinuous (GstVorbisEnc * vorbisenc,
if (timestamp != GST_CLOCK_TIME_NONE &&
vorbisenc->expected_ts != GST_CLOCK_TIME_NONE &&
duration != vorbisenc->expected_ts) {
timestamp + duration != vorbisenc->expected_ts) {
/* It turns out that a lot of elements don't generate perfect streams due
* to rounding errors. So, we permit small errors (< 1/2 a sample) without
* causing a discont.