audiodecoder: Don't assert on pad caps not being set
authorEdward Hervey <edward.hervey@collabora.co.uk>
Thu, 19 Jul 2012 08:54:07 +0000 (10:54 +0200)
committerEdward Hervey <edward.hervey@collabora.co.uk>
Thu, 19 Jul 2012 08:55:53 +0000 (10:55 +0200)
The decoder might have been de-activated in the meantime (resulting
in NULL pad caps).

If the decoder really isn't configured, then it will error out further
down when checking whether the GST_AUDIO_INFO_IS_VALID()

https://bugzilla.gnome.org/show_bug.cgi?id=667562

gst-libs/gst/audio/gstaudiodecoder.c

index 74f8727..87c3ff0 100644 (file)
@@ -834,9 +834,6 @@ gst_audio_decoder_finish_frame (GstAudioDecoder * dec, GstBuffer * buf,
   gsize size;
   GstFlowReturn ret = GST_FLOW_OK;
 
-  /* subclass should know what it is producing by now */
-  g_return_val_if_fail (buf == NULL || gst_pad_has_current_caps (dec->srcpad),
-      GST_FLOW_ERROR);
   /* subclass should not hand us no data */
   g_return_val_if_fail (buf == NULL || gst_buffer_get_size (buf) > 0,
       GST_FLOW_ERROR);