GNOME Bugzilla – Bug 363795
Impossible to reset a pad to "unnegotiated" from Python
Last modified: 2007-02-04 10:55:04 UTC
From the documentation of gst_pad_set_caps (pad, caps): "It is possible to set NULL caps, which will make the pad unnegotiated again." It seems to be impossible to do this from Python: >>> import pygst; pygst.require ("0.10"); import gst >>> pad = gst.element_factory_make ("fakesink").get_pad ("sink") >>> pad.set_caps (None) Traceback (most recent call last):
+ Trace 77399
Attaching a patch that allows for that.
Created attachment 75111 [details] [review] Allow passing "None" to GstPad.set_caps
2007-02-04 Rene Stadler <mail@renestadler.de> reviewed by: Edward Hervey <edward@fluendo.com> * gst/gstpad.override: Allow removing the negotiated pads of a cap by setting them to None. * testsuite/test_pad.py: Added un-negotian of pads' caps to test above patch. Fixes #363795