From d9deb95012393466bf9c055550b04405002e4f20 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Thu, 5 Dec 2013 12:15:19 +0100 Subject: [PATCH] wavpackdec: Require caps to be set before accepting any data --- ext/wavpack/gstwavpackdec.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ext/wavpack/gstwavpackdec.c b/ext/wavpack/gstwavpackdec.c index 6032b1bf76..10659ec13c 100644 --- a/ext/wavpack/gstwavpackdec.c +++ b/ext/wavpack/gstwavpackdec.c @@ -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); }