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
3471b779
Commit
3471b779
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 stopping the session.
Signed-off-by:
Nikolay Sivov
<
nsivov@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
b91a701c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
2 deletions
+13
-2
session.c
dlls/mf/session.c
+13
-2
No files found.
dlls/mf/session.c
View file @
3471b779
...
...
@@ -39,6 +39,7 @@ enum session_command
SESSION_CMD_SET_TOPOLOGY
,
SESSION_CMD_START
,
SESSION_CMD_PAUSE
,
SESSION_CMD_STOP
,
};
struct
session_op
...
...
@@ -736,9 +737,19 @@ static HRESULT WINAPI mfsession_Pause(IMFMediaSession *iface)
static
HRESULT
WINAPI
mfsession_Stop
(
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_STOP
,
&
op
)))
return
hr
;
hr
=
session_submit_command
(
session
,
op
);
IUnknown_Release
(
&
op
->
IUnknown_iface
);
return
hr
;
}
static
HRESULT
WINAPI
mfsession_Close
(
IMFMediaSession
*
iface
)
...
...
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