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
55efce6c
Commit
55efce6c
authored
Sep 21, 2011
by
Jörg Höhle
Committed by
Alexandre Julliard
Sep 22, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wineoss: EAGAIN (OSS buffer full) is a regular situation.
parent
03ad9366
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
3 deletions
+7
-3
mmdevdrv.c
dlls/wineoss.drv/mmdevdrv.c
+7
-3
No files found.
dlls/wineoss.drv/mmdevdrv.c
View file @
55efce6c
...
...
@@ -1224,6 +1224,7 @@ static void oss_write_data(ACImpl *This)
written
=
write
(
This
->
fd
,
buf
,
to_write
*
This
->
fmt
->
nBlockAlign
);
if
(
written
<
0
){
/* EAGAIN is OSS buffer full, log that too */
WARN
(
"write failed: %d (%s)
\n
"
,
errno
,
strerror
(
errno
));
return
;
}
...
...
@@ -1729,9 +1730,12 @@ static HRESULT WINAPI AudioRenderClient_ReleaseBuffer(
w_bytes
=
write
(
This
->
fd
,
buffer
,
written_frames
*
This
->
fmt
->
nBlockAlign
);
if
(
w_bytes
<
0
){
LeaveCriticalSection
(
&
This
->
lock
);
WARN
(
"write failed: %d (%s)
\n
"
,
errno
,
strerror
(
errno
));
return
E_FAIL
;
if
(
errno
!=
EAGAIN
){
LeaveCriticalSection
(
&
This
->
lock
);
WARN
(
"write failed: %d (%s)
\n
"
,
errno
,
strerror
(
errno
));
return
E_FAIL
;
}
else
/* OSS buffer full */
w_bytes
=
0
;
}
w_frames
=
w_bytes
/
This
->
fmt
->
nBlockAlign
;
This
->
inbuf_frames
+=
w_frames
;
...
...
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