GNOME Bugzilla – Bug 575682
Add gst_pad_is_compatible()
Last modified: 2009-03-18 16:05:50 UTC
Attaching a patch that adds the said function to gstutils module.
Created attachment 130819 [details] [review] Add gst_pad_is_compatible()
Created attachment 130821 [details] [review] Patch for vala bindings. This is the patch for vala bindings, please change the component to vala (binding) once the previous patch is applied to gstreamer mainline.
Ok, created a new depended bug on vala for the bindings so just ignore the second patch.
Unfortunately gst_pad_can_link() is wrong, it requires that the pads have a parent and it doesn't bother to take any locks whatsoever. there is another function that might be better: gst_pad_link_prepare.
Created attachment 130883 [details] [review] Add gst_pad_is_compatible() Modified patch according to last comment by Wim.
I reworked it a little. There is no new function but I fixed gst_pad_can_link() instead. commit 8af9d58ea7daf67f5c752187adea7d6dd00574cf Author: Zeeshan Ali (Khattak) <zeeshanak at gnome dot org> Date: Wed Mar 18 17:01:16 2009 +0100 gstpad: fix gst_pad_can_link() Move the gst_pad_can_link() implementation from gstutils to gstpad and use gst_pad_link_prepare() to make it work correctly and also check the caps. Make the broken implementation in gstutils static. Small cleanups in the _get_fixed_caps() function. Fixes #575682.