On 4/24/19 1:18 AM, Damjan Jovanovic wrote:
> + memset(&empty_media_type, 0, sizeof(empty_media_type));
> + hr = IPin_QueryAccept(pin, &empty_media_type);
> + ok(hr != S_OK, "Got hr %#x.\n", hr);
> +
> + empty_media_type.majortype = MEDIATYPE_Video;
> + hr = IPin_QueryAccept(pin, &empty_media_type);
> + ok(hr != S_OK, "Got hr %#x.\n", hr);
> +
> + empty_media_type.formattype = FORMAT_VideoInfo;
> + hr = IPin_QueryAccept(pin, &empty_media_type);
> + ok(hr != S_OK, "Got hr %#x.\n", hr);
> +
> + empty_media_type.formattype = FORMAT_None;
> + hr = IPin_QueryAccept(pin, &empty_media_type);
> + ok(hr != S_OK, "Got hr %#x.\n", hr);
Is it possible to test for S_FALSE directly here? I unfortunately don't
have a camera with me at the moment to test.
Mine returns E_FAIL and others.