GNOME Bugzilla – Bug 640622
gst_element_link_pads_full function return wrong error information
Last modified: 2011-02-14 20:46:12 UTC
I use gst-launch-0.10 alsasrc ! ximagesink to test function gst_element_link_pads_full. When loop through the pads in the source, it can't find a compatible destination pad, then it will loop through the pads in the destination, it also can't find a compatible source pad, but it will return wrong error information(sink is not source pad, failed) during call gst_element_get_compatible_pad(). This error is caused by using wrong order of pad when call gst_pad_check_link().
Created attachment 179359 [details] [review] fix this bug This is my patch
Comment on attachment 179359 [details] [review] fix this bug Thanks for the patch. commit b164a8232a0c3f27b9904912f7fff39a26bedadd Author: Chen Rui <rui.chen@tieto.com> Date: Wed Jan 26 16:46:25 2011 +0800 utils: return real error in compatible link check We need to ensure we call gst_pad_check_link() with the two pads in the correct order. The order depends on wheter we iterate src or sink pads. Signed-off-by: Chen Rui <rui.chen@tieto.com>