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
d3ceabf4
Commit
d3ceabf4
authored
Jul 27, 2015
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Jul 28, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
qcap: There can be only ONE QueryInterface in VfwCapture!.
parent
6984db83
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
45 deletions
+10
-45
vfwcapture.c
dlls/qcap/vfwcapture.c
+10
-45
No files found.
dlls/qcap/vfwcapture.c
View file @
d3ceabf4
...
...
@@ -276,23 +276,12 @@ static const IBaseFilterVtbl VfwCapture_Vtbl =
};
/* AMStreamConfig interface, we only need to implement {G,S}etFormat */
static
HRESULT
WINAPI
AMStreamConfig_QueryInterface
(
IAMStreamConfig
*
iface
,
REFIID
riid
,
LPVOID
*
ppv
)
static
HRESULT
WINAPI
AMStreamConfig_QueryInterface
(
IAMStreamConfig
*
iface
,
REFIID
riid
,
void
**
ret_iface
)
{
VfwCapture
*
This
=
impl_from_IAMStreamConfig
(
iface
);
TRACE
(
"%p --> %s
\n
"
,
This
,
debugstr_guid
(
riid
));
if
(
IsEqualIID
(
riid
,
&
IID_IUnknown
)
||
IsEqualIID
(
riid
,
&
IID_IAMStreamConfig
))
{
IAMStreamConfig_AddRef
(
iface
);
*
ppv
=
iface
;
return
S_OK
;
}
FIXME
(
"No interface for iid %s
\n
"
,
debugstr_guid
(
riid
));
return
E_NOINTERFACE
;
return
IUnknown_QueryInterface
(
&
This
->
filter
.
IBaseFilter_iface
,
riid
,
ret_iface
);
}
static
ULONG
WINAPI
AMStreamConfig_AddRef
(
IAMStreamConfig
*
iface
)
...
...
@@ -391,20 +380,12 @@ static const IAMStreamConfigVtbl IAMStreamConfig_VTable =
AMStreamConfig_GetStreamCaps
};
static
HRESULT
WINAPI
AMVideoProcAmp_QueryInterface
(
IAMVideoProcAmp
*
iface
,
REFIID
riid
,
LPVOID
*
ppv
)
static
HRESULT
WINAPI
AMVideoProcAmp_QueryInterface
(
IAMVideoProcAmp
*
iface
,
REFIID
riid
,
void
**
ret_iface
)
{
if
(
IsEqualIID
(
riid
,
&
IID_IUnknown
)
||
IsEqualIID
(
riid
,
&
IID_IAMVideoProcAmp
))
{
*
ppv
=
iface
;
IAMVideoProcAmp_AddRef
(
iface
);
return
S_OK
;
}
VfwCapture
*
This
=
impl_from_IAMVideoProcAmp
(
iface
);
FIXME
(
"No interface for iid %s
\n
"
,
debugstr_guid
(
riid
));
return
E_NOINTERFACE
;
return
IUnknown_QueryInterface
(
&
This
->
filter
.
IBaseFilter_iface
,
riid
,
ret_iface
);
}
static
ULONG
WINAPI
AMVideoProcAmp_AddRef
(
IAMVideoProcAmp
*
iface
)
...
...
@@ -459,27 +440,11 @@ static const IAMVideoProcAmpVtbl IAMVideoProcAmp_VTable =
AMVideoProcAmp_Get
,
};
static
HRESULT
WINAPI
PPB_QueryInterface
(
IPersistPropertyBag
*
iface
,
REFIID
riid
,
LPVOID
*
ppv
)
static
HRESULT
WINAPI
PPB_QueryInterface
(
IPersistPropertyBag
*
iface
,
REFIID
riid
,
void
**
ret_iface
)
{
if
(
IsEqualIID
(
riid
,
&
IID_IUnknown
)
||
IsEqualIID
(
riid
,
&
IID_IPersist
)
||
IsEqualIID
(
riid
,
&
IID_IPersistPropertyBag
))
{
IPersistPropertyBag_AddRef
(
iface
);
*
ppv
=
iface
;
return
S_OK
;
}
if
(
IsEqualIID
(
riid
,
&
IID_IBaseFilter
))
{
/* FIXME: native devenum asks for IBaseFilter, should we return it? */
IPersistPropertyBag_AddRef
(
iface
);
*
ppv
=
iface
;
return
S_OK
;
}
VfwCapture
*
This
=
impl_from_IPersistPropertyBag
(
iface
);
FIXME
(
"No interface for iid %s
\n
"
,
debugstr_guid
(
riid
));
return
E_NOINTERFACE
;
return
IUnknown_QueryInterface
(
&
This
->
filter
.
IBaseFilter_iface
,
riid
,
ret_iface
);
}
static
ULONG
WINAPI
PPB_AddRef
(
IPersistPropertyBag
*
iface
)
...
...
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