Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc-2-2
Commits
c72c363f
Commit
c72c363f
authored
Aug 11, 2011
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
PulseAudio: missing lock
parent
b03ea8da
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
6 deletions
+10
-6
modules/audio_output/pulse.c
modules/audio_output/pulse.c
+8
-6
src/pulse/mainloop.c
src/pulse/mainloop.c
+2
-0
No files found.
modules/audio_output/pulse.c
View file @
c72c363f
...
...
@@ -823,18 +823,20 @@ static void Close (vlc_object_t *obj)
var_DelCallback
(
aout
,
"audio-device"
,
StreamMove
,
s
);
var_Destroy
(
aout
,
"audio-device"
);
vlc_pa_lock
();
pa_stream_disconnect
(
s
);
/* Clear all callbacks */
pa_stream_set_state_callback
(
s
,
NULL
,
NULL
);
pa_stream_set_latency_update_callback
(
s
,
NULL
,
aout
);
pa_stream_set_moved_callback
(
s
,
NULL
,
aout
);
pa_stream_set_overflow_callback
(
s
,
NULL
,
aout
);
pa_stream_set_started_callback
(
s
,
NULL
,
aout
);
pa_stream_set_suspended_callback
(
s
,
NULL
,
aout
);
pa_stream_set_underflow_callback
(
s
,
NULL
,
aout
);
pa_stream_set_latency_update_callback
(
s
,
NULL
,
NULL
);
pa_stream_set_moved_callback
(
s
,
NULL
,
NULL
);
pa_stream_set_overflow_callback
(
s
,
NULL
,
NULL
);
pa_stream_set_started_callback
(
s
,
NULL
,
NULL
);
pa_stream_set_suspended_callback
(
s
,
NULL
,
NULL
);
pa_stream_set_underflow_callback
(
s
,
NULL
,
NULL
);
pa_stream_unref
(
s
);
vlc_pa_unlock
();
}
vlc_pa_disconnect
(
obj
,
ctx
);
...
...
src/pulse/mainloop.c
View file @
c72c363f
...
...
@@ -262,9 +262,11 @@ void vlc_pa_disconnect (vlc_object_t *obj, pa_context *ctx)
{
pa_threaded_mainloop
*
mainloop
=
vlc_pa_mainloop
;
vlc_pa_lock
();
pa_context_disconnect
(
ctx
);
pa_context_set_state_callback
(
ctx
,
NULL
,
NULL
);
pa_context_unref
(
ctx
);
vlc_pa_unlock
();
vlc_pa_mainloop_deinit
(
mainloop
);
(
void
)
obj
;
...
...
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