gst/schedulers/gstoptimalscheduler.c: Need to ref/unref explicitely here to not crash when playing DVD menus.

Original commit message from CVS:
* gst/schedulers/gstoptimalscheduler.c:
(gst_opt_scheduler_get_wrapper):
Need to ref/unref explicitely here to not crash when playing DVD
menus.
This commit is contained in:
Ronald S. Bultje 2005-07-01 16:36:31 +00:00
parent dce817b1fe
commit 32f7bcf48a
3 changed files with 10 additions and 1 deletions

View file

@ -1,3 +1,10 @@
2005-07-01 Ronald S. Bultje <rbultje@ronald.bitfreak.net>
* gst/schedulers/gstoptimalscheduler.c:
(gst_opt_scheduler_get_wrapper):
Need to ref/unref explicitely here to not crash when playing DVD
menus.
2005-06-30 Torsten Schoenfeld <kaffeetisch@gmx.de>
Reviewed by: Ronald S. Bultje <rbultje@ronald.bitfreak.net>

2
common

@ -1 +1 @@
Subproject commit 2826306411790bf8aa9298922aa59b126897431f
Subproject commit 4ca96aedcf2be0b3dcf31fce732aed1da21b8850

View file

@ -1556,6 +1556,7 @@ gst_opt_scheduler_get_wrapper (GstPad * srcpad)
data = NULL;
disabled = FALSE;
gst_object_ref (GST_OBJECT (srcpad));
GST_OPT_LOCK (osched);
do {
GST_LOG ("scheduling upstream group %p to fill datapen", group);
@ -1616,6 +1617,7 @@ done:
GST_LOG ("get handler, returning data %p, queue length %d",
data, g_list_length (GST_PAD_DATALIST (srcpad)));
gst_object_unref (GST_OBJECT (srcpad));
return data;
}