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
fd220093
Commit
fd220093
authored
Nov 11, 2020
by
Nikolay Sivov
Committed by
Alexandre Julliard
Nov 11, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mf/session: Notify quality manager when setting new topology.
Signed-off-by:
Nikolay Sivov
<
nsivov@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
61ab5b24
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
27 additions
and
2 deletions
+27
-2
session.c
dlls/mf/session.c
+27
-2
No files found.
dlls/mf/session.c
View file @
fd220093
...
...
@@ -42,7 +42,9 @@ enum session_command
SESSION_CMD_START
,
SESSION_CMD_PAUSE
,
SESSION_CMD_STOP
,
SESSION_CMD_END
,
/* Internal use only. */
/* Internally used commands. */
SESSION_CMD_END
,
SESSION_CMD_QM_NOTIFY_TOPOLOGY
,
};
struct
session_op
...
...
@@ -62,6 +64,10 @@ struct session_op
GUID
time_format
;
PROPVARIANT
start_position
;
}
start
;
struct
{
IMFTopology
*
topology
;
}
notify_topology
;
}
u
;
struct
list
entry
;
};
...
...
@@ -492,6 +498,10 @@ static ULONG WINAPI session_op_Release(IUnknown *iface)
case
SESSION_CMD_START
:
PropVariantClear
(
&
op
->
u
.
start
.
start_position
);
break
;
case
SESSION_CMD_QM_NOTIFY_TOPOLOGY
:
if
(
op
->
u
.
notify_topology
.
topology
)
IMFTopology_Release
(
op
->
u
.
notify_topology
.
topology
);
break
;
default:
;
}
...
...
@@ -1301,9 +1311,21 @@ static HRESULT session_set_current_topology(struct media_session *session, IMFTo
DWORD
caps
,
object_flags
;
struct
media_sink
*
sink
;
struct
topo_node
*
node
;
struct
session_op
*
op
;
IMFMediaEvent
*
event
;
HRESULT
hr
;
if
(
session
->
quality_manager
)
{
if
(
SUCCEEDED
(
create_session_op
(
SESSION_CMD_QM_NOTIFY_TOPOLOGY
,
&
op
)))
{
op
->
u
.
notify_topology
.
topology
=
topology
;
IMFTopology_AddRef
(
op
->
u
.
notify_topology
.
topology
);
session_submit_command
(
session
,
op
);
IUnknown_Release
(
&
op
->
IUnknown_iface
);
}
}
if
(
FAILED
(
hr
=
IMFTopology_CloneFrom
(
session
->
presentation
.
current_topology
,
topology
)))
{
WARN
(
"Failed to clone topology, hr %#x.
\n
"
,
hr
);
...
...
@@ -1929,6 +1951,9 @@ static HRESULT WINAPI session_commands_callback_Invoke(IMFAsyncCallback *iface,
case
SESSION_CMD_CLOSE
:
session_close
(
session
);
break
;
case
SESSION_CMD_QM_NOTIFY_TOPOLOGY
:
IMFQualityManager_NotifyTopology
(
session
->
quality_manager
,
op
->
u
.
notify_topology
.
topology
);
break
;
default:
;
}
...
...
@@ -4481,7 +4506,7 @@ static HRESULT WINAPI standard_quality_manager_NotifyTopology(IMFQualityManager
{
FIXME
(
"%p, %p stub.
\n
"
,
iface
,
topology
);
return
E_NOTIMPL
;
return
S_OK
;
}
static
HRESULT
WINAPI
standard_quality_manager_NotifyPresentationClock
(
IMFQualityManager
*
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