gst/schedulers/gstoptimalscheduler.c: Try to work with the threading mess that queue_...
authorRonald S. Bultje <rbultje@ronald.bitfreak.net>
Tue, 1 Feb 2005 00:38:05 +0000 (00:38 +0000)
committerRonald S. Bultje <rbultje@ronald.bitfreak.net>
Tue, 1 Feb 2005 00:38:05 +0000 (00:38 +0000)
Original commit message from CVS:
* gst/schedulers/gstoptimalscheduler.c:
(get_group_schedule_function):
Try to work with the threading mess that queue_link is.

ChangeLog
gst/schedulers/gstoptimalscheduler.c

index 267714e..39c3bf9 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,11 @@
 2005-02-01  Ronald S. Bultje  <rbultje@ronald.bitfreak.net>
 
+       * gst/schedulers/gstoptimalscheduler.c:
+       (get_group_schedule_function):
+         Try to work with the threading mess that queue_link is.
+
+2005-02-01  Ronald S. Bultje  <rbultje@ronald.bitfreak.net>
+
        * gst/gstbin.c: (gst_bin_remove_func):
          Explicitely make an element release locks in a group when being
          remove from a bin.
index fba08ca..d539835 100644 (file)
@@ -1286,7 +1286,12 @@ get_group_schedule_function (int argc, char *argv[])
 {
   GstOptSchedulerGroup *group = (GstOptSchedulerGroup *) argv;
   GstElement *entry = group->entry;
-  const GList *pads = gst_element_get_pad_list (entry);
+  const GList *pads;
+
+  /* what if the entry point disappeared? */
+  if (!entry)
+    return 0;
+  pads = gst_element_get_pad_list (entry);
 
   GST_LOG ("executing get-based group %p", group);