projects
/
platform
/
upstream
/
gst-plugins-good.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f5dba3a
)
pulsesink: fix racy shutdown
author
Stefan Kost
<ensonic@users.sf.net>
Sat, 3 Apr 2010 20:39:20 +0000
(23:39 +0300)
committer
Wim Taymans
<wim.taymans@collabora.co.uk>
Tue, 6 Apr 2010 15:22:03 +0000
(17:22 +0200)
Keep a ref of pulsesink for deferred mainloop invocation. Fixes #614765
ext/pulse/pulsesink.c
patch
|
blob
|
history
diff --git
a/ext/pulse/pulsesink.c
b/ext/pulse/pulsesink.c
index
1fc221d
..
0460748
100644
(file)
--- a/
ext/pulse/pulsesink.c
+++ b/
ext/pulse/pulsesink.c
@@
-1025,6
+1025,7
@@
mainloop_leave_defer_cb (pa_mainloop_api * api, void *userdata)
pulsesink->pa_defer_ran = TRUE;
pa_threaded_mainloop_signal (pulsesink->mainloop, 0);
+ gst_object_unref (pulsesink);
}
/* stop playback, we flush everything. */
@@
-1071,6
+1072,7
@@
cleanup:
GST_DEBUG_OBJECT (psink, "scheduling stream status");
psink->pa_defer_ran = FALSE;
+ gst_object_ref (psink);
pa_mainloop_api_once (pa_threaded_mainloop_get_api (psink->mainloop),
mainloop_leave_defer_cb, psink);