Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mpd
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Иван Мажукин
mpd
Commits
25686e5b
Commit
25686e5b
authored
Aug 23, 2011
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
pulse/output: fix deadlock when resuming the stream
Unlock the mainloop in all code paths.
parent
8d70f808
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
1 deletion
+4
-1
NEWS
NEWS
+1
-0
pulse_output_plugin.c
src/output/pulse_output_plugin.c
+3
-1
No files found.
NEWS
View file @
25686e5b
...
@@ -13,6 +13,7 @@ ver 0.16.4 (2011/??/??)
...
@@ -13,6 +13,7 @@ ver 0.16.4 (2011/??/??)
* output:
* output:
- alsa: fix SIGFPE when alsa announces a period size of 0
- alsa: fix SIGFPE when alsa announces a period size of 0
- httpd: don't warn on client disconnect
- httpd: don't warn on client disconnect
- pulse: fix deadlock when resuming the stream
ver 0.16.3 (2011/06/04)
ver 0.16.3 (2011/06/04)
...
...
src/output/pulse_output_plugin.c
View file @
25686e5b
...
@@ -683,8 +683,10 @@ pulse_output_play(void *data, const void *chunk, size_t size, GError **error_r)
...
@@ -683,8 +683,10 @@ pulse_output_play(void *data, const void *chunk, size_t size, GError **error_r)
/* unpause if previously paused */
/* unpause if previously paused */
if
(
pulse_output_stream_is_paused
(
po
)
&&
if
(
pulse_output_stream_is_paused
(
po
)
&&
!
pulse_output_stream_pause
(
po
,
false
,
error_r
))
!
pulse_output_stream_pause
(
po
,
false
,
error_r
))
{
pa_threaded_mainloop_unlock
(
po
->
mainloop
);
return
0
;
return
0
;
}
/* wait until the server allows us to write */
/* wait until the server allows us to write */
...
...
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