[PATCH v2] qcap: implement and test VfwPin_CheckMediaType()
Damjan Jovanovic
damjan.jov at gmail.com
Mon Apr 29 00:15:24 CDT 2019
On Mon, Apr 29, 2019 at 2:28 AM Zebediah Figura <z.figura12 at gmail.com>
wrote:
> 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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.winehq.org/pipermail/wine-devel/attachments/20190429/bf7c7703/attachment.html>
More information about the wine-devel
mailing list