mpg123audiodec: Require caps to be set before any data processing
authorSebastian Dröge <sebastian@centricular.com>
Thu, 5 Dec 2013 11:04:39 +0000 (12:04 +0100)
committerTim-Philipp Müller <tim@centricular.com>
Tue, 16 Feb 2016 10:40:39 +0000 (10:40 +0000)
ext/mpg123/gstmpg123audiodec.c

index bdbb3e9..2be0082 100644 (file)
@@ -196,6 +196,7 @@ void
 gst_mpg123_audio_dec_init (GstMpg123AudioDec * mpg123_decoder)
 {
   mpg123_decoder->handle = NULL;
+  gst_audio_decoder_set_needs_format (GST_AUDIO_DECODER (mpg123_decoder), TRUE);
 }