Reference the group when we add an element to it.

Original commit message from CVS:
Reference the group when we add an element to it.
This commit is contained in:
Iain Holmes 2004-01-13 01:34:32 +00:00
parent 1bb63cae00
commit e10cd625ca
2 changed files with 8 additions and 0 deletions

View file

@ -1,3 +1,8 @@
2004-01-13 Iain <iain@prettypeople.org>
* 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 <thomas at apestaart dot org>
* testsuite/debug/commandline.c: (debug_not_reached):

View file

@ -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;
}