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
e741f49a
Commit
e741f49a
authored
Sep 02, 2022
by
Rémi Bernon
Committed by
Alexandre Julliard
Sep 02, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mf: Notify quality manager of topology change in session_set_topology.
parent
5af9f06e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
22 deletions
+2
-22
session.c
dlls/mf/session.c
+2
-22
No files found.
dlls/mf/session.c
View file @
e741f49a
...
...
@@ -47,8 +47,6 @@ enum session_command
SESSION_CMD_PAUSE
,
SESSION_CMD_STOP
,
SESSION_CMD_SET_RATE
,
/* Internally used commands. */
SESSION_CMD_QM_NOTIFY_TOPOLOGY
,
};
struct
session_op
...
...
@@ -414,10 +412,6 @@ static ULONG WINAPI session_op_Release(IUnknown *iface)
case
SESSION_CMD_START
:
PropVariantClear
(
&
op
->
start
.
start_position
);
break
;
case
SESSION_CMD_QM_NOTIFY_TOPOLOGY
:
if
(
op
->
notify_topology
.
topology
)
IMFTopology_Release
(
op
->
notify_topology
.
topology
);
break
;
default:
;
}
...
...
@@ -1680,21 +1674,9 @@ 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
->
notify_topology
.
topology
=
topology
;
IMFTopology_AddRef
(
op
->
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 %#lx.
\n
"
,
hr
);
...
...
@@ -1826,6 +1808,8 @@ static void session_set_topology(struct media_session *session, DWORD flags, IMF
{
hr
=
session_set_current_topology
(
session
,
topology
);
session_set_topo_status
(
session
,
hr
,
MF_TOPOSTATUS_READY
);
if
(
session
->
quality_manager
)
IMFQualityManager_NotifyTopology
(
session
->
quality_manager
,
topology
);
}
}
...
...
@@ -2396,10 +2380,6 @@ 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
->
notify_topology
.
topology
);
session_command_complete
(
session
);
break
;
case
SESSION_CMD_SET_RATE
:
session_set_rate
(
session
,
op
->
set_rate
.
thin
,
op
->
set_rate
.
rate
);
break
;
...
...
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