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
0b4e4601
Commit
0b4e4601
authored
Mar 02, 2020
by
Nikolay Sivov
Committed by
Alexandre Julliard
Mar 02, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mf: Implement GetFullTopology().
Signed-off-by:
Nikolay Sivov
<
nsivov@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
ce434a8a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
35 additions
and
2 deletions
+35
-2
session.c
dlls/mf/session.c
+35
-2
No files found.
dlls/mf/session.c
View file @
0b4e4601
...
...
@@ -1395,9 +1395,42 @@ static HRESULT WINAPI mfsession_GetSessionCapabilities(IMFMediaSession *iface, D
static
HRESULT
WINAPI
mfsession_GetFullTopology
(
IMFMediaSession
*
iface
,
DWORD
flags
,
TOPOID
id
,
IMFTopology
**
topology
)
{
FIXME
(
"%p, %#x, %s, %p.
\n
"
,
iface
,
flags
,
wine_dbgstr_longlong
(
id
),
topology
);
struct
media_session
*
session
=
impl_from_IMFMediaSession
(
iface
);
struct
queued_topology
*
queued
;
HRESULT
hr
=
S_OK
;
TOPOID
topo_id
;
return
E_NOTIMPL
;
TRACE
(
"%p, %#x, %s, %p.
\n
"
,
iface
,
flags
,
wine_dbgstr_longlong
(
id
),
topology
);
*
topology
=
NULL
;
EnterCriticalSection
(
&
session
->
cs
);
if
(
flags
&
MFSESSION_GETFULLTOPOLOGY_CURRENT
)
{
if
(
session
->
presentation
.
topo_status
!=
MF_TOPOSTATUS_INVALID
)
*
topology
=
session
->
presentation
.
current_topology
;
else
hr
=
MF_E_INVALIDREQUEST
;
}
else
{
LIST_FOR_EACH_ENTRY
(
queued
,
&
session
->
topologies
,
struct
queued_topology
,
entry
)
{
if
(
SUCCEEDED
(
IMFTopology_GetTopologyID
(
queued
->
topology
,
&
topo_id
))
&&
topo_id
==
id
)
{
*
topology
=
queued
->
topology
;
break
;
}
}
}
if
(
*
topology
)
IMFTopology_AddRef
(
*
topology
);
LeaveCriticalSection
(
&
session
->
cs
);
return
hr
;
}
static
const
IMFMediaSessionVtbl
mfmediasessionvtbl
=
...
...
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