wavpackdec: Require caps to be set before accepting any data
authorSebastian Dröge <sebastian@centricular.com>
Thu, 5 Dec 2013 11:15:19 +0000 (12:15 +0100)
committerSebastian Dröge <sebastian@centricular.com>
Thu, 5 Dec 2013 11:15:19 +0000 (12:15 +0100)
ext/wavpack/gstwavpackdec.c

index 6032b1bf760a3c5b92ae3d36736692d33020f9db..10659ec13c6806799615d356fa6d73a17b10155f 100644 (file)
@@ -141,6 +141,8 @@ gst_wavpack_dec_init (GstWavpackDec * dec)
   dec->context = NULL;
   dec->stream_reader = gst_wavpack_stream_reader_new ();
 
+  gst_audio_decoder_set_needs_format (GST_AUDIO_DECODER (dec), TRUE);
+
   gst_wavpack_dec_reset (dec);
 }