opusdec: Require caps to be set before any data processing

This commit is contained in:
Sebastian Dröge 2013-12-05 12:04:59 +01:00
parent 061b3e5fec
commit 0c301bfee7

View file

@ -165,6 +165,8 @@ gst_opus_dec_init (GstOpusDec * dec)
dec->use_inband_fec = FALSE;
dec->apply_gain = DEFAULT_APPLY_GAIN;
gst_audio_decoder_set_needs_format (GST_AUDIO_DECODER (dec), TRUE);
gst_opus_dec_reset (dec);
}