GNOME Bugzilla – Bug 590735
[gst.GhostPad] can't unset target
Last modified: 2010-07-14 10:37:04 UTC
We currently can't unset the target of a gst.GhostPad. This is done in C by calling: gst_ghost_pad_set_target(aghostpad, NULL); The fix for that is the following diff --git a/gst/gst.defs b/gst/gst.defs index c3a2ae0..18a5287 100644 --- a/gst/gst.defs +++ b/gst/gst.defs @@ -2500,7 +2500,7 @@ (c-name "gst_ghost_pad_set_target") (return-type "gboolean") (parameters - '("GstPad*" "newtarget") + '("GstPad*" "newtarget" (null-ok)) ) ) A unit-test would be good too.
commit 56a725879dd31bdc4d99ba81150ff553db266b2f Author: Alessandro Decina <alessandro.decina@collabora.co.uk> Date: Wed Jul 14 12:33:58 2010 +0200 gst.GhostPad: allow set_target(None) to unset the target. Fixes #590735.