From ee379a13b64836aba3b45ea4d0c88b21eb854845 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim-Philipp=20M=C3=BCller?= Date: Mon, 10 Oct 2005 15:27:12 +0000 Subject: [PATCH] gst/gstbin.c: Pass GType and size arguments to gst_iterator_new() in the right order (maybe we should make _new() tak... MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Original commit message from CVS: Reviewed by: Tim-Philipp Müller * 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 | 10 ++++++++++ gst/gstbin.c | 4 ++-- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index f9760abc02..4a2b30657d 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,13 @@ +2005-10-10 Josef Zlomek + + Reviewed by: Tim-Philipp Müller + + * 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 * gst/gstelement.c: (gst_element_finalize): diff --git a/gst/gstbin.c b/gst/gstbin.c index 0b4c97ab91..96331e424e 100644 --- a/gst/gstbin.c +++ b/gst/gstbin.c @@ -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,