Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
144e97bb
Commit
144e97bb
authored
May 30, 2019
by
Zebediah Figura
Committed by
Alexandre Julliard
May 31, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
quartz/mpegsplit: Use BaseFilterImpl_QueryInterface().
Signed-off-by:
Zebediah Figura
<
z.figura12@gmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
9cb66f8d
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
28 deletions
+16
-28
mpegsplit.c
dlls/quartz/mpegsplit.c
+16
-28
No files found.
dlls/quartz/mpegsplit.c
View file @
144e97bb
...
@@ -764,36 +764,9 @@ static HRESULT MPEGSplitter_first_request(LPVOID iface)
...
@@ -764,36 +764,9 @@ static HRESULT MPEGSplitter_first_request(LPVOID iface)
return
hr
;
return
hr
;
}
}
static
HRESULT
WINAPI
MPEGSplitter_QueryInterface
(
IBaseFilter
*
iface
,
REFIID
riid
,
void
**
ppv
)
{
MPEGSplitterImpl
*
This
=
impl_from_IBaseFilter
(
iface
);
TRACE
(
"(%s, %p)
\n
"
,
qzdebugstr_guid
(
riid
),
ppv
);
*
ppv
=
NULL
;
if
(
IsEqualIID
(
riid
,
&
IID_IUnknown
)
||
IsEqualIID
(
riid
,
&
IID_IPersist
)
||
IsEqualIID
(
riid
,
&
IID_IMediaFilter
)
||
IsEqualIID
(
riid
,
&
IID_IBaseFilter
)
)
*
ppv
=
iface
;
else
if
(
IsEqualIID
(
riid
,
&
IID_IAMStreamSelect
)
)
*
ppv
=
&
This
->
IAMStreamSelect_iface
;
if
(
*
ppv
)
{
IBaseFilter_AddRef
(
iface
);
return
S_OK
;
}
if
(
!
IsEqualIID
(
riid
,
&
IID_IPin
)
&&
!
IsEqualIID
(
riid
,
&
IID_IVideoWindow
))
FIXME
(
"No interface for %s!
\n
"
,
qzdebugstr_guid
(
riid
));
return
E_NOINTERFACE
;
}
static
const
IBaseFilterVtbl
MPEGSplitter_Vtbl
=
static
const
IBaseFilterVtbl
MPEGSplitter_Vtbl
=
{
{
MPEGSplitter
_QueryInterface
,
BaseFilterImpl
_QueryInterface
,
BaseFilterImpl_AddRef
,
BaseFilterImpl_AddRef
,
BaseFilterImpl_Release
,
BaseFilterImpl_Release
,
BaseFilterImpl_GetClassID
,
BaseFilterImpl_GetClassID
,
...
@@ -874,10 +847,25 @@ static void mpeg_splitter_destroy(BaseFilter *iface)
...
@@ -874,10 +847,25 @@ static void mpeg_splitter_destroy(BaseFilter *iface)
Parser_Destroy
(
&
filter
->
Parser
);
Parser_Destroy
(
&
filter
->
Parser
);
}
}
static
HRESULT
mpeg_splitter_query_interface
(
BaseFilter
*
iface
,
REFIID
iid
,
void
**
out
)
{
MPEGSplitterImpl
*
filter
=
impl_from_IBaseFilter
(
&
iface
->
IBaseFilter_iface
);
if
(
IsEqualGUID
(
iid
,
&
IID_IAMStreamSelect
))
{
*
out
=
&
filter
->
IAMStreamSelect_iface
;
IUnknown_AddRef
((
IUnknown
*
)
*
out
);
return
S_OK
;
}
return
E_NOINTERFACE
;
}
static
const
BaseFilterFuncTable
mpeg_splitter_func_table
=
static
const
BaseFilterFuncTable
mpeg_splitter_func_table
=
{
{
.
filter_get_pin
=
parser_get_pin
,
.
filter_get_pin
=
parser_get_pin
,
.
filter_destroy
=
mpeg_splitter_destroy
,
.
filter_destroy
=
mpeg_splitter_destroy
,
.
filter_query_interface
=
mpeg_splitter_query_interface
,
};
};
HRESULT
MPEGSplitter_create
(
IUnknown
*
pUnkOuter
,
LPVOID
*
ppv
)
HRESULT
MPEGSplitter_create
(
IUnknown
*
pUnkOuter
,
LPVOID
*
ppv
)
...
...
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