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
fc1e8e79
Commit
fc1e8e79
authored
Mar 05, 2011
by
Jörg Höhle
Committed by
Alexandre Julliard
Mar 07, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mciwave: Fix precondition to avoid having 2 simultaneous players.
parent
2a026493
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
5 deletions
+10
-5
mciwave.c
dlls/mciwave/mciwave.c
+10
-5
No files found.
dlls/mciwave/mciwave.c
View file @
fc1e8e79
...
...
@@ -756,8 +756,8 @@ static DWORD WAVE_mciPlay(MCIDEVICEID wDevID, DWORD_PTR dwFlags, DWORD_PTR pmt,
return
MCIERR_FILE_NOT_FOUND
;
}
if
(
wmw
->
dwStatus
==
MCI_MODE_PAUSE
&&
!
wmw
->
fInput
)
{
/* FIXME:
parameters (start/end) in lpParams may not be used
*/
if
(
wmw
->
dwStatus
==
MCI_MODE_PAUSE
&&
!
wmw
->
fInput
&&
!
(
dwFlags
&
(
MCI_FROM
|
MCI_TO
))
)
{
/* FIXME:
notification is different with Resume than Play
*/
return
WAVE_mciResume
(
wDevID
,
dwFlags
,
(
LPMCI_GENERIC_PARMS
)
lpParms
);
}
...
...
@@ -765,8 +765,12 @@ static DWORD WAVE_mciPlay(MCIDEVICEID wDevID, DWORD_PTR dwFlags, DWORD_PTR pmt,
* We have to set MCI_MODE_PLAY before we do this so that the app can spin
* on MCI_STATUS, so we have to allow it here if we're not going to start this thread.
*/
if
((
wmw
->
dwStatus
!=
MCI_MODE_STOP
)
&&
((
wmw
->
dwStatus
!=
MCI_MODE_PLAY
)
&&
(
dwFlags
&
MCI_WAIT
)))
{
return
MCIERR_INTERNAL
;
if
(
!
(
wmw
->
dwStatus
==
MCI_MODE_STOP
)
&&
!
((
wmw
->
dwStatus
==
MCI_MODE_PLAY
)
&&
(
dwFlags
&
MCI_WAIT
)
&&
!
wmw
->
hWave
))
{
/* FIXME: Check FROM/TO parameters first. */
/* FIXME: Play; Play [notify|wait] must hook into the running player. */
dwRet
=
WAVE_mciStop
(
wDevID
,
MCI_WAIT
,
NULL
);
if
(
dwRet
)
return
dwRet
;
}
if
(
wmw
->
lpWaveFormat
->
wFormatTag
==
WAVE_FORMAT_PCM
)
{
...
...
@@ -1011,7 +1015,8 @@ static DWORD WAVE_mciRecord(MCIDEVICEID wDevID, DWORD_PTR dwFlags, DWORD_PTR pmt
* We have to set MCI_MODE_RECORD before we do this so that the app can spin
* on MCI_STATUS, so we have to allow it here if we're not going to start this thread.
*/
if
((
wmw
->
dwStatus
!=
MCI_MODE_STOP
)
&&
((
wmw
->
dwStatus
!=
MCI_MODE_RECORD
)
&&
(
dwFlags
&
MCI_WAIT
)))
{
if
(
!
(
wmw
->
dwStatus
==
MCI_MODE_STOP
)
&&
!
((
wmw
->
dwStatus
==
MCI_MODE_RECORD
)
&&
(
dwFlags
&
MCI_WAIT
)
&&
!
wmw
->
hWave
))
{
return
MCIERR_INTERNAL
;
}
...
...
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