GNOME Bugzilla – Bug 321528
capsfilter: assertion `caps != NULL' failed
Last modified: 2005-11-16 15:20:26 UTC
Run the following pipeline: gst-launch-0.9 fakesrc num-buffers=1 ! video/x-raw-yuv ! fakesink (gst-launch-0.9:18474): GStreamer-CRITICAL **: gst_caps_ref: assertion `caps != NULL' failed (gst-launch-0.9:18474): GStreamer-CRITICAL **: gst_caps_unref: assertion `caps != NULL' failed The assertions are triggered by the GstBaseTransform class (from which capsfilter inherits) which refs and unrefs the caps from the source pad in gst_base_transform_prepare_output_buf(). These caps are not set until the first buffer has passed through.
Fixed by Wim 2005-11-16 Wim Taymans <wim@fluendo.com> * gst/base/gstbasetransform.c: (gst_base_transform_prepare_output_buf), (gst_base_transform_event): Check if the caps are NULL, this can happen if the element is shutting down and the pad caps are set to NULL.