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
924c97fe
Commit
924c97fe
authored
Feb 19, 2016
by
Andrew Eikum
Committed by
Alexandre Julliard
Feb 20, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mciqtz: Implement MCI_RESUME.
Signed-off-by:
Andrew Eikum
<
aeikum@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
1245f833
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
27 additions
and
1 deletion
+27
-1
mciqtz.c
dlls/mciqtz32/mciqtz.c
+27
-1
No files found.
dlls/mciqtz32/mciqtz.c
View file @
924c97fe
...
...
@@ -584,6 +584,29 @@ static DWORD MCIQTZ_mciPause(UINT wDevID, DWORD dwFlags, LPMCI_GENERIC_PARMS lpP
}
/***************************************************************************
* MCIQTZ_mciResume [internal]
*/
static
DWORD
MCIQTZ_mciResume
(
UINT
wDevID
,
DWORD
dwFlags
,
LPMCI_GENERIC_PARMS
lpParms
)
{
WINE_MCIQTZ
*
wma
;
HRESULT
hr
;
TRACE
(
"(%04x, %08X, %p)
\n
"
,
wDevID
,
dwFlags
,
lpParms
);
wma
=
MCIQTZ_mciGetOpenDev
(
wDevID
);
if
(
!
wma
)
return
MCIERR_INVALID_DEVICE_ID
;
hr
=
IMediaControl_Run
(
wma
->
pmctrl
);
if
(
FAILED
(
hr
))
{
TRACE
(
"Cannot run filtergraph (hr = %x)
\n
"
,
hr
);
return
MCIERR_INTERNAL
;
}
return
0
;
}
/***************************************************************************
* MCIQTZ_mciGetDevCaps [internal]
*/
static
DWORD
MCIQTZ_mciGetDevCaps
(
UINT
wDevID
,
DWORD
dwFlags
,
LPMCI_GETDEVCAPS_PARMS
lpParms
)
...
...
@@ -1126,6 +1149,9 @@ static DWORD CALLBACK MCIQTZ_taskThread(LPVOID arg)
case
MCI_PAUSE
:
task
->
res
=
MCIQTZ_mciPause
(
task
->
devid
,
task
->
flags
,
(
LPMCI_GENERIC_PARMS
)
task
->
parms
);
break
;
case
MCI_RESUME
:
task
->
res
=
MCIQTZ_mciResume
(
task
->
devid
,
task
->
flags
,
(
LPMCI_GENERIC_PARMS
)
task
->
parms
);
break
;
case
MCI_GETDEVCAPS
:
task
->
res
=
MCIQTZ_mciGetDevCaps
(
task
->
devid
,
task
->
flags
,
(
LPMCI_GETDEVCAPS_PARMS
)
task
->
parms
);
break
;
...
...
@@ -1209,6 +1235,7 @@ LRESULT CALLBACK MCIQTZ_DriverProc(DWORD_PTR dwDevID, HDRVR hDriv, UINT wMsg,
case
MCI_CLOSE_DRIVER
:
case
MCI_STOP
:
case
MCI_PAUSE
:
case
MCI_RESUME
:
return
MCIQTZ_relayTaskMessage
(
dwDevID
,
wMsg
,
dwParam1
,
dwParam2
);
/* Digital Video specific */
case
MCI_SETAUDIO
:
...
...
@@ -1218,7 +1245,6 @@ LRESULT CALLBACK MCIQTZ_DriverProc(DWORD_PTR dwDevID, HDRVR hDriv, UINT wMsg,
if
(
!
dwParam2
)
return
MCIERR_NULL_PARAMETER_BLOCK
;
return
MCIQTZ_relayTaskMessage
(
dwDevID
,
wMsg
,
dwParam1
,
dwParam2
);
case
MCI_RECORD
:
case
MCI_RESUME
:
case
MCI_INFO
:
case
MCI_LOAD
:
case
MCI_SAVE
:
...
...
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