Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
672ce5c7
Commit
672ce5c7
authored
Jun 11, 2019
by
Nikolay Sivov
Committed by
Alexandre Julliard
Jun 11, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mf: Forward grabber clock state change calls to user callback.
Signed-off-by:
Nikolay Sivov
<
nsivov@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
2d4387c1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
6 deletions
+10
-6
samplegrabber.c
dlls/mf/samplegrabber.c
+10
-6
No files found.
dlls/mf/samplegrabber.c
View file @
672ce5c7
...
...
@@ -1127,7 +1127,7 @@ static HRESULT WINAPI sample_grabber_clock_sink_OnClockStart(IMFClockStateSink *
sample_grabber_set_state
(
grabber
,
SINK_STATE_RUNNING
);
return
S_OK
;
return
IMFSampleGrabberSinkCallback_OnClockStart
(
sample_grabber_get_callback
(
grabber
),
systime
,
offset
)
;
}
static
HRESULT
WINAPI
sample_grabber_clock_sink_OnClockStop
(
IMFClockStateSink
*
iface
,
MFTIME
systime
)
...
...
@@ -1138,14 +1138,16 @@ static HRESULT WINAPI sample_grabber_clock_sink_OnClockStop(IMFClockStateSink *i
sample_grabber_set_state
(
grabber
,
SINK_STATE_STOPPED
);
return
S_OK
;
return
IMFSampleGrabberSinkCallback_OnClockStop
(
sample_grabber_get_callback
(
grabber
),
systime
)
;
}
static
HRESULT
WINAPI
sample_grabber_clock_sink_OnClockPause
(
IMFClockStateSink
*
iface
,
MFTIME
systime
)
{
struct
sample_grabber
*
grabber
=
impl_from_IMFClockStateSink
(
iface
);
TRACE
(
"%p, %s.
\n
"
,
iface
,
wine_dbgstr_longlong
(
systime
));
return
S_OK
;
return
IMFSampleGrabberSinkCallback_OnClockPause
(
sample_grabber_get_callback
(
grabber
),
systime
)
;
}
static
HRESULT
WINAPI
sample_grabber_clock_sink_OnClockRestart
(
IMFClockStateSink
*
iface
,
MFTIME
systime
)
...
...
@@ -1156,14 +1158,16 @@ static HRESULT WINAPI sample_grabber_clock_sink_OnClockRestart(IMFClockStateSink
sample_grabber_set_state
(
grabber
,
SINK_STATE_RUNNING
);
return
S_OK
;
return
IMFSampleGrabberSinkCallback_OnClockRestart
(
sample_grabber_get_callback
(
grabber
),
systime
)
;
}
static
HRESULT
WINAPI
sample_grabber_clock_sink_OnClockSetRate
(
IMFClockStateSink
*
iface
,
MFTIME
systime
,
float
rate
)
{
FIXME
(
"%p, %s, %f.
\n
"
,
iface
,
wine_dbgstr_longlong
(
systime
),
rat
e
);
struct
sample_grabber
*
grabber
=
impl_from_IMFClockStateSink
(
ifac
e
);
return
E_NOTIMPL
;
TRACE
(
"%p, %s, %f.
\n
"
,
iface
,
wine_dbgstr_longlong
(
systime
),
rate
);
return
IMFSampleGrabberSinkCallback_OnClockSetRate
(
sample_grabber_get_callback
(
grabber
),
systime
,
rate
);
}
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