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
41fe1ac0
Commit
41fe1ac0
authored
Oct 30, 2020
by
Nikolay Sivov
Committed by
Alexandre Julliard
Oct 30, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mf/evr: Pass incoming samples to the mixer.
Signed-off-by:
Nikolay Sivov
<
nsivov@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
f64d0461
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
6 deletions
+23
-6
evr.c
dlls/mf/evr.c
+23
-6
No files found.
dlls/mf/evr.c
View file @
41fe1ac0
...
@@ -335,19 +335,36 @@ static HRESULT WINAPI video_stream_sink_GetMediaTypeHandler(IMFStreamSink *iface
...
@@ -335,19 +335,36 @@ static HRESULT WINAPI video_stream_sink_GetMediaTypeHandler(IMFStreamSink *iface
static
HRESULT
WINAPI
video_stream_sink_ProcessSample
(
IMFStreamSink
*
iface
,
IMFSample
*
sample
)
static
HRESULT
WINAPI
video_stream_sink_ProcessSample
(
IMFStreamSink
*
iface
,
IMFSample
*
sample
)
{
{
struct
video_stream
*
stream
=
impl_from_IMFStreamSink
(
iface
);
struct
video_stream
*
stream
=
impl_from_IMFStreamSink
(
iface
);
LONGLONG
timestamp
;
HRESULT
hr
=
S_OK
;
FIXM
E
(
"%p, %p.
\n
"
,
iface
,
sample
);
TRAC
E
(
"%p, %p.
\n
"
,
iface
,
sample
);
EnterCriticalSection
(
&
stream
->
cs
);
EnterCriticalSection
(
&
stream
->
cs
);
if
(
stream
->
flags
&
EVR_STREAM_PREROLLING
)
if
(
!
stream
->
parent
)
hr
=
MF_E_STREAMSINK_REMOVED
;
else
if
(
!
stream
->
parent
->
clock
)
hr
=
MF_E_NO_CLOCK
;
else
if
(
FAILED
(
hr
=
IMFSample_GetSampleTime
(
sample
,
&
timestamp
)))
{
WARN
(
"No sample timestamp, hr %#x.
\n
"
,
hr
);
}
else
if
(
stream
->
parent
->
state
==
EVR_STATE_RUNNING
)
{
{
IMFMediaEventQueue_QueueEventParamVar
(
stream
->
event_queue
,
MEStreamSinkPrerolled
,
&
GUID_NULL
,
S_OK
,
NULL
);
IMFTransform_ProcessInput
(
stream
->
parent
->
mixer
,
stream
->
id
,
sample
,
0
);
stream
->
flags
&=
~
EVR_STREAM_PREROLLING
;
stream
->
flags
|=
EVR_STREAM_PREROLLED
;
if
(
stream
->
flags
&
EVR_STREAM_PREROLLING
)
{
IMFMediaEventQueue_QueueEventParamVar
(
stream
->
event_queue
,
MEStreamSinkPrerolled
,
&
GUID_NULL
,
S_OK
,
NULL
);
stream
->
flags
&=
~
EVR_STREAM_PREROLLING
;
stream
->
flags
|=
EVR_STREAM_PREROLLED
;
}
}
}
LeaveCriticalSection
(
&
stream
->
cs
);
LeaveCriticalSection
(
&
stream
->
cs
);
return
E_NOTIMPL
;
return
hr
;
}
}
static
HRESULT
WINAPI
video_stream_sink_PlaceMarker
(
IMFStreamSink
*
iface
,
MFSTREAMSINK_MARKER_TYPE
marker_type
,
static
HRESULT
WINAPI
video_stream_sink_PlaceMarker
(
IMFStreamSink
*
iface
,
MFSTREAMSINK_MARKER_TYPE
marker_type
,
...
...
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