mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-08 16:35:40 +00:00
gst/schedulers/gstbasicscheduler.c: fix uninitialized variable warnings
Original commit message from CVS: * gst/schedulers/gstbasicscheduler.c: (gst_basic_scheduler_pad_select): fix uninitialized variable warnings
This commit is contained in:
parent
dad31c5578
commit
fd58f301b7
2 changed files with 13 additions and 6 deletions
|
@ -1,3 +1,9 @@
|
|||
2004-04-04 Benjamin Otte <otte@gnome.org>
|
||||
|
||||
* gst/schedulers/gstbasicscheduler.c:
|
||||
(gst_basic_scheduler_pad_select):
|
||||
fix uninitialized variable warnings
|
||||
|
||||
2004-04-04 Benjamin Otte <otte@gnome.org>
|
||||
|
||||
* gst/gstpad.c: (gst_pad_collect_valist):
|
||||
|
|
|
@ -1320,23 +1320,23 @@ static GstData *
|
|||
gst_basic_scheduler_pad_select (GstScheduler * sched, GstPad ** selected,
|
||||
GstPad ** padlist)
|
||||
{
|
||||
GstData *data;
|
||||
GstPad *pad;
|
||||
gint i;
|
||||
GstData *data = NULL;
|
||||
gint i = 0;
|
||||
|
||||
GST_INFO ("performing select");
|
||||
|
||||
while (padlist[i]) {
|
||||
pad = padlist[i];
|
||||
GstPad *pad = padlist[i];
|
||||
|
||||
GST_RPAD_CHAINHANDLER (pad) =
|
||||
GST_DEBUG_FUNCPTR (gst_basic_scheduler_select_proxy);
|
||||
}
|
||||
|
||||
do_element_switch (GST_PAD_PARENT (GST_PAD_PEER (pad)));
|
||||
do_element_switch (GST_PAD_PARENT (GST_PAD_PEER (padlist[0])));
|
||||
|
||||
i = 0;
|
||||
while (padlist[i]) {
|
||||
pad = padlist[i];
|
||||
GstPad *pad = padlist[i];
|
||||
|
||||
if (GST_RPAD_BUFPEN (pad)) {
|
||||
*selected = pad;
|
||||
|
@ -1348,6 +1348,7 @@ gst_basic_scheduler_pad_select (GstScheduler * sched, GstPad ** selected,
|
|||
GST_DEBUG_FUNCPTR (gst_basic_scheduler_chainhandler_proxy);
|
||||
}
|
||||
|
||||
g_assert (data != NULL);
|
||||
return data;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue