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
b91a701c
Commit
b91a701c
authored
Oct 04, 2019
by
Nikolay Sivov
Committed by
Alexandre Julliard
Oct 04, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mf: Add async command for session pause.
Signed-off-by:
Nikolay Sivov
<
nsivov@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
a9bc8a3b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
2 deletions
+15
-2
session.c
dlls/mf/session.c
+15
-2
No files found.
dlls/mf/session.c
View file @
b91a701c
...
...
@@ -38,6 +38,7 @@ enum session_command
SESSION_CMD_CLOSE
,
SESSION_CMD_SET_TOPOLOGY
,
SESSION_CMD_START
,
SESSION_CMD_PAUSE
,
};
struct
session_op
...
...
@@ -718,9 +719,19 @@ static HRESULT WINAPI mfsession_Start(IMFMediaSession *iface, const GUID *format
static
HRESULT
WINAPI
mfsession_Pause
(
IMFMediaSession
*
iface
)
{
FIXME
(
"(%p)
\n
"
,
iface
);
struct
media_session
*
session
=
impl_from_IMFMediaSession
(
iface
);
struct
session_op
*
op
;
HRESULT
hr
;
return
E_NOTIMPL
;
TRACE
(
"%p.
\n
"
,
iface
);
if
(
FAILED
(
hr
=
create_session_op
(
SESSION_CMD_PAUSE
,
&
op
)))
return
hr
;
hr
=
session_submit_command
(
session
,
op
);
IUnknown_Release
(
&
op
->
IUnknown_iface
);
return
hr
;
}
static
HRESULT
WINAPI
mfsession_Stop
(
IMFMediaSession
*
iface
)
...
...
@@ -1010,6 +1021,8 @@ static HRESULT WINAPI session_commands_callback_Invoke(IMFAsyncCallback *iface,
session_start
(
session
,
&
op
->
u
.
start
.
time_format
,
&
op
->
u
.
start
.
start_position
);
break
;
}
case
SESSION_CMD_PAUSE
:
break
;
case
SESSION_CMD_CLOSE
:
EnterCriticalSection
(
&
session
->
cs
);
if
(
session
->
state
!=
SESSION_STATE_CLOSED
)
...
...
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