mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-09-09 05:38:58 +00:00
flacdec: Caps may have changed on FLAC metadata change
If the decoder signals metadata change we need to update the output format and negotiate with downstream elements.
This commit is contained in:
parent
a5d71c597d
commit
d74f964407
1 changed files with 5 additions and 0 deletions
|
@ -489,6 +489,11 @@ gst_flac_dec_metadata_cb (const FLAC__StreamDecoder * decoder,
|
|||
metadata->data.stream_info.sample_rate,
|
||||
metadata->data.stream_info.channels, position);
|
||||
|
||||
gst_audio_decoder_set_output_format (GST_AUDIO_DECODER (flacdec),
|
||||
&flacdec->info);
|
||||
|
||||
gst_audio_decoder_negotiate (GST_AUDIO_DECODER (flacdec));
|
||||
|
||||
GST_DEBUG_OBJECT (flacdec, "blocksize: min=%u, max=%u",
|
||||
flacdec->min_blocksize, flacdec->max_blocksize);
|
||||
GST_DEBUG_OBJECT (flacdec, "sample rate: %u, channels: %u",
|
||||
|
|
Loading…
Reference in a new issue