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
e145c56b
Commit
e145c56b
authored
Jun 21, 2019
by
Zebediah Figura
Committed by
Alexandre Julliard
Jun 24, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
quartz/filesource: Use strmbase filter state change methods.
Signed-off-by:
Zebediah Figura
<
z.figura12@gmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
0791cfb0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
47 deletions
+7
-47
filesource.c
dlls/quartz/filesource.c
+7
-47
No files found.
dlls/quartz/filesource.c
View file @
e145c56b
...
...
@@ -87,11 +87,6 @@ static inline AsyncReader *impl_from_BaseFilter(BaseFilter *iface)
return
CONTAINING_RECORD
(
iface
,
AsyncReader
,
filter
);
}
static
inline
AsyncReader
*
impl_from_IBaseFilter
(
IBaseFilter
*
iface
)
{
return
CONTAINING_RECORD
(
iface
,
AsyncReader
,
filter
.
IBaseFilter_iface
);
}
static
inline
AsyncReader
*
impl_from_IFileSourceFilter
(
IFileSourceFilter
*
iface
)
{
return
CONTAINING_RECORD
(
iface
,
AsyncReader
,
IFileSourceFilter_iface
);
...
...
@@ -500,50 +495,15 @@ HRESULT AsyncReader_create(IUnknown *outer, void **out)
return
S_OK
;
}
/** IMediaFilter methods **/
static
HRESULT
WINAPI
AsyncReader_Stop
(
IBaseFilter
*
iface
)
{
AsyncReader
*
This
=
impl_from_IBaseFilter
(
iface
);
TRACE
(
"%p->()
\n
"
,
This
);
This
->
filter
.
state
=
State_Stopped
;
return
S_OK
;
}
static
HRESULT
WINAPI
AsyncReader_Pause
(
IBaseFilter
*
iface
)
{
AsyncReader
*
This
=
impl_from_IBaseFilter
(
iface
);
TRACE
(
"%p->()
\n
"
,
This
);
This
->
filter
.
state
=
State_Paused
;
return
S_OK
;
}
static
HRESULT
WINAPI
AsyncReader_Run
(
IBaseFilter
*
iface
,
REFERENCE_TIME
tStart
)
{
AsyncReader
*
This
=
impl_from_IBaseFilter
(
iface
);
TRACE
(
"%p->(%s)
\n
"
,
This
,
wine_dbgstr_longlong
(
tStart
));
This
->
filter
.
state
=
State_Running
;
return
S_OK
;
}
static
const
IBaseFilterVtbl
AsyncReader_Vtbl
=
{
BaseFilterImpl_QueryInterface
,
BaseFilterImpl_AddRef
,
BaseFilterImpl_Release
,
BaseFilterImpl_GetClassID
,
AsyncReader
_Stop
,
AsyncReader
_Pause
,
AsyncReader
_Run
,
BaseFilterImpl
_Stop
,
BaseFilterImpl
_Pause
,
BaseFilterImpl
_Run
,
BaseFilterImpl_GetState
,
BaseFilterImpl_SetSyncSource
,
BaseFilterImpl_GetSyncSource
,
...
...
@@ -697,12 +657,12 @@ static inline AsyncReader *impl_from_IAsyncReader(IAsyncReader *iface)
return
CONTAINING_RECORD
(
iface
,
AsyncReader
,
IAsyncReader_iface
);
}
static
HRESULT
WINAPI
FileAsyncReaderPin_CheckMediaType
(
BasePin
*
pin
,
const
AM_MEDIA_TYPE
*
pmt
)
static
HRESULT
WINAPI
FileAsyncReaderPin_CheckMediaType
(
BasePin
*
iface
,
const
AM_MEDIA_TYPE
*
pmt
)
{
A
M_MEDIA_TYPE
*
pmt_filter
=
impl_from_IBaseFilter
(
pin
->
pinInfo
.
pFilter
)
->
pmt
;
A
syncReader
*
filter
=
impl_from_BasePin
(
iface
)
;
if
(
IsEqualGUID
(
&
pmt
->
majortype
,
&
pmt_filter
->
majortype
)
&&
IsEqualGUID
(
&
pmt
->
subtype
,
&
pmt_filter
->
subtype
))
if
(
IsEqualGUID
(
&
pmt
->
majortype
,
&
filter
->
pmt
->
majortype
)
&&
IsEqualGUID
(
&
pmt
->
subtype
,
&
filter
->
pmt
->
subtype
))
return
S_OK
;
return
S_FALSE
;
...
...
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