gst/gstbin.c: Pass GType and size arguments to gst_iterator_new() in the right order...
authorTim-Philipp Müller <tim@centricular.net>
Mon, 10 Oct 2005 15:27:12 +0000 (15:27 +0000)
committerTim-Philipp Müller <tim@centricular.net>
Mon, 10 Oct 2005 15:27:12 +0000 (15:27 +0000)
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).

ChangeLog
gst/gstbin.c

index f9760ab..4a2b306 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -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):
index 0b4c97a..96331e4 100644 (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,