quartz/tests: Bail out if connecting returns E_FAIL.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=47911 Signed-off-by: Zebediah Figura <z.figura12@gmail.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
71e96bd3b7
commit
d4a0c0f502
|
@ -941,7 +941,7 @@ static HRESULT WINAPI testsource_AttemptConnection(struct strmbase_source *iface
|
||||||
|
|
||||||
if (FAILED(hr = IPin_ReceiveConnection(peer, &iface->pin.IPin_iface, mt)))
|
if (FAILED(hr = IPin_ReceiveConnection(peer, &iface->pin.IPin_iface, mt)))
|
||||||
{
|
{
|
||||||
ok(hr == VFW_E_TYPE_NOT_ACCEPTED, "Got hr %#x.\n", hr);
|
ok(hr == VFW_E_TYPE_NOT_ACCEPTED || hr == E_FAIL, "Got hr %#x.\n", hr);
|
||||||
IPin_Release(peer);
|
IPin_Release(peer);
|
||||||
iface->pin.peer = NULL;
|
iface->pin.peer = NULL;
|
||||||
FreeMediaType(&iface->pin.mtCurrent);
|
FreeMediaType(&iface->pin.mtCurrent);
|
||||||
|
@ -1016,6 +1016,11 @@ static void test_connect_pin(void)
|
||||||
vih.bmiHeader.biBitCount = bpp_tests[j];
|
vih.bmiHeader.biBitCount = bpp_tests[j];
|
||||||
|
|
||||||
hr = IFilterGraph2_ConnectDirect(graph, &source.source.pin.IPin_iface, pin, &req_mt);
|
hr = IFilterGraph2_ConnectDirect(graph, &source.source.pin.IPin_iface, pin, &req_mt);
|
||||||
|
if (hr == E_FAIL)
|
||||||
|
{
|
||||||
|
skip("Got E_FAIL when connecting.\n");
|
||||||
|
goto out;
|
||||||
|
}
|
||||||
ok(hr == S_OK, "Got hr %#x for subtype %s and bpp %u.\n", hr,
|
ok(hr == S_OK, "Got hr %#x for subtype %s and bpp %u.\n", hr,
|
||||||
wine_dbgstr_guid(subtype_tests[i]), bpp_tests[j]);
|
wine_dbgstr_guid(subtype_tests[i]), bpp_tests[j]);
|
||||||
|
|
||||||
|
@ -1087,6 +1092,7 @@ static void test_connect_pin(void)
|
||||||
hr = IPin_ConnectionMediaType(pin, &mt);
|
hr = IPin_ConnectionMediaType(pin, &mt);
|
||||||
ok(hr == VFW_E_NOT_CONNECTED, "Got hr %#x.\n", hr);
|
ok(hr == VFW_E_NOT_CONNECTED, "Got hr %#x.\n", hr);
|
||||||
|
|
||||||
|
out:
|
||||||
IPin_Release(pin);
|
IPin_Release(pin);
|
||||||
ref = IFilterGraph2_Release(graph);
|
ref = IFilterGraph2_Release(graph);
|
||||||
ok(!ref, "Got outstanding refcount %d.\n", ref);
|
ok(!ref, "Got outstanding refcount %d.\n", ref);
|
||||||
|
|
Loading…
Reference in New Issue