Commit c6b82b33 authored by Wim Taymans's avatar Wim Taymans
Browse files

gst/schedulers/gstoptimalscheduler.c: Also ref/unref decoupled elements before...

gst/schedulers/gstoptimalscheduler.c: Also ref/unref decoupled elements before iterating the group since they are not...

Original commit message from CVS:
* gst/schedulers/gstoptimalscheduler.c: (add_to_group),
(remove_from_group), (schedule_group), (normalize_group),
(gst_opt_scheduler_iterate):
Also ref/unref decoupled elements before iterating the
group since they are not added to the list of elements.
parent 341f4558
2005-01-17 Wim Taymans <wim@fluendo.com>
* gst/schedulers/gstoptimalscheduler.c: (add_to_group),
(remove_from_group), (schedule_group), (normalize_group),
(gst_opt_scheduler_iterate):
Also ref/unref decoupled elements before iterating the
group since they are not added to the list of elements.
2005-01-17 Ronald S. Bultje <rbultje@ronald.bitfreak.net>
* docs/manual/highlevel-components.xml:
......
......@@ -1141,8 +1141,17 @@ schedule_group (GstOptSchedulerGroup * group)
return FALSE;
} else {
GSList *l, *lcopy;
GstElement *entry = NULL;
lcopy = g_slist_copy (group->elements);
/* also add entry point, this is made so that decoupled elements
* are also reffed since they are not added to the list of group
* elements. */
if (group->entry && GST_ELEMENT_IS_DECOUPLED (group->entry)) {
entry = group->entry;
gst_object_ref (GST_OBJECT (entry));
}
for (l = lcopy; l; l = l->next) {
GstElement *e = (GstElement *) l->data;
......@@ -1161,8 +1170,8 @@ schedule_group (GstOptSchedulerGroup * group)
gst_object_unref (GST_OBJECT (e));
}
gst_object_unref (GST_OBJECT (entry));
g_slist_free (lcopy);
}
return TRUE;
#endif
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment