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
13626d06
Commit
13626d06
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 IMediaEventSink iface.
parent
e97b34b2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
9 deletions
+15
-9
filtergraph.c
dlls/quartz/filtergraph.c
+15
-9
No files found.
dlls/quartz/filtergraph.c
View file @
13626d06
...
...
@@ -160,7 +160,7 @@ typedef struct _IFilterGraphImpl {
IVideoWindow
IVideoWindow_iface
;
IMediaEventEx
IMediaEventEx_iface
;
IMediaFilter
IMediaFilter_iface
;
const
IMediaEventSinkVtbl
*
IMediaEventSink_vtbl
;
IMediaEventSink
IMediaEventSink_iface
;
const
IGraphConfigVtbl
*
IGraphConfig_vtbl
;
const
IMediaPositionVtbl
*
IMediaPosition_vtbl
;
const
IUnknownVtbl
*
IInner_vtbl
;
...
...
@@ -256,7 +256,7 @@ static HRESULT WINAPI FilterGraphInner_QueryInterface(IUnknown * iface,
*
ppvObj
=
&
This
->
IMediaFilter_iface
;
TRACE
(
" returning IMediaFilter interface (%p)
\n
"
,
*
ppvObj
);
}
else
if
(
IsEqualGUID
(
&
IID_IMediaEventSink
,
riid
))
{
*
ppvObj
=
&
(
This
->
IMediaEventSink_vtbl
)
;
*
ppvObj
=
&
This
->
IMediaEventSink_iface
;
TRACE
(
" returning IMediaEventSink interface (%p)
\n
"
,
*
ppvObj
);
}
else
if
(
IsEqualGUID
(
&
IID_IGraphConfig
,
riid
))
{
*
ppvObj
=
&
(
This
->
IGraphConfig_vtbl
);
...
...
@@ -5153,30 +5153,36 @@ static const IMediaFilterVtbl IMediaFilter_VTable =
MediaFilter_GetSyncSource
};
static
HRESULT
WINAPI
MediaEventSink_QueryInterface
(
IMediaEventSink
*
iface
,
REFIID
riid
,
LPVOID
*
ppv
)
static
inline
IFilterGraphImpl
*
impl_from_IMediaEventSink
(
IMediaEventSink
*
iface
)
{
ICOM_THIS_MULTI
(
IFilterGraphImpl
,
IMediaEventSink_vtbl
,
iface
);
return
CONTAINING_RECORD
(
iface
,
IFilterGraphImpl
,
IMediaEventSink_iface
);
}
static
HRESULT
WINAPI
MediaEventSink_QueryInterface
(
IMediaEventSink
*
iface
,
REFIID
riid
,
void
**
ppv
)
{
IFilterGraphImpl
*
This
=
impl_from_IMediaEventSink
(
iface
);
return
Filtergraph_QueryInterface
(
This
,
riid
,
ppv
);
}
static
ULONG
WINAPI
MediaEventSink_AddRef
(
IMediaEventSink
*
iface
)
{
I
COM_THIS_MULTI
(
IFilterGraphImpl
,
IMediaEventSink_vtbl
,
iface
);
I
FilterGraphImpl
*
This
=
impl_from_IMediaEventSink
(
iface
);
return
Filtergraph_AddRef
(
This
);
}
static
ULONG
WINAPI
MediaEventSink_Release
(
IMediaEventSink
*
iface
)
{
I
COM_THIS_MULTI
(
IFilterGraphImpl
,
IMediaEventSink_vtbl
,
iface
);
I
FilterGraphImpl
*
This
=
impl_from_IMediaEventSink
(
iface
);
return
Filtergraph_Release
(
This
);
}
static
HRESULT
WINAPI
MediaEventSink_Notify
(
IMediaEventSink
*
iface
,
LONG
EventCode
,
LONG_PTR
EventParam1
,
LONG_PTR
EventParam2
)
static
HRESULT
WINAPI
MediaEventSink_Notify
(
IMediaEventSink
*
iface
,
LONG
EventCode
,
LONG_PTR
EventParam1
,
LONG_PTR
EventParam2
)
{
I
COM_THIS_MULTI
(
IFilterGraphImpl
,
IMediaEventSink_vtbl
,
iface
);
I
FilterGraphImpl
*
This
=
impl_from_IMediaEventSink
(
iface
);
Event
evt
;
TRACE
(
"(%p/%p)->(%d, %ld, %ld)
\n
"
,
This
,
iface
,
EventCode
,
EventParam1
,
EventParam2
);
...
...
@@ -5462,7 +5468,7 @@ HRESULT FilterGraph_create(IUnknown *pUnkOuter, LPVOID *ppObj)
fimpl
->
IVideoWindow_iface
.
lpVtbl
=
&
IVideoWindow_VTable
;
fimpl
->
IMediaEventEx_iface
.
lpVtbl
=
&
IMediaEventEx_VTable
;
fimpl
->
IMediaFilter_iface
.
lpVtbl
=
&
IMediaFilter_VTable
;
fimpl
->
IMediaEventSink_
v
tbl
=
&
IMediaEventSink_VTable
;
fimpl
->
IMediaEventSink_
iface
.
lpV
tbl
=
&
IMediaEventSink_VTable
;
fimpl
->
IGraphConfig_vtbl
=
&
IGraphConfig_VTable
;
fimpl
->
IMediaPosition_vtbl
=
&
IMediaPosition_VTable
;
fimpl
->
ref
=
1
;
...
...
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