Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
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
wine
wine-winehq
Commits
2cec4f45
Commit
2cec4f45
authored
Jul 26, 2005
by
Robert Shearman
Committed by
Alexandre Julliard
Jul 26, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wait_for_poll can go into an infinite loop. Remove it and replace it
with snd_pcm_drain which is more likely to do what the original author intended.
parent
aea0ad91
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
21 deletions
+1
-21
audio.c
dlls/winmm/winealsa/audio.c
+1
-21
No files found.
dlls/winmm/winealsa/audio.c
View file @
2cec4f45
...
...
@@ -2051,26 +2051,6 @@ static DWORD wodPlayer_NotifyCompletions(WINE_WAVEDEV* wwo, BOOL force)
}
static
void
wait_for_poll
(
snd_pcm_t
*
handle
,
struct
pollfd
*
ufds
,
unsigned
int
count
)
{
unsigned
short
revents
;
if
(
snd_pcm_state
(
handle
)
!=
SND_PCM_STATE_RUNNING
)
return
;
while
(
1
)
{
poll
(
ufds
,
count
,
-
1
);
snd_pcm_poll_descriptors_revents
(
handle
,
ufds
,
count
,
&
revents
);
if
(
revents
&
POLLERR
)
return
;
/*if (revents & POLLOUT)
return 0;*/
}
}
/**************************************************************************
* wodPlayer_Reset [internal]
*
...
...
@@ -2085,7 +2065,7 @@ static void wodPlayer_Reset(WINE_WAVEDEV* wwo)
TRACE
(
"(%p)
\n
"
,
wwo
);
/* flush all possible output */
wait_for_poll
(
wwo
->
pcm
,
wwo
->
ufds
,
wwo
->
count
);
snd_pcm_drain
(
wwo
->
pcm
);
wodUpdatePlayedTotal
(
wwo
,
NULL
);
/* updates current notify list */
...
...
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