From 2e80c88129ce118384aad206625273e76fae2e23 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Sebastian=20Dr=C3=B6ge?= Date: Thu, 5 Dec 2013 12:04:59 +0100 Subject: [PATCH] opusdec: Require caps to be set before any data processing --- ext/opus/gstopusdec.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ext/opus/gstopusdec.c b/ext/opus/gstopusdec.c index 456cc62..d2fc646 100644 --- a/ext/opus/gstopusdec.c +++ b/ext/opus/gstopusdec.c @@ -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); } -- 2.7.4