mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-03 13:02:29 +00:00
flacdec: fix spurious timestamp discontinuity
We need to tell the base class that we're dropping buffers, so it drops the input timestamps corresponding to these. Otherwise, the first actual audio buffers we output will be stamped with those - GST_CLOCK_TIMESTAMP_NONE. That mismatch between input buffer count and output buffer count will stay while playing. With enough headers and long enough buffer durations, the sink will have played enough before receiving the first valid timestamp (usually 0), and will trigger an audible discontinuity.
This commit is contained in:
parent
7900933a52
commit
8548b2c777
1 changed files with 1 additions and 0 deletions
|
@ -711,6 +711,7 @@ gst_flac_dec_handle_frame (GstAudioDecoder * audio_dec, GstBuffer * buf)
|
|||
|
||||
if (!got_audio_frame) {
|
||||
GST_INFO_OBJECT (dec, "dropping in-stream header, %d bytes", size);
|
||||
gst_audio_decoder_finish_frame (audio_dec, NULL, 1);
|
||||
return GST_FLOW_OK;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue