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 590735 - [gst.GhostPad] can't unset target
[gst.GhostPad] can't unset target
Status: RESOLVED FIXED
Product: GStreamer
Classification: Platform
Component: gst-python
git master
Other Linux
: Normal normal
: 0.10.19
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2009-08-04 13:54 UTC by Edward Hervey
Modified: 2010-07-14 10:37 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Edward Hervey 2009-08-04 13:54:11 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.
Comment 1 Alessandro Decina 2010-07-14 10:37:04 UTC
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.