Commit a5d71c59 authored by Jochen Henneberg's avatar Jochen Henneberg Committed by Sebastian Dröge

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.
parent 7824e87c
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment