[PATCH v2] qcap: implement and test VfwPin_CheckMediaType()

Zebediah Figura z.figura12 at gmail.com
Sun Apr 28 19:27:34 CDT 2019


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.



More information about the wine-devel mailing list