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
2d879816
Commit
2d879816
authored
Oct 23, 2020
by
Nikolay Sivov
Committed by
Alexandre Julliard
Oct 23, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
evr/mixer: Send sample requests when switching to streaming mode.
Signed-off-by:
Nikolay Sivov
<
nsivov@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
d063fff6
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 @
2d879816
...
...
@@ -28,6 +28,7 @@
#include "initguid.h"
#include "evr9.h"
#include "evcode.h"
#include "wine/debug.h"
#include "wine/heap.h"
...
...
@@ -44,6 +45,7 @@ struct input_stream
MFVideoNormalizedRect
rect
;
unsigned
int
zorder
;
IMFSample
*
sample
;
unsigned
int
sample_requested
:
1
;
};
struct
rt_format
...
...
@@ -995,6 +997,15 @@ static HRESULT WINAPI video_mixer_transform_ProcessEvent(IMFTransform *iface, DW
return
E_NOTIMPL
;
}
static
void
video_mixer_request_sample
(
struct
video_mixer
*
mixer
,
unsigned
int
idx
)
{
if
(
!
mixer
->
event_sink
||
mixer
->
inputs
[
idx
].
sample_requested
)
return
;
IMediaEventSink_Notify
(
mixer
->
event_sink
,
EC_SAMPLE_NEEDED
,
idx
,
0
);
mixer
->
inputs
[
idx
].
sample_requested
=
1
;
}
static
HRESULT
WINAPI
video_mixer_transform_ProcessMessage
(
IMFTransform
*
iface
,
MFT_MESSAGE_TYPE
message
,
ULONG_PTR
param
)
{
struct
video_mixer
*
mixer
=
impl_from_IMFTransform
(
iface
);
...
...
@@ -1039,6 +1050,12 @@ static HRESULT WINAPI video_mixer_transform_ProcessMessage(IMFTransform *iface,
EnterCriticalSection
(
&
mixer
->
cs
);
if
(
!
mixer
->
is_streaming
)
{
for
(
i
=
0
;
i
<
mixer
->
input_count
;
++
i
)
video_mixer_request_sample
(
mixer
,
i
);
}
mixer
->
is_streaming
=
message
==
MFT_MESSAGE_NOTIFY_BEGIN_STREAMING
;
LeaveCriticalSection
(
&
mixer
->
cs
);
...
...
@@ -1078,6 +1095,7 @@ static HRESULT WINAPI video_mixer_transform_ProcessInput(IMFTransform *iface, DW
else
{
mixer
->
is_streaming
=
1
;
input
->
sample_requested
=
0
;
input
->
sample
=
sample
;
IMFSample_AddRef
(
input
->
sample
);
}
...
...
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