mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-09 17:05:52 +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>
|
2004-04-04 Benjamin Otte <otte@gnome.org>
|
||||||
|
|
||||||
* gst/gstpad.c: (gst_pad_collect_valist):
|
* gst/gstpad.c: (gst_pad_collect_valist):
|
||||||
|
|
|
@ -1320,23 +1320,23 @@ static GstData *
|
||||||
gst_basic_scheduler_pad_select (GstScheduler * sched, GstPad ** selected,
|
gst_basic_scheduler_pad_select (GstScheduler * sched, GstPad ** selected,
|
||||||
GstPad ** padlist)
|
GstPad ** padlist)
|
||||||
{
|
{
|
||||||
GstData *data;
|
GstData *data = NULL;
|
||||||
GstPad *pad;
|
gint i = 0;
|
||||||
gint i;
|
|
||||||
|
|
||||||
GST_INFO ("performing select");
|
GST_INFO ("performing select");
|
||||||
|
|
||||||
while (padlist[i]) {
|
while (padlist[i]) {
|
||||||
pad = padlist[i];
|
GstPad *pad = padlist[i];
|
||||||
|
|
||||||
GST_RPAD_CHAINHANDLER (pad) =
|
GST_RPAD_CHAINHANDLER (pad) =
|
||||||
GST_DEBUG_FUNCPTR (gst_basic_scheduler_select_proxy);
|
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]) {
|
while (padlist[i]) {
|
||||||
pad = padlist[i];
|
GstPad *pad = padlist[i];
|
||||||
|
|
||||||
if (GST_RPAD_BUFPEN (pad)) {
|
if (GST_RPAD_BUFPEN (pad)) {
|
||||||
*selected = pad;
|
*selected = pad;
|
||||||
|
@ -1348,6 +1348,7 @@ gst_basic_scheduler_pad_select (GstScheduler * sched, GstPad ** selected,
|
||||||
GST_DEBUG_FUNCPTR (gst_basic_scheduler_chainhandler_proxy);
|
GST_DEBUG_FUNCPTR (gst_basic_scheduler_chainhandler_proxy);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
g_assert (data != NULL);
|
||||||
return data;
|
return data;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue