gst/schedulers/gstoptimalscheduler.c: Only unref entry if there is an entry.

Original commit message from CVS:
* gst/schedulers/gstoptimalscheduler.c: (schedule_group):
Only unref entry if there is an entry.
This commit is contained in:
Ronald S. Bultje 2005-01-18 11:29:12 +00:00
parent 1b16db2436
commit defab93002
2 changed files with 7 additions and 1 deletions

View file

@ -1,3 +1,8 @@
2005-01-18 Ronald S. Bultje <rbultje@ronald.bitfreak.net>
* gst/schedulers/gstoptimalscheduler.c: (schedule_group):
Only unref entry if there is an entry.
2005-01-17 Wim Taymans <wim@fluendo.com>
* gst/schedulers/gstoptimalscheduler.c: (add_to_group),

View file

@ -1170,7 +1170,8 @@ schedule_group (GstOptSchedulerGroup * group)
gst_object_unref (GST_OBJECT (e));
}
gst_object_unref (GST_OBJECT (entry));
if (entry)
gst_object_unref (GST_OBJECT (entry));
g_slist_free (lcopy);
}
return TRUE;