GNOME Bugzilla – Bug 561599
gst_bin_continue_func(...) takes wrong number of arguments
Last modified: 2008-11-20 05:49:28 UTC
in gstbin.c gst_bin_continue_func(...) takes a single argument, but is cast to a GFunc which expects two arguments. Probably safer than expecting more arguments than get pushed, but why tempt fate. ;-)
Created attachment 123080 [details] [review] add user_data argument to gst_bin_continue_func(...) added G_GNUC_UNUSED to avoid warnings about the user_data variable that isn't currently being used.
also just noticed unlink_pads(...) is also short an user_data argument.
Calling a function that takes one argument by passing it more than one argument is guaranteed to work according to the C specification. It's pretty commonly used with GFunc, too. For example, people cast g_free() to GFunc quite frequently.
Thanks for the clarification. Been a while since I poked around in that corner of C.