quartz: Correctly convert reference time to REFTIME in IBasicVideo::get_AvgTimePerFrame().
Signed-off-by: Zebediah Figura <z.figura12@gmail.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
11df839b69
commit
ead0e8e5cf
|
@ -2702,7 +2702,7 @@ static void test_basic_video(void)
|
|||
reftime = 0.0;
|
||||
hr = IBasicVideo_get_AvgTimePerFrame(video, &reftime);
|
||||
ok(hr == S_OK, "Got hr %#x.\n", hr);
|
||||
todo_wine ok(reftime == 0.02, "Got frame rate %.16e.\n", reftime);
|
||||
ok(reftime == 0.02, "Got frame rate %.16e.\n", reftime);
|
||||
|
||||
l = 0xdeadbeef;
|
||||
hr = IBasicVideo_get_BitRate(video, &l);
|
||||
|
|
|
@ -3717,7 +3717,7 @@ static void test_basic_video(void)
|
|||
reftime = 0.0;
|
||||
hr = IBasicVideo_get_AvgTimePerFrame(video, &reftime);
|
||||
ok(hr == S_OK, "Got hr %#x.\n", hr);
|
||||
todo_wine ok(compare_double(reftime, 0.02, 1 << 28), "Got frame rate %.16e.\n", reftime);
|
||||
ok(compare_double(reftime, 0.02, 1 << 28), "Got frame rate %.16e.\n", reftime);
|
||||
|
||||
l = 0xdeadbeef;
|
||||
hr = IBasicVideo_get_BitRate(video, &l);
|
||||
|
|
|
@ -755,7 +755,7 @@ static HRESULT WINAPI basic_video_get_AvgTimePerFrame(IBasicVideo *iface, REFTIM
|
|||
|
||||
TRACE("window %p, reftime %p.\n", window, reftime);
|
||||
|
||||
*reftime = get_video_format(window)->AvgTimePerFrame;
|
||||
*reftime = (double)get_video_format(window)->AvgTimePerFrame / 1e7;
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue