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
1a6ed811
Commit
1a6ed811
authored
Oct 21, 2009
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
output_thread: check again if output is open on PAUSE
Basically the same as the 0.15.5 patch "check again if output is open on CANCEL". Same race condition, same fix.
parent
b2b300b6
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
0 deletions
+10
-0
NEWS
NEWS
+1
-0
output_thread.c
src/output_thread.c
+9
-0
No files found.
NEWS
View file @
1a6ed811
ver 0.15.6 (2009/??/??)
* output_thread: check again if output is open on PAUSE
ver 0.15.5 (2009/10/18)
...
...
src/output_thread.c
View file @
1a6ed811
...
...
@@ -248,6 +248,15 @@ static gpointer audio_output_task(gpointer arg)
break
;
case
AO_COMMAND_PAUSE
:
if
(
!
ao
->
open
)
{
/* the output has failed after
audio_output_all_pause() has
submitted the PAUSE command; bail
out */
ao_command_finished
(
ao
);
break
;
}
ao_pause
(
ao
);
/* don't "break" here: this might cause
ao_play() to be called when command==CLOSE
...
...
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