ext/vorbis/vorbisenc.c: Fix discontinuity detection which was broken by last commit.
authorSebastian Dröge <slomo@circular-chaos.org>
Fri, 10 Oct 2008 15:21:38 +0000 (15:21 +0000)
committerSebastian Dröge <slomo@circular-chaos.org>
Fri, 10 Oct 2008 15:21:38 +0000 (15:21 +0000)
Original commit message from CVS:
* ext/vorbis/vorbisenc.c:
(gst_vorbis_enc_buffer_check_discontinuous):
Fix discontinuity detection which was broken by last commit.

ChangeLog
ext/vorbis/vorbisenc.c

index d4c775e2bee75799fc9e7504488791610fa3967f..b8d1d0fec29aef30eea91457a0c6cb07b5fdebe5 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -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::
index 842738d040bd9893257b8003aca44dcb5436f084..4c047c44c4da280739692e7704318e6f956d482d 100644 (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.