gst/gstpad.c (gst_pad_collectv): Fix the return line.

Original commit message from CVS:
2004-11-07  Martin Soto  <martinsoto@users.sourceforge.net>

* 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.
This commit is contained in:
Martin Soto 2004-11-07 20:10:18 +00:00
parent 727725d959
commit 7bf7d80452

View file

@ -3366,7 +3366,7 @@ gst_pad_collectv (GstPad ** selected, const GList * padlist)
} }
pads[i] = NULL; 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; padlist[i++] = pad;
pad = va_arg (var_args, GstPad *); 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);
} }
/** /**