Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
33a4151b
Commit
33a4151b
authored
May 31, 2019
by
Nikolay Sivov
Committed by
Alexandre Julliard
May 31, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mf: Partially implement Shutdown() for media session.
Signed-off-by:
Nikolay Sivov
<
nsivov@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
05d76e7c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
3 deletions
+12
-3
session.c
dlls/mf/session.c
+12
-2
mf.c
dlls/mf/tests/mf.c
+0
-1
No files found.
dlls/mf/session.c
View file @
33a4151b
...
...
@@ -62,6 +62,7 @@ struct media_session
IMFMediaEventQueue
*
event_queue
;
IMFPresentationClock
*
clock
;
struct
list
topologies
;
BOOL
is_shut_down
;
CRITICAL_SECTION
cs
;
};
...
...
@@ -412,12 +413,21 @@ static HRESULT WINAPI mfsession_Close(IMFMediaSession *iface)
static
HRESULT
WINAPI
mfsession_Shutdown
(
IMFMediaSession
*
iface
)
{
struct
media_session
*
session
=
impl_from_IMFMediaSession
(
iface
);
HRESULT
hr
=
S_OK
;
FIXME
(
"(%p)
\n
"
,
iface
);
IMFMediaEventQueue_Shutdown
(
session
->
event_queue
);
EnterCriticalSection
(
&
session
->
cs
);
if
(
session
->
is_shut_down
)
hr
=
MF_E_SHUTDOWN
;
else
{
session
->
is_shut_down
=
TRUE
;
IMFMediaEventQueue_Shutdown
(
session
->
event_queue
);
}
LeaveCriticalSection
(
&
session
->
cs
);
return
E_NOTIMPL
;
return
hr
;
}
static
HRESULT
WINAPI
mfsession_GetClock
(
IMFMediaSession
*
iface
,
IMFClock
**
clock
)
...
...
dlls/mf/tests/mf.c
View file @
33a4151b
...
...
@@ -944,7 +944,6 @@ static void test_session_events(IMFMediaSession *session)
/* Shutdown behavior. */
hr
=
IMFMediaSession_Shutdown
(
session
);
todo_wine
ok
(
hr
==
S_OK
,
"Failed to shut down, hr %#x.
\n
"
,
hr
);
}
...
...
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