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 baa3d2f669eeb802d6b7a7f250b1aba6e4ca5f5b..bc18d4df31ada3af8c140aeb4648f4bb7c133327 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 ab6d4e98d878ccf024686a782d8058796f49b092..e54526da4a5f37812d927578887fa72f7c7f608c 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;
 }