wavpackdec: Require caps to be set before accepting any data

This commit is contained in:
Sebastian Dröge 2013-12-05 12:15:19 +01:00
parent c880e36779
commit d9deb95012

View file

@ -141,6 +141,8 @@ gst_wavpack_dec_init (GstWavpackDec * dec)
dec->context = NULL; dec->context = NULL;
dec->stream_reader = gst_wavpack_stream_reader_new (); dec->stream_reader = gst_wavpack_stream_reader_new ();
gst_audio_decoder_set_needs_format (GST_AUDIO_DECODER (dec), TRUE);
gst_wavpack_dec_reset (dec); gst_wavpack_dec_reset (dec);
} }