quartz/tests: Fix some tests on w7u.
Signed-off-by: Zebediah Figura <z.figura12@gmail.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
239a6392a7
commit
190fb605c3
|
@ -1048,9 +1048,9 @@ static HANDLE send_frame(IMemInputPin *sink)
|
||||||
|
|
||||||
hr = IMediaSample_GetPointer(sample, &data);
|
hr = IMediaSample_GetPointer(sample, &data);
|
||||||
ok(hr == S_OK, "Got hr %#x.\n", hr);
|
ok(hr == S_OK, "Got hr %#x.\n", hr);
|
||||||
memset(data, 0x55, 32 * 16 * 4);
|
memset(data, 0x55, IMediaSample_GetSize(sample));
|
||||||
|
|
||||||
hr = IMediaSample_SetActualDataLength(sample, 32 * 16 * 4);
|
hr = IMediaSample_SetActualDataLength(sample, IMediaSample_GetSize(sample));
|
||||||
ok(hr == S_OK, "Got hr %#x.\n", hr);
|
ok(hr == S_OK, "Got hr %#x.\n", hr);
|
||||||
|
|
||||||
start_time = 0;
|
start_time = 0;
|
||||||
|
@ -1350,6 +1350,10 @@ static void test_connect_pin(void)
|
||||||
{
|
{
|
||||||
vih.bmiHeader.biBitCount = 24;
|
vih.bmiHeader.biBitCount = 24;
|
||||||
hr = IFilterGraph2_ConnectDirect(graph, &source.source.pin.IPin_iface, pin, &req_mt);
|
hr = IFilterGraph2_ConnectDirect(graph, &source.source.pin.IPin_iface, pin, &req_mt);
|
||||||
|
/* w7u is also rather buggy with its allocator. Requesting a size of
|
||||||
|
* 32 * 16 * 4 succeeds and returns that size from SetProperties(), but
|
||||||
|
* the actual samples only have a size of 32 * 16 * 3. */
|
||||||
|
req_props.cbBuffer = 32 * 16 * 3;
|
||||||
}
|
}
|
||||||
ok(hr == S_OK, "Got hr %#x.\n", hr);
|
ok(hr == S_OK, "Got hr %#x.\n", hr);
|
||||||
hr = IFilterGraph2_Disconnect(graph, &source.source.pin.IPin_iface);
|
hr = IFilterGraph2_Disconnect(graph, &source.source.pin.IPin_iface);
|
||||||
|
|
Loading…
Reference in New Issue