From 7bf7d8045282ceec3f615a61dc144ce367293a10 Mon Sep 17 00:00:00 2001 From: Martin Soto Date: Sun, 7 Nov 2004 20:10:18 +0000 Subject: [PATCH] gst/gstpad.c (gst_pad_collectv): Fix the return line. Original commit message from CVS: 2004-11-07 Martin Soto * gst/gstpad.c (gst_pad_collectv): Fix the return line. (gst_pad_collect_valist): Fix gst_pad_collect_array invocation. Apparently this functions were never tested. --- gst/gstpad.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/gst/gstpad.c b/gst/gstpad.c index d60c9d3835..b412f22f99 100644 --- a/gst/gstpad.c +++ b/gst/gstpad.c @@ -3366,7 +3366,7 @@ gst_pad_collectv (GstPad ** selected, const GList * padlist) } pads[i] = NULL; - return gst_pad_collect_array (GST_SCHEDULER (element), selected, pads); + return gst_pad_collect_array (GST_ELEMENT_SCHED (element), selected, pads); } /** @@ -3425,7 +3425,8 @@ gst_pad_collect_valist (GstPad ** selected, GstPad * pad, va_list var_args) padlist[i++] = pad; pad = va_arg (var_args, GstPad *); } - return gst_pad_collect_array (GST_SCHEDULER (element), selected, padlist); + padlist[i] = NULL; + return gst_pad_collect_array (GST_ELEMENT_SCHED (element), selected, padlist); } /**