gst/schedulers/gstoptimalscheduler.c: Fixed an error introduced with patch for 1...
authorWim Taymans <wim.taymans@gmail.com>
Tue, 18 May 2004 17:03:41 +0000 (17:03 +0000)
committerWim Taymans <wim.taymans@gmail.com>
Tue, 18 May 2004 17:03:41 +0000 (17:03 +0000)
Original commit message from CVS:
* gst/schedulers/gstoptimalscheduler.c: (remove_from_group),
(setup_group_scheduler), (gst_opt_scheduler_pad_link):
Fixed an error introduced with patch for 1.63. When setting
a get based element as the entry point in a group, make sure
to mark the group as GET based.

ChangeLog
gst/schedulers/gstoptimalscheduler.c

index 2ea640e..e9fc1cf 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,13 @@
 2004-05-18  Wim Taymans  <wim@fluendo.com>
 
+       * gst/schedulers/gstoptimalscheduler.c: (remove_from_group),
+       (setup_group_scheduler), (gst_opt_scheduler_pad_link):
+       Fixed an error introduced with patch for 1.63. When setting
+       a get based element as the entry point in a group, make sure
+       to mark the group as GET based.
+
+2004-05-18  Wim Taymans  <wim@fluendo.com>
+
        * gst/schedulers/gstoptimalscheduler.c: (create_group),
        (setup_group_scheduler), (loop_group_schedule_function),
        (gst_opt_scheduler_pad_link):
index 7f2ef8b..99695e5 100644 (file)
@@ -857,9 +857,10 @@ remove_from_group (GstOptSchedulerGroup * group, GstElement * element)
   group->num_elements--;
 
   /* if the element was an entry point in the group, clear the group's
-   * entry point */
+   * entry point, and mark it as unknown */
   if (group->entry == element) {
     group->entry = NULL;
+    group->type = GST_OPT_SCHEDULER_GROUP_UNKNOWN;
   }
 
   GST_ELEMENT_SCHED_GROUP (element) = NULL;
@@ -1911,9 +1912,11 @@ gst_opt_scheduler_pad_link (GstScheduler * sched, GstPad * srcpad,
           GST_OPT_SCHEDULER_GROUP_GET);
 
       /* if there is not yet an entry in the group, select the source
-       * element as the entry point */
+       * element as the entry point and mark the group as a get based
+       * group */
       if (!group->entry) {
         group->entry = src_element;
+        group->type = GST_OPT_SCHEDULER_GROUP_GET;
 
         GST_DEBUG ("setting \"%s\" as entry point of _get-based group %p",
             GST_ELEMENT_NAME (src_element), group);