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
ec7d032b
Commit
ec7d032b
authored
Oct 31, 2022
by
Nikolay Sivov
Committed by
Alexandre Julliard
Oct 31, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mf/samplegrabber: Send MEStreamSinkRateChanged event.
Signed-off-by:
Nikolay Sivov
<
nsivov@codeweavers.com
>
parent
223ac670
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
1 deletion
+14
-1
samplegrabber.c
dlls/mf/samplegrabber.c
+14
-1
No files found.
dlls/mf/samplegrabber.c
View file @
ec7d032b
...
@@ -1203,10 +1203,23 @@ static HRESULT WINAPI sample_grabber_clock_sink_OnClockRestart(IMFClockStateSink
...
@@ -1203,10 +1203,23 @@ static HRESULT WINAPI sample_grabber_clock_sink_OnClockRestart(IMFClockStateSink
static
HRESULT
WINAPI
sample_grabber_clock_sink_OnClockSetRate
(
IMFClockStateSink
*
iface
,
MFTIME
systime
,
float
rate
)
static
HRESULT
WINAPI
sample_grabber_clock_sink_OnClockSetRate
(
IMFClockStateSink
*
iface
,
MFTIME
systime
,
float
rate
)
{
{
struct
sample_grabber
*
grabber
=
impl_from_IMFClockStateSink
(
iface
);
struct
sample_grabber
*
grabber
=
impl_from_IMFClockStateSink
(
iface
);
HRESULT
hr
=
S_OK
;
TRACE
(
"%p, %s, %f.
\n
"
,
iface
,
debugstr_time
(
systime
),
rate
);
TRACE
(
"%p, %s, %f.
\n
"
,
iface
,
debugstr_time
(
systime
),
rate
);
return
IMFSampleGrabberSinkCallback_OnClockSetRate
(
sample_grabber_get_callback
(
grabber
),
systime
,
rate
);
EnterCriticalSection
(
&
grabber
->
cs
);
if
(
grabber
->
is_shut_down
)
hr
=
MF_E_SHUTDOWN
;
else
IMFStreamSink_QueueEvent
(
&
grabber
->
IMFStreamSink_iface
,
MEStreamSinkRateChanged
,
&
GUID_NULL
,
S_OK
,
NULL
);
LeaveCriticalSection
(
&
grabber
->
cs
);
if
(
SUCCEEDED
(
hr
))
hr
=
IMFSampleGrabberSinkCallback_OnClockSetRate
(
sample_grabber_get_callback
(
grabber
),
systime
,
rate
);
return
hr
;
}
}
static
HRESULT
WINAPI
sample_grabber_events_QueryInterface
(
IMFMediaEventGenerator
*
iface
,
REFIID
riid
,
void
**
obj
)
static
HRESULT
WINAPI
sample_grabber_events_QueryInterface
(
IMFMediaEventGenerator
*
iface
,
REFIID
riid
,
void
**
obj
)
...
...
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