Reference the group when we add an element to it.
authorIain Holmes <iain@prettypeople.org>
Tue, 13 Jan 2004 01:34:32 +0000 (01:34 +0000)
committerIain Holmes <iain@prettypeople.org>
Tue, 13 Jan 2004 01:34:32 +0000 (01:34 +0000)
Original commit message from CVS:
Reference the group when we add an element to it.

ChangeLog
gst/schedulers/gstoptimalscheduler.c

index baa3d2f..bc18d4d 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -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):
index ab6d4e9..e54526d 100644 (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;
 }