speexdec: Require caps to be set before accepting any data
authorSebastian Dröge <sebastian@centricular.com>
Thu, 5 Dec 2013 11:13:33 +0000 (12:13 +0100)
committerSebastian Dröge <sebastian@centricular.com>
Thu, 5 Dec 2013 11:13:33 +0000 (12:13 +0100)
ext/speex/gstspeexdec.c

index 8f9da2a..46b054b 100644 (file)
@@ -156,6 +156,8 @@ gst_speex_dec_reset (GstSpeexDec * dec)
 static void
 gst_speex_dec_init (GstSpeexDec * dec)
 {
+  gst_audio_decoder_set_needs_format (GST_AUDIO_DECODER (dec), TRUE);
+
   dec->enh = DEFAULT_ENH;
 
   gst_speex_dec_reset (dec);