Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Tim-Philipp Müller
gst-plugins-good
Commits
7cf9967e
Commit
7cf9967e
authored
Apr 03, 2010
by
Stefan Kost
Committed by
Wim Taymans
Apr 06, 2010
Browse files
pulsesink: fix racy shutdown
Keep a ref of pulsesink for deferred mainloop invocation. Fixes #614765
parent
f5dba3a7
Changes
1
Hide whitespace changes
Inline
Side-by-side
ext/pulse/pulsesink.c
View file @
7cf9967e
...
...
@@ -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
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment