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
e2a4b8a5
Commit
e2a4b8a5
authored
Oct 21, 2020
by
Nikolay Sivov
Committed by
Alexandre Julliard
Oct 21, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
evr/mixer: Drop input samples on flush.
Signed-off-by:
Nikolay Sivov
<
nsivov@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
c1e57ea2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
0 deletions
+18
-0
mixer.c
dlls/evr/mixer.c
+18
-0
No files found.
dlls/evr/mixer.c
View file @
e2a4b8a5
...
@@ -949,6 +949,7 @@ static HRESULT WINAPI video_mixer_transform_ProcessMessage(IMFTransform *iface,
...
@@ -949,6 +949,7 @@ static HRESULT WINAPI video_mixer_transform_ProcessMessage(IMFTransform *iface,
{
{
struct
video_mixer
*
mixer
=
impl_from_IMFTransform
(
iface
);
struct
video_mixer
*
mixer
=
impl_from_IMFTransform
(
iface
);
HRESULT
hr
=
S_OK
;
HRESULT
hr
=
S_OK
;
unsigned
int
i
;
TRACE
(
"%p, %u, %#lx.
\n
"
,
iface
,
message
,
param
);
TRACE
(
"%p, %u, %#lx.
\n
"
,
iface
,
message
,
param
);
...
@@ -966,6 +967,23 @@ static HRESULT WINAPI video_mixer_transform_ProcessMessage(IMFTransform *iface,
...
@@ -966,6 +967,23 @@ static HRESULT WINAPI video_mixer_transform_ProcessMessage(IMFTransform *iface,
break
;
break
;
case
MFT_MESSAGE_COMMAND_FLUSH
:
EnterCriticalSection
(
&
mixer
->
cs
);
for
(
i
=
0
;
i
<
mixer
->
input_count
;
++
i
)
{
if
(
mixer
->
inputs
[
i
].
sample
)
{
IMFSample_Release
(
mixer
->
inputs
[
i
].
sample
);
mixer
->
inputs
[
i
].
sample
=
NULL
;
}
}
LeaveCriticalSection
(
&
mixer
->
cs
);
break
;
case
MFT_MESSAGE_COMMAND_DRAIN
:
case
MFT_MESSAGE_COMMAND_DRAIN
:
break
;
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