mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-24 02:31:03 +00:00
ext/vorbis/vorbisenc.c: Ignore explicit DISCONT marked on buffers (which is often spurious, particularly when using m...
Original commit message from CVS: * ext/vorbis/vorbisenc.c: (gst_vorbis_enc_push_buffer), (gst_vorbis_enc_buffer_check_discontinuous), (gst_vorbis_enc_chain): Ignore explicit DISCONT marked on buffers (which is often spurious, particularly when using multiple segments), in favour of solely using the timestamps/durations.
This commit is contained in:
parent
317bb22aca
commit
dbf7690ce4
2 changed files with 12 additions and 6 deletions
|
@ -1,3 +1,12 @@
|
|||
2006-08-29 Michael Smith <msmith@fluendo.com>
|
||||
|
||||
* ext/vorbis/vorbisenc.c: (gst_vorbis_enc_push_buffer),
|
||||
(gst_vorbis_enc_buffer_check_discontinuous),
|
||||
(gst_vorbis_enc_chain):
|
||||
Ignore explicit DISCONT marked on buffers (which is often spurious,
|
||||
particularly when using multiple segments), in favour of solely
|
||||
using the timestamps/durations.
|
||||
|
||||
2006-08-29 Edward Hervey <edward@fluendo.com>
|
||||
|
||||
* gst/audiorate/gstaudiorate.c: (gst_audio_rate_chain):
|
||||
|
|
|
@ -897,8 +897,8 @@ gst_vorbis_enc_push_buffer (GstVorbisEnc * vorbisenc, GstBuffer * buffer)
|
|||
{
|
||||
vorbisenc->bytes_out += GST_BUFFER_SIZE (buffer);
|
||||
|
||||
GST_DEBUG_OBJECT (vorbisenc, "Pushing buffer with GP %lld",
|
||||
GST_BUFFER_OFFSET_END (buffer));
|
||||
GST_DEBUG_OBJECT (vorbisenc, "Pushing buffer with GP %lld, ts %lld",
|
||||
GST_BUFFER_OFFSET_END (buffer), GST_BUFFER_TIMESTAMP (buffer));
|
||||
return gst_pad_push (vorbisenc->srcpad, buffer);
|
||||
}
|
||||
|
||||
|
@ -1000,10 +1000,7 @@ gst_vorbis_enc_buffer_check_discontinuous (GstVorbisEnc * vorbisenc,
|
|||
{
|
||||
gboolean ret = FALSE;
|
||||
|
||||
if (GST_BUFFER_FLAG_IS_SET (buffer, GST_BUFFER_FLAG_DISCONT)) {
|
||||
GST_DEBUG_OBJECT (vorbisenc, "Discont set on incoming buffer");
|
||||
ret = TRUE;
|
||||
} else if (GST_BUFFER_TIMESTAMP (buffer) != GST_CLOCK_TIME_NONE &&
|
||||
if (GST_BUFFER_TIMESTAMP (buffer) != GST_CLOCK_TIME_NONE &&
|
||||
vorbisenc->expected_ts != GST_CLOCK_TIME_NONE &&
|
||||
GST_BUFFER_TIMESTAMP (buffer) != vorbisenc->expected_ts) {
|
||||
/* It turns out that a lot of elements don't generate perfect streams due
|
||||
|
|
Loading…
Reference in a new issue