GNOME Bugzilla – Bug 318447
gst_bin_iterate_sorted: Invalid call to gst_iterator_new
Last modified: 2005-10-10 15:33:51 UTC
The call to gst_iterator_new in gst_bin_iterate_sorted is invalid - the parameters size and type are in the wrong order. The first parameter should be the size, the second should be the type. The attached patch fixes this.
Created attachment 53289 [details] [review] Patch with bug fix
Nice catch, thanks for the patch! 2005-10-10 Tim-Philipp Muller <tim at centricular dot net> * gst/gstiterator.c: (gst_iterator_new): Add assertions to make sure passed GType is likely to really be a GType (as the compiler won't catch it if the size and GType arguments get mixed up, see #318447). 2005-10-10 Josef Zlomek <josef dot zlomek at xeris dot cz> * gst/gstbin.c: (gst_bin_iterate_sorted): Pass GType and size arguments to gst_iterator_new() in the right order (maybe we should make _new() take the GType as first argument just like _new_list()?) (#318447). Cheers -Tim