2004-04-04 Benjamin Otte <otte@gnome.org>
+ * gst/gstpad.c: (gst_pad_collect_valist):
+ fix uninitialized variable warning
+ * gst/schedulers/entryscheduler.c: (schedule_forward):
+ fix shadowed variable
+
+2004-04-04 Benjamin Otte <otte@gnome.org>
+
* gst/gstpad.c: (gst_pad_collect_array), (gst_pad_collectv),
(gst_pad_collect), (gst_pad_collect_valist), (gst_pad_selectv),
(gst_pad_select):
g_return_val_if_fail (GST_IS_PAD (pad), NULL);
+ element = gst_pad_get_parent (pad);
+ maxlength = element->numsinkpads;
+ /* can we make this list a bit smaller than this upper limit? */
+ padlist = g_alloca (sizeof (gpointer) * (maxlength + 1));
while (pad) {
g_return_val_if_fail (i < maxlength, NULL);
- if (element) {
- g_return_val_if_fail (element == gst_pad_get_parent (pad), NULL);
- } else {
- element = gst_pad_get_parent (pad);
- maxlength = element->numsinkpads;
- /* can we make this list a bit smaller than this upper limit? */
- padlist = g_alloca (sizeof (gpointer) * (maxlength + 1));
- }
+ g_return_val_if_fail (element == gst_pad_get_parent (pad), NULL);
padlist[i++] = pad;
pad = va_arg (var_args, GstPad *);
}
return schedule_forward ((Entry *) ((LinkPrivate *) entry)->sink);
} else if (ENTRY_IS_COTHREAD (entry)) {
GList *list;
- Entry *entry;
GstElement *element = ((CothreadPrivate *) entry)->element;
if (GST_FLAG_IS_SET (element, GST_ELEMENT_DECOUPLED))