quartz: Add sanity check to mediaseeking setrate.

This commit is contained in:
Maarten Lankhorst 2008-03-21 14:54:33 -07:00 committed by Alexandre Julliard
parent b0c6a34358
commit c423511d2e

View File

@ -426,6 +426,12 @@ HRESULT WINAPI MediaSeekingImpl_SetRate(IMediaSeeking * iface, double dRate)
TRACE("(%e)\n", dRate);
if (dRate > 100 || dRate < .001)
{
FIXME("Excessive rate %e, ignoring\n", dRate);
return VFW_E_UNSUPPORTED_AUDIO;
}
EnterCriticalSection(This->crst);
This->dRate = dRate;
if (bChangeRate)