gst/schedulers/gstoptimalscheduler.c

Original commit message from CVS:
* gst/schedulers/gstoptimalscheduler.c
(gst_opt_scheduler_pad_unlink): Check if element is non-NULL and
really is a GstElement. Avoids critical when running gst-launch -v
and a oggdemux/decoding pipeline.
This commit is contained in:
Johan Dahlin 2004-05-03 14:11:26 +00:00
parent fa903783c2
commit f9329d93f7
2 changed files with 9 additions and 1 deletions

View file

@ -1,3 +1,10 @@
2004-05-03 Johan Dahlin <johan@gnome.org>
* gst/schedulers/gstoptimalscheduler.c
(gst_opt_scheduler_pad_unlink): Check if element is non-NULL and
really is a GstElement. Avoids critical when running gst-launch -v
and a oggdemux/decoding pipeline.
2004-05-02 Stephane Loeuillet <stephane.loeuillet@tiscali.fr>
* docs/gst/tmpl/gstpipeline.sgml :

View file

@ -2186,7 +2186,8 @@ gst_opt_scheduler_pad_unlink (GstScheduler * sched,
for (l = group->elements; l && l->data; l = l->next) {
GstElement *element = (GstElement *) l->data;
if (GST_ELEMENT_IS_DECOUPLED (element))
if (!element || !GST_IS_ELEMENT (element) ||
GST_ELEMENT_IS_DECOUPLED (element))
continue;
linkcount = 0;