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
0791cfb0
Commit
0791cfb0
authored
Jun 21, 2019
by
Zebediah Figura
Committed by
Alexandre Julliard
Jun 24, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
strmbase: Add default implementations of filter state change methods.
Signed-off-by:
Zebediah Figura
<
z.figura12@gmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
7fae37c0
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
42 additions
and
0 deletions
+42
-0
filter.c
dlls/strmbase/filter.c
+39
-0
strmbase.h
include/wine/strmbase.h
+3
-0
No files found.
dlls/strmbase/filter.c
View file @
0791cfb0
...
...
@@ -123,6 +123,45 @@ HRESULT WINAPI BaseFilterImpl_GetClassID(IBaseFilter * iface, CLSID * pClsid)
return
S_OK
;
}
HRESULT
WINAPI
BaseFilterImpl_Stop
(
IBaseFilter
*
iface
)
{
BaseFilter
*
filter
=
impl_from_IBaseFilter
(
iface
);
TRACE
(
"iface %p.
\n
"
,
iface
);
EnterCriticalSection
(
&
filter
->
csFilter
);
filter
->
state
=
State_Stopped
;
LeaveCriticalSection
(
&
filter
->
csFilter
);
return
S_OK
;
}
HRESULT
WINAPI
BaseFilterImpl_Pause
(
IBaseFilter
*
iface
)
{
BaseFilter
*
filter
=
impl_from_IBaseFilter
(
iface
);
TRACE
(
"iface %p.
\n
"
,
iface
);
EnterCriticalSection
(
&
filter
->
csFilter
);
filter
->
state
=
State_Paused
;
LeaveCriticalSection
(
&
filter
->
csFilter
);
return
S_OK
;
}
HRESULT
WINAPI
BaseFilterImpl_Run
(
IBaseFilter
*
iface
,
REFERENCE_TIME
start
)
{
BaseFilter
*
filter
=
impl_from_IBaseFilter
(
iface
);
TRACE
(
"iface %p, start %s.
\n
"
,
iface
,
wine_dbgstr_longlong
(
start
));
EnterCriticalSection
(
&
filter
->
csFilter
);
filter
->
state
=
State_Running
;
LeaveCriticalSection
(
&
filter
->
csFilter
);
return
S_OK
;
}
HRESULT
WINAPI
BaseFilterImpl_GetState
(
IBaseFilter
*
iface
,
DWORD
dwMilliSecsTimeout
,
FILTER_STATE
*
pState
)
{
BaseFilter
*
This
=
impl_from_IBaseFilter
(
iface
);
...
...
include/wine/strmbase.h
View file @
0791cfb0
...
...
@@ -184,6 +184,9 @@ typedef struct BaseFilterFuncTable
HRESULT
WINAPI
BaseFilterImpl_QueryInterface
(
IBaseFilter
*
iface
,
REFIID
riid
,
LPVOID
*
ppv
);
ULONG
WINAPI
BaseFilterImpl_AddRef
(
IBaseFilter
*
iface
);
ULONG
WINAPI
BaseFilterImpl_Release
(
IBaseFilter
*
iface
);
HRESULT
WINAPI
BaseFilterImpl_Stop
(
IBaseFilter
*
iface
);
HRESULT
WINAPI
BaseFilterImpl_Pause
(
IBaseFilter
*
iface
);
HRESULT
WINAPI
BaseFilterImpl_Run
(
IBaseFilter
*
iface
,
REFERENCE_TIME
start
);
HRESULT
WINAPI
BaseFilterImpl_GetClassID
(
IBaseFilter
*
iface
,
CLSID
*
pClsid
);
HRESULT
WINAPI
BaseFilterImpl_GetState
(
IBaseFilter
*
iface
,
DWORD
dwMilliSecsTimeout
,
FILTER_STATE
*
pState
);
HRESULT
WINAPI
BaseFilterImpl_SetSyncSource
(
IBaseFilter
*
iface
,
IReferenceClock
*
pClock
);
...
...
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