mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-27 02:30:35 +00:00
gst/gstpad.c: fix uninitialized variable warning
Original commit message from CVS: * gst/gstpad.c: (gst_pad_collect_valist): fix uninitialized variable warning * gst/schedulers/entryscheduler.c: (schedule_forward): fix shadowed variable
This commit is contained in:
parent
ac5674b03b
commit
dad31c5578
3 changed files with 12 additions and 9 deletions
|
@ -1,3 +1,10 @@
|
|||
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),
|
||||
|
|
13
gst/gstpad.c
13
gst/gstpad.c
|
@ -3219,16 +3219,13 @@ gst_pad_collect_valist (GstPad ** selected, GstPad * pad, va_list var_args)
|
|||
|
||||
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 *);
|
||||
}
|
||||
|
|
|
@ -626,7 +626,6 @@ schedule_forward (Entry * entry)
|
|||
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))
|
||||
|
|
Loading…
Reference in a new issue