Skip to content

Commit

Permalink
mf: Return E_NOTIMPL from media session SetRate if rate is 0 (scrubbi…
Browse files Browse the repository at this point in the history
…ng).

CW-Bug-Id: #21498
  • Loading branch information
rbernon authored and ivyl committed Oct 31, 2022
1 parent 373922e commit 4924702
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions dlls/mf/session.c
Original file line number Diff line number Diff line change
Expand Up @@ -3859,6 +3859,13 @@ static HRESULT WINAPI session_rate_control_SetRate(IMFRateControl *iface, BOOL t

TRACE("%p, %d, %f.\n", iface, thin, rate);

if (!rate)
{
/* The Anacrusis fails to play its video if we succeed here */
ERR("Scrubbing not implemented!\n");
return E_NOTIMPL;
}

if (FAILED(hr = create_session_op(SESSION_CMD_SET_RATE, &op)))
return hr;

Expand Down

0 comments on commit 4924702

Please sign in to comment.