qedit/samplegrabber: Don't expose IMediaSeeking from the filter.
Signed-off-by: Zebediah Figura <z.figura12@gmail.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
e5c1567905
commit
975eabff33
|
@ -296,8 +296,6 @@ static HRESULT WINAPI SampleGrabber_QueryInterface(IUnknown *iface, REFIID riid,
|
||||||
*ppv = &This->filter.IBaseFilter_iface;
|
*ppv = &This->filter.IBaseFilter_iface;
|
||||||
else if (IsEqualIID(riid, &IID_ISampleGrabber))
|
else if (IsEqualIID(riid, &IID_ISampleGrabber))
|
||||||
*ppv = &This->ISampleGrabber_iface;
|
*ppv = &This->ISampleGrabber_iface;
|
||||||
else if (IsEqualIID(riid, &IID_IMediaSeeking))
|
|
||||||
return IUnknown_QueryInterface(This->seekthru_unk, riid, ppv);
|
|
||||||
else
|
else
|
||||||
WARN("(%p, %s,%p): not found\n", This, debugstr_guid(riid), ppv);
|
WARN("(%p, %s,%p): not found\n", This, debugstr_guid(riid), ppv);
|
||||||
|
|
||||||
|
@ -828,7 +826,7 @@ SampleGrabber_IPin_QueryInterface(IPin *iface, REFIID riid, void **ppv)
|
||||||
else if (IsEqualIID(riid, &IID_IMemInputPin))
|
else if (IsEqualIID(riid, &IID_IMemInputPin))
|
||||||
*ppv = &This->sg->IMemInputPin_iface;
|
*ppv = &This->sg->IMemInputPin_iface;
|
||||||
else if (IsEqualIID(riid, &IID_IMediaSeeking))
|
else if (IsEqualIID(riid, &IID_IMediaSeeking))
|
||||||
return IUnknown_QueryInterface(&This->sg->IUnknown_inner, riid, ppv);
|
return IUnknown_QueryInterface(This->sg->seekthru_unk, riid, ppv);
|
||||||
else if (IsEqualIID(riid, &IID_IMediaPosition))
|
else if (IsEqualIID(riid, &IID_IMediaPosition))
|
||||||
return IUnknown_QueryInterface(This->sg->seekthru_unk, riid, ppv);
|
return IUnknown_QueryInterface(This->sg->seekthru_unk, riid, ppv);
|
||||||
else {
|
else {
|
||||||
|
|
|
@ -63,7 +63,7 @@ static void test_interfaces(void)
|
||||||
check_interface(filter, &IID_IBasicVideo, FALSE);
|
check_interface(filter, &IID_IBasicVideo, FALSE);
|
||||||
check_interface(filter, &IID_IKsPropertySet, FALSE);
|
check_interface(filter, &IID_IKsPropertySet, FALSE);
|
||||||
check_interface(filter, &IID_IMediaPosition, FALSE);
|
check_interface(filter, &IID_IMediaPosition, FALSE);
|
||||||
todo_wine check_interface(filter, &IID_IMediaSeeking, FALSE);
|
check_interface(filter, &IID_IMediaSeeking, FALSE);
|
||||||
check_interface(filter, &IID_IMemInputPin, FALSE);
|
check_interface(filter, &IID_IMemInputPin, FALSE);
|
||||||
check_interface(filter, &IID_IPersistPropertyBag, FALSE);
|
check_interface(filter, &IID_IPersistPropertyBag, FALSE);
|
||||||
check_interface(filter, &IID_IPin, FALSE);
|
check_interface(filter, &IID_IPin, FALSE);
|
||||||
|
|
Loading…
Reference in New Issue