opusdec: Require caps to be set before any data processing
authorSebastian Dröge <sebastian@centricular.com>
Thu, 5 Dec 2013 11:04:59 +0000 (12:04 +0100)
committerSebastian Dröge <sebastian@centricular.com>
Thu, 5 Dec 2013 11:04:59 +0000 (12:04 +0100)
ext/opus/gstopusdec.c

index 456cc62..d2fc646 100644 (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);
 }