diff --git a/ChangeLog b/ChangeLog index baa3d2f669..bc18d4df31 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2004-01-13 Iain + + * gst/schedulers/gstoptimalscheduler.c (add_to_group): Reference the + group when we add an element to it, cos we unref it when we remove one + 2004-01-12 Thomas Vander Stichele * testsuite/debug/commandline.c: (debug_not_reached): diff --git a/gst/schedulers/gstoptimalscheduler.c b/gst/schedulers/gstoptimalscheduler.c index ab6d4e98d8..e54526da4a 100644 --- a/gst/schedulers/gstoptimalscheduler.c +++ b/gst/schedulers/gstoptimalscheduler.c @@ -651,6 +651,9 @@ add_to_group (GstOptSchedulerGroup *group, GstElement *element) group_element_set_enabled (group, element, TRUE); } + /* Ref the group... */ + ref_group (group); + return group; }