Maarten Lankhorst : quartz: Add sanity check to mediaseeking setrate.
Alexandre Julliard
julliard at winehq.org
Mon Mar 24 07:54:27 CDT 2008
Module: wine
Branch: master
Commit: c423511d2ee5d3ece6c91286109c91030dfd258a
URL: http://source.winehq.org/git/wine.git/?a=commit;h=c423511d2ee5d3ece6c91286109c91030dfd258a
Author: Maarten Lankhorst <m.b.lankhorst at gmail.com>
Date: Fri Mar 21 14:54:33 2008 -0700
quartz: Add sanity check to mediaseeking setrate.
---
dlls/quartz/control.c | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
diff --git a/dlls/quartz/control.c b/dlls/quartz/control.c
index 6b22bf4..d32d054 100644
--- a/dlls/quartz/control.c
+++ b/dlls/quartz/control.c
@@ -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)
More information about the wine-cvs
mailing list