mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-06 23:45:35 +00:00
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:
parent
dce817b1fe
commit
32f7bcf48a
3 changed files with 10 additions and 1 deletions
|
@ -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
2
common
|
@ -1 +1 @@
|
|||
Subproject commit 2826306411790bf8aa9298922aa59b126897431f
|
||||
Subproject commit 4ca96aedcf2be0b3dcf31fce732aed1da21b8850
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue