mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-24 01:00:37 +00:00
audiodecoder: accept dropped buffers before we know the format
This allows flacdec to not emit audio for headers, while allowing the base audio decoder to keep its timestamps in sync.
This commit is contained in:
parent
046dc1097c
commit
3e095382a1
1 changed files with 2 additions and 1 deletions
|
@ -745,7 +745,8 @@ gst_audio_decoder_finish_frame (GstAudioDecoder * dec, GstBuffer * buf,
|
|||
size = buf ? gst_buffer_get_size (buf) : 0;
|
||||
|
||||
/* must know the output format by now */
|
||||
g_return_val_if_fail (GST_AUDIO_INFO_IS_VALID (&ctx->info), GST_FLOW_ERROR);
|
||||
g_return_val_if_fail (buf == NULL || GST_AUDIO_INFO_IS_VALID (&ctx->info),
|
||||
GST_FLOW_ERROR);
|
||||
|
||||
GST_LOG_OBJECT (dec, "accepting %d bytes == %d samples for %d frames",
|
||||
buf ? size : -1, buf ? size / ctx->info.bpf : -1, frames);
|
||||
|
|
Loading…
Reference in a new issue