From 0d43cf247423f9fbf5277a5d280018f86dcd701f Mon Sep 17 00:00:00 2001 From: =?utf8?q?Sebastian=20Dr=C3=B6ge?= Date: Fri, 10 Oct 2008 15:21:38 +0000 Subject: [PATCH] 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. --- ChangeLog | 6 ++++++ ext/vorbis/vorbisenc.c | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index d4c775e..b8d1d0f 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2008-10-10 Sebastian Dröge + + * 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 * configure.ac:: diff --git a/ext/vorbis/vorbisenc.c b/ext/vorbis/vorbisenc.c index 842738d..4c047c4 100644 --- a/ext/vorbis/vorbisenc.c +++ b/ext/vorbis/vorbisenc.c @@ -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. -- 2.7.4