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
e5767b1c
Commit
e5767b1c
authored
Jul 02, 2008
by
Maarten Lankhorst
Committed by
Alexandre Julliard
Jul 03, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
quartz: Fix return values in directsound renderer.
parent
422d71f6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
dsoundrender.c
dlls/quartz/dsoundrender.c
+4
-4
No files found.
dlls/quartz/dsoundrender.c
View file @
e5767b1c
...
@@ -243,11 +243,8 @@ static HRESULT DSoundRender_Sample(LPVOID iface, IMediaSample * pSample)
...
@@ -243,11 +243,8 @@ static HRESULT DSoundRender_Sample(LPVOID iface, IMediaSample * pSample)
* pause completion here, but for sound playing a single frame doesn't make sense
* pause completion here, but for sound playing a single frame doesn't make sense
*/
*/
if
(
This
->
state
==
State_Paused
)
return
S_FALSE
;
if
(
This
->
state
==
State_Stopped
)
if
(
This
->
state
==
State_Stopped
)
return
S_FALS
E
;
return
VFW_E_WRONG_STAT
E
;
hr
=
IMediaSample_GetPointer
(
pSample
,
&
pbSrcStream
);
hr
=
IMediaSample_GetPointer
(
pSample
,
&
pbSrcStream
);
if
(
FAILED
(
hr
))
if
(
FAILED
(
hr
))
...
@@ -272,6 +269,9 @@ static HRESULT DSoundRender_Sample(LPVOID iface, IMediaSample * pSample)
...
@@ -272,6 +269,9 @@ static HRESULT DSoundRender_Sample(LPVOID iface, IMediaSample * pSample)
return
S_OK
;
return
S_OK
;
}
}
if
(
This
->
state
==
State_Paused
)
return
S_OK
;
cbSrcStream
=
IMediaSample_GetActualDataLength
(
pSample
);
cbSrcStream
=
IMediaSample_GetActualDataLength
(
pSample
);
TRACE
(
"Sample data ptr = %p, size = %ld
\n
"
,
pbSrcStream
,
cbSrcStream
);
TRACE
(
"Sample data ptr = %p, size = %ld
\n
"
,
pbSrcStream
,
cbSrcStream
);
...
...
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