winegstreamer: Raise MESourceRateChanged on SetRate().

Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Nikolay Sivov 2022-02-15 18:02:12 +03:00 committed by Alexandre Julliard
parent baf66e12ef
commit a1e125e4fb
1 changed files with 3 additions and 1 deletions

View File

@ -1109,6 +1109,8 @@ static ULONG WINAPI media_source_rate_control_Release(IMFRateControl *iface)
static HRESULT WINAPI media_source_rate_control_SetRate(IMFRateControl *iface, BOOL thin, float rate)
{
struct media_source *source = impl_from_IMFRateControl(iface);
FIXME("%p, %d, %f.\n", iface, thin, rate);
if (rate < 0.0f)
@ -1120,7 +1122,7 @@ static HRESULT WINAPI media_source_rate_control_SetRate(IMFRateControl *iface, B
if (rate != 1.0f)
return MF_E_UNSUPPORTED_RATE;
return S_OK;
return IMFMediaEventQueue_QueueEventParamVar(source->event_queue, MESourceRateChanged, &GUID_NULL, S_OK, NULL);
}
static HRESULT WINAPI media_source_rate_control_GetRate(IMFRateControl *iface, BOOL *thin, float *rate)