gst/gstbin.c: Pass GType and size arguments to gst_iterator_new() in the right order (maybe we should make _new() tak...

Original commit message from CVS:
Reviewed by: Tim-Philipp Müller  <tim at centricular dot net>
* 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).
This commit is contained in:
Tim-Philipp Müller 2005-10-10 15:27:12 +00:00
parent 9e17ca91dd
commit ee379a13b6
2 changed files with 12 additions and 2 deletions

View file

@ -1,3 +1,13 @@
2005-10-10 Josef Zlomek <josef dot zlomek at xeris dot cz>
Reviewed by: Tim-Philipp Müller <tim at centricular dot net>
* 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).
2005-10-10 Wim Taymans <wim@fluendo.com>
* gst/gstelement.c: (gst_element_finalize):

View file

@ -1286,8 +1286,8 @@ gst_bin_iterate_sorted (GstBin * bin)
/* we don't need a NextFunction because we ref the items in the _next
* method already */
result = (GstBinSortIterator *)
gst_iterator_new (GST_TYPE_ELEMENT,
sizeof (GstBinSortIterator),
gst_iterator_new (sizeof (GstBinSortIterator),
GST_TYPE_ELEMENT,
GST_GET_LOCK (bin),
&bin->children_cookie,
(GstIteratorNextFunction) gst_bin_sort_iterator_next,