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
e97b34b2
Commit
e97b34b2
authored
Jun 30, 2011
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Jul 01, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
quartz: COM cleanup for the IMediaFilter iface.
parent
eca149bb
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
27 additions
and
16 deletions
+27
-16
filtergraph.c
dlls/quartz/filtergraph.c
+27
-16
No files found.
dlls/quartz/filtergraph.c
View file @
e97b34b2
...
...
@@ -159,7 +159,7 @@ typedef struct _IFilterGraphImpl {
IBasicVideo2
IBasicVideo2_iface
;
IVideoWindow
IVideoWindow_iface
;
IMediaEventEx
IMediaEventEx_iface
;
const
IMediaFilterVtbl
*
IMediaFilter_vtbl
;
IMediaFilter
IMediaFilter_iface
;
const
IMediaEventSinkVtbl
*
IMediaEventSink_vtbl
;
const
IGraphConfigVtbl
*
IGraphConfig_vtbl
;
const
IMediaPositionVtbl
*
IMediaPosition_vtbl
;
...
...
@@ -253,7 +253,7 @@ static HRESULT WINAPI FilterGraphInner_QueryInterface(IUnknown * iface,
TRACE
(
" returning IMediaEvent(Ex) interface (%p)
\n
"
,
*
ppvObj
);
}
else
if
(
IsEqualGUID
(
&
IID_IMediaFilter
,
riid
)
||
IsEqualGUID
(
&
IID_IPersist
,
riid
))
{
*
ppvObj
=
&
(
This
->
IMediaFilter_vtbl
)
;
*
ppvObj
=
&
This
->
IMediaFilter_iface
;
TRACE
(
" returning IMediaFilter interface (%p)
\n
"
,
*
ppvObj
);
}
else
if
(
IsEqualGUID
(
&
IID_IMediaEventSink
,
riid
))
{
*
ppvObj
=
&
(
This
->
IMediaEventSink_vtbl
);
...
...
@@ -492,7 +492,7 @@ static HRESULT WINAPI FilterGraph2_RemoveFilter(IFilterGraph2 *iface, IBaseFilte
if
(
This
->
defaultclock
&&
This
->
refClockProvider
==
pFilter
)
{
IMediaFilter_SetSyncSource
(
(
IMediaFilter
*
)
&
This
->
IMediaFilter_vtbl
,
NULL
);
IMediaFilter_SetSyncSource
(
&
This
->
IMediaFilter_iface
,
NULL
);
This
->
defaultclock
=
1
;
}
...
...
@@ -801,7 +801,7 @@ static HRESULT WINAPI FilterGraph2_SetDefaultSyncSource(IFilterGraph2 *iface)
if
(
SUCCEEDED
(
hr
))
{
hr
=
IMediaFilter_SetSyncSource
(
(
IMediaFilter
*
)
&
(
This
->
IMediaFilter_vtbl
)
,
pClock
);
hr
=
IMediaFilter_SetSyncSource
(
&
This
->
IMediaFilter_iface
,
pClock
);
This
->
defaultclock
=
TRUE
;
IReferenceClock_Release
(
pClock
);
}
...
...
@@ -5003,23 +5003,28 @@ static const IMediaEventExVtbl IMediaEventEx_VTable =
};
static
HRESULT
WINAPI
MediaFilter_QueryInterface
(
IMediaFilter
*
iface
,
REFIID
riid
,
LPVOID
*
ppv
)
static
inline
IFilterGraphImpl
*
impl_from_IMediaFilter
(
IMediaFilter
*
iface
)
{
ICOM_THIS_MULTI
(
IFilterGraphImpl
,
IMediaFilter_vtbl
,
iface
);
return
CONTAINING_RECORD
(
iface
,
IFilterGraphImpl
,
IMediaFilter_iface
);
}
static
HRESULT
WINAPI
MediaFilter_QueryInterface
(
IMediaFilter
*
iface
,
REFIID
riid
,
void
**
ppv
)
{
IFilterGraphImpl
*
This
=
impl_from_IMediaFilter
(
iface
);
return
Filtergraph_QueryInterface
(
This
,
riid
,
ppv
);
}
static
ULONG
WINAPI
MediaFilter_AddRef
(
IMediaFilter
*
iface
)
{
I
COM_THIS_MULTI
(
IFilterGraphImpl
,
IMediaFilter_vtbl
,
iface
);
I
FilterGraphImpl
*
This
=
impl_from_IMediaFilter
(
iface
);
return
Filtergraph_AddRef
(
This
);
}
static
ULONG
WINAPI
MediaFilter_Release
(
IMediaFilter
*
iface
)
{
I
COM_THIS_MULTI
(
IFilterGraphImpl
,
IMediaFilter_vtbl
,
iface
);
I
FilterGraphImpl
*
This
=
impl_from_IMediaFilter
(
iface
);
return
Filtergraph_Release
(
This
);
}
...
...
@@ -5033,34 +5038,40 @@ static HRESULT WINAPI MediaFilter_GetClassID(IMediaFilter *iface, CLSID * pClass
static
HRESULT
WINAPI
MediaFilter_Stop
(
IMediaFilter
*
iface
)
{
ICOM_THIS_MULTI
(
IFilterGraphImpl
,
IMediaFilter_vtbl
,
iface
);
IFilterGraphImpl
*
This
=
impl_from_IMediaFilter
(
iface
);
return
MediaControl_Stop
(
&
This
->
IMediaControl_iface
);
}
static
HRESULT
WINAPI
MediaFilter_Pause
(
IMediaFilter
*
iface
)
{
ICOM_THIS_MULTI
(
IFilterGraphImpl
,
IMediaFilter_vtbl
,
iface
);
IFilterGraphImpl
*
This
=
impl_from_IMediaFilter
(
iface
);
return
MediaControl_Pause
(
&
This
->
IMediaControl_iface
);
}
static
HRESULT
WINAPI
MediaFilter_Run
(
IMediaFilter
*
iface
,
REFERENCE_TIME
tStart
)
{
ICOM_THIS_MULTI
(
IFilterGraphImpl
,
IMediaFilter_vtbl
,
iface
);
IFilterGraphImpl
*
This
=
impl_from_IMediaFilter
(
iface
);
if
(
tStart
)
FIXME
(
"Run called with non-null tStart: %x%08x
\n
"
,
(
int
)(
tStart
>>
32
),
(
int
)
tStart
);
return
MediaControl_Run
(
&
This
->
IMediaControl_iface
);
}
static
HRESULT
WINAPI
MediaFilter_GetState
(
IMediaFilter
*
iface
,
DWORD
dwMsTimeout
,
FILTER_STATE
*
pState
)
static
HRESULT
WINAPI
MediaFilter_GetState
(
IMediaFilter
*
iface
,
DWORD
dwMsTimeout
,
FILTER_STATE
*
pState
)
{
ICOM_THIS_MULTI
(
IFilterGraphImpl
,
IMediaFilter_vtbl
,
iface
);
IFilterGraphImpl
*
This
=
impl_from_IMediaFilter
(
iface
);
return
MediaControl_GetState
(
&
This
->
IMediaControl_iface
,
dwMsTimeout
,
(
OAFilterState
*
)
pState
);
}
static
HRESULT
WINAPI
MediaFilter_SetSyncSource
(
IMediaFilter
*
iface
,
IReferenceClock
*
pClock
)
{
I
COM_THIS_MULTI
(
IFilterGraphImpl
,
IMediaFilter_vtbl
,
iface
);
I
FilterGraphImpl
*
This
=
impl_from_IMediaFilter
(
iface
);
HRESULT
hr
=
S_OK
;
int
i
;
...
...
@@ -5110,7 +5121,7 @@ static HRESULT WINAPI MediaFilter_SetSyncSource(IMediaFilter *iface, IReferenceC
static
HRESULT
WINAPI
MediaFilter_GetSyncSource
(
IMediaFilter
*
iface
,
IReferenceClock
**
ppClock
)
{
I
COM_THIS_MULTI
(
IFilterGraphImpl
,
IMediaFilter_vtbl
,
iface
);
I
FilterGraphImpl
*
This
=
impl_from_IMediaFilter
(
iface
);
TRACE
(
"(%p/%p)->(%p)
\n
"
,
iface
,
This
,
ppClock
);
...
...
@@ -5450,7 +5461,7 @@ HRESULT FilterGraph_create(IUnknown *pUnkOuter, LPVOID *ppObj)
fimpl
->
IBasicVideo2_iface
.
lpVtbl
=
&
IBasicVideo_VTable
;
fimpl
->
IVideoWindow_iface
.
lpVtbl
=
&
IVideoWindow_VTable
;
fimpl
->
IMediaEventEx_iface
.
lpVtbl
=
&
IMediaEventEx_VTable
;
fimpl
->
IMediaFilter_
v
tbl
=
&
IMediaFilter_VTable
;
fimpl
->
IMediaFilter_
iface
.
lpV
tbl
=
&
IMediaFilter_VTable
;
fimpl
->
IMediaEventSink_vtbl
=
&
IMediaEventSink_VTable
;
fimpl
->
IGraphConfig_vtbl
=
&
IGraphConfig_VTable
;
fimpl
->
IMediaPosition_vtbl
=
&
IMediaPosition_VTable
;
...
...
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