After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 321528 - capsfilter: assertion `caps != NULL' failed
capsfilter: assertion `caps != NULL' failed
Status: RESOLVED FIXED
Product: GStreamer
Classification: Platform
Component: gstreamer (core)
git master
Other Linux
: Normal minor
: 0.9.6
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2005-11-15 15:11 UTC by Sebastien Cote
Modified: 2005-11-16 15:20 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Sebastien Cote 2005-11-15 15:11:03 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.
Comment 1 Sebastien Cote 2005-11-16 15:20:26 UTC
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.