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
9706a70b
Commit
9706a70b
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 MEStreamSinkScrubSampleComplete event.
Signed-off-by:
Nikolay Sivov
<
nsivov@codeweavers.com
>
parent
ec7d032b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
0 deletions
+11
-0
samplegrabber.c
dlls/mf/samplegrabber.c
+11
-0
No files found.
dlls/mf/samplegrabber.c
View file @
9706a70b
...
...
@@ -83,6 +83,7 @@ struct sample_grabber
IUnknown
*
cancel_key
;
UINT32
ignore_clock
;
UINT64
sample_time_offset
;
float
rate
;
enum
sink_state
state
;
CRITICAL_SECTION
cs
;
};
...
...
@@ -1138,7 +1139,13 @@ static HRESULT sample_grabber_set_state(struct sample_grabber *grabber, enum sin
}
do_callback
=
state
!=
grabber
->
state
||
state
!=
SINK_STATE_PAUSED
;
if
(
do_callback
)
{
if
(
grabber
->
rate
==
0
.
0
f
&&
state
==
SINK_STATE_RUNNING
)
IMFStreamSink_QueueEvent
(
&
grabber
->
IMFStreamSink_iface
,
MEStreamSinkScrubSampleComplete
,
&
GUID_NULL
,
S_OK
,
NULL
);
IMFStreamSink_QueueEvent
(
&
grabber
->
IMFStreamSink_iface
,
events
[
state
],
&
GUID_NULL
,
S_OK
,
NULL
);
}
grabber
->
state
=
state
;
}
}
...
...
@@ -1212,7 +1219,10 @@ static HRESULT WINAPI sample_grabber_clock_sink_OnClockSetRate(IMFClockStateSink
if
(
grabber
->
is_shut_down
)
hr
=
MF_E_SHUTDOWN
;
else
{
IMFStreamSink_QueueEvent
(
&
grabber
->
IMFStreamSink_iface
,
MEStreamSinkRateChanged
,
&
GUID_NULL
,
S_OK
,
NULL
);
grabber
->
rate
=
rate
;
}
LeaveCriticalSection
(
&
grabber
->
cs
);
...
...
@@ -1433,6 +1443,7 @@ static HRESULT sample_grabber_create_object(IMFAttributes *attributes, void *use
object
->
IMFMediaTypeHandler_iface
.
lpVtbl
=
&
sample_grabber_stream_type_handler_vtbl
;
object
->
timer_callback
.
lpVtbl
=
&
sample_grabber_stream_timer_callback_vtbl
;
object
->
refcount
=
1
;
object
->
rate
=
1
.
0
f
;
if
(
FAILED
(
IMFSampleGrabberSinkCallback_QueryInterface
(
context
->
callback
,
&
IID_IMFSampleGrabberSinkCallback2
,
(
void
**
)
&
object
->
callback2
)))
{
...
...
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