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
3fc7da7f
Commit
3fc7da7f
authored
Oct 17, 2009
by
Jörg Höhle
Committed by
Alexandre Julliard
Oct 26, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mciwave: Do not transition via Resume from Record into Play.
parent
3c6496d7
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
8 deletions
+8
-8
mciwave.c
dlls/mciwave/mciwave.c
+8
-8
No files found.
dlls/mciwave/mciwave.c
View file @
3fc7da7f
...
@@ -726,18 +726,18 @@ static DWORD WAVE_mciPlay(MCIDEVICEID wDevID, DWORD_PTR dwFlags, DWORD_PTR pmt,
...
@@ -726,18 +726,18 @@ static DWORD WAVE_mciPlay(MCIDEVICEID wDevID, DWORD_PTR dwFlags, DWORD_PTR pmt,
if
(
wmw
==
NULL
)
return
MCIERR_INVALID_DEVICE_ID
;
if
(
wmw
==
NULL
)
return
MCIERR_INVALID_DEVICE_ID
;
if
(
lpParms
==
NULL
)
return
MCIERR_NULL_PARAMETER_BLOCK
;
if
(
lpParms
==
NULL
)
return
MCIERR_NULL_PARAMETER_BLOCK
;
wmw
->
fInput
=
FALSE
;
if
(
wmw
->
hFile
==
0
)
{
if
(
wmw
->
hFile
==
0
)
{
WARN
(
"Can't play: no file=%s!
\n
"
,
debugstr_w
(
wmw
->
openParms
.
lpstrElementName
));
WARN
(
"Can't play: no file=%s!
\n
"
,
debugstr_w
(
wmw
->
openParms
.
lpstrElementName
));
return
MCIERR_FILE_NOT_FOUND
;
return
MCIERR_FILE_NOT_FOUND
;
}
}
if
(
wmw
->
dwStatus
==
MCI_MODE_PAUSE
)
{
if
(
wmw
->
dwStatus
==
MCI_MODE_PAUSE
&&
!
wmw
->
fInput
)
{
/* FIXME: parameters (start/end) in lpParams may not be used */
/* FIXME: parameters (start/end) in lpParams may not be used */
return
WAVE_mciResume
(
wDevID
,
dwFlags
,
(
LPMCI_GENERIC_PARMS
)
lpParms
);
return
WAVE_mciResume
(
wDevID
,
dwFlags
,
(
LPMCI_GENERIC_PARMS
)
lpParms
);
}
}
wmw
->
fInput
=
FALSE
;
/** This function will be called again by a thread when async is used.
/** This function will be called again by a thread when async is used.
* We have to set MCI_MODE_PLAY before we do this so that the app can spin
* 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.
* on MCI_STATUS, so we have to allow it here if we're not going to start this thread.
...
@@ -972,16 +972,16 @@ static DWORD WAVE_mciRecord(MCIDEVICEID wDevID, DWORD_PTR dwFlags, DWORD_PTR pmt
...
@@ -972,16 +972,16 @@ static DWORD WAVE_mciRecord(MCIDEVICEID wDevID, DWORD_PTR dwFlags, DWORD_PTR pmt
if
(
wmw
==
NULL
)
return
MCIERR_INVALID_DEVICE_ID
;
if
(
wmw
==
NULL
)
return
MCIERR_INVALID_DEVICE_ID
;
if
(
lpParms
==
NULL
)
return
MCIERR_NULL_PARAMETER_BLOCK
;
if
(
lpParms
==
NULL
)
return
MCIERR_NULL_PARAMETER_BLOCK
;
if
(
wmw
->
dwStatus
==
MCI_MODE_PAUSE
&&
wmw
->
fInput
)
{
/* FIXME: parameters (start/end) in lpParams may not be used */
return
WAVE_mciResume
(
wDevID
,
dwFlags
,
(
LPMCI_GENERIC_PARMS
)
lpParms
);
}
/* FIXME : since there is no way to determine in which mode the device is
/* FIXME : since there is no way to determine in which mode the device is
* open (recording/playback) automatically switch from a mode to another
* open (recording/playback) automatically switch from a mode to another
*/
*/
wmw
->
fInput
=
TRUE
;
wmw
->
fInput
=
TRUE
;
if
(
wmw
->
dwStatus
==
MCI_MODE_PAUSE
)
{
/* FIXME: parameters (start/end) in lpParams may not be used */
return
WAVE_mciResume
(
wDevID
,
dwFlags
,
(
LPMCI_GENERIC_PARMS
)
lpParms
);
}
/** This function will be called again by a thread when async is used.
/** This function will be called again by a thread when async is used.
* We have to set MCI_MODE_PLAY before we do this so that the app can spin
* 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.
* on MCI_STATUS, so we have to allow it here if we're not going to start this thread.
...
...
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