mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-09-09 05:38:58 +00:00
flacdec: Reset decoder on set_format()
Any call to set_format() could mean that the stream type changed so we reset the decoder and mark got_headers FALSE.
This commit is contained in:
parent
7824e87c5b
commit
a5d71c597d
1 changed files with 3 additions and 0 deletions
|
@ -263,6 +263,9 @@ gst_flac_dec_set_format (GstAudioDecoder * dec, GstCaps * caps)
|
|||
gst_adapter_clear (flacdec->adapter);
|
||||
}
|
||||
|
||||
FLAC__stream_decoder_reset (flacdec->decoder);
|
||||
flacdec->got_headers = FALSE;
|
||||
|
||||
num = gst_value_array_get_size (headers);
|
||||
for (i = 0; i < num; ++i) {
|
||||
const GValue *header_val;
|
||||
|
|
Loading…
Reference in a new issue