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
156aa87c
Commit
156aa87c
authored
Sep 01, 2022
by
Rémi Bernon
Committed by
Alexandre Julliard
Sep 02, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mf: Delay media session command processing when presentation is ending.
parent
76f7236b
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
1 deletion
+11
-1
session.c
dlls/mf/session.c
+11
-1
No files found.
dlls/mf/session.c
View file @
156aa87c
...
...
@@ -216,6 +216,7 @@ enum presentation_flags
SESSION_FLAG_NEEDS_PREROLL
=
0x8
,
SESSION_FLAG_END_OF_PRESENTATION
=
0x10
,
SESSION_FLAG_PENDING_RATE_CHANGE
=
0x20
,
SESSION_FLAG_PENDING_COMMAND
=
0x40
,
};
struct
media_session
...
...
@@ -802,6 +803,8 @@ static void session_command_complete(struct media_session *session)
struct
session_op
*
op
;
struct
list
*
e
;
session
->
presentation
.
flags
&=
~
SESSION_FLAG_PENDING_COMMAND
;
/* Pop current command, submit next. */
if
((
e
=
list_head
(
&
session
->
commands
)))
{
...
...
@@ -2374,6 +2377,13 @@ static HRESULT WINAPI session_commands_callback_Invoke(IMFAsyncCallback *iface,
EnterCriticalSection
(
&
session
->
cs
);
if
(
session
->
presentation
.
flags
&
SESSION_FLAG_PENDING_COMMAND
)
{
WARN
(
"session %p command is in progress, waiting for it to complete.
\n
"
,
session
);
LeaveCriticalSection
(
&
session
->
cs
);
return
S_OK
;
}
switch
(
op
->
command
)
{
case
SESSION_CMD_CLEAR_TOPOLOGIES
:
...
...
@@ -3335,7 +3345,7 @@ static void session_raise_end_of_presentation(struct media_session *session)
{
if
(
session_nodes_is_mask_set
(
session
,
MF_TOPOLOGY_MAX
,
SOURCE_FLAG_END_OF_PRESENTATION
))
{
session
->
presentation
.
flags
|=
SESSION_FLAG_END_OF_PRESENTATION
;
session
->
presentation
.
flags
|=
SESSION_FLAG_END_OF_PRESENTATION
|
SESSION_FLAG_PENDING_COMMAND
;
session_push_back_command
(
session
,
SESSION_CMD_END
);
IMFMediaEventQueue_QueueEventParamVar
(
session
->
event_queue
,
MEEndOfPresentation
,
&
GUID_NULL
,
S_OK
,
NULL
);
}
...
...
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