Signed-off-by: Giovanni Mascellani gmascellani@codeweavers.com --- dlls/mfplat/tests/mfplat.c | 8 +++----- dlls/winegstreamer/media_source.c | 10 ++-------- 2 files changed, 5 insertions(+), 13 deletions(-)
diff --git a/dlls/mfplat/tests/mfplat.c b/dlls/mfplat/tests/mfplat.c index 06560e3a529..3c474f77c42 100644 --- a/dlls/mfplat/tests/mfplat.c +++ b/dlls/mfplat/tests/mfplat.c @@ -756,13 +756,12 @@ static void test_source_resolver(void)
hr = IMFRateSupport_GetFastestRate(rate_support, MFRATE_FORWARD, FALSE, &rate); ok(hr == S_OK, "Failed to query fastest rate, hr %#x.\n", hr); -todo_wine ok(rate == 1e6f, "Unexpected fastest rate %f.\n", rate); hr = IMFRateSupport_GetFastestRate(rate_support, MFRATE_FORWARD, TRUE, &rate); -todo_wine { ok(hr == S_OK, "Failed to query fastest rate, hr %#x.\n", hr); ok(rate == 1e6f, "Unexpected fastest rate %f.\n", rate); hr = IMFRateSupport_GetFastestRate(rate_support, MFRATE_REVERSE, FALSE, &rate); +todo_wine { ok(hr == S_OK, "Failed to query fastest rate, hr %#x.\n", hr); ok(rate == -1e6f, "Unexpected fastest rate %f.\n", rate); hr = IMFRateSupport_GetFastestRate(rate_support, MFRATE_REVERSE, TRUE, &rate); @@ -772,19 +771,18 @@ todo_wine {
hr = IMFRateSupport_GetSlowestRate(rate_support, MFRATE_FORWARD, FALSE, &rate); ok(hr == S_OK, "Failed to query slowest rate, hr %#x.\n", hr); -todo_wine ok(rate == 0.0f, "Unexpected slowest rate %f.\n", rate); hr = IMFRateSupport_GetSlowestRate(rate_support, MFRATE_FORWARD, TRUE, &rate); -todo_wine { ok(hr == S_OK, "Failed to query slowest rate, hr %#x.\n", hr); ok(rate == 0.0f, "Unexpected slowest rate %f.\n", rate); hr = IMFRateSupport_GetSlowestRate(rate_support, MFRATE_REVERSE, FALSE, &rate); +todo_wine ok(hr == S_OK, "Failed to query slowest rate, hr %#x.\n", hr); ok(rate == 0.0f, "Unexpected slowest rate %f.\n", rate); hr = IMFRateSupport_GetSlowestRate(rate_support, MFRATE_REVERSE, TRUE, &rate); +todo_wine ok(hr == S_OK, "Failed to query slowest rate, hr %#x.\n", hr); ok(rate == 0.0f, "Unexpected slowest rate %f.\n", rate); -}
hr = IMFGetService_GetService(get_service, &MF_RATE_CONTROL_SERVICE, &IID_IMFRateControl, (void**)&rate_control); ok(hr == S_OK, "Failed to get rate control interface, hr %#x.\n", hr); diff --git a/dlls/winegstreamer/media_source.c b/dlls/winegstreamer/media_source.c index f77a8dfe78a..5ce759e9789 100644 --- a/dlls/winegstreamer/media_source.c +++ b/dlls/winegstreamer/media_source.c @@ -922,10 +922,7 @@ static HRESULT WINAPI media_source_rate_support_GetSlowestRate(IMFRateSupport *i if (direction == MFRATE_REVERSE) return MF_E_REVERSE_UNSUPPORTED;
- if (thin) - return MF_E_THINNING_UNSUPPORTED; - - *rate = 1.0f; + *rate = 0.0f;
return S_OK; } @@ -937,10 +934,7 @@ static HRESULT WINAPI media_source_rate_support_GetFastestRate(IMFRateSupport *i if (direction == MFRATE_REVERSE) return MF_E_REVERSE_UNSUPPORTED;
- if (thin) - return MF_E_THINNING_UNSUPPORTED; - - *rate = 1.0f; + *rate = 1e6f;
return S_OK; }