From a86ccf6f3ed452ba313d383afc49da5278e9f829 Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Tue, 30 Dec 2003 06:09:22 +0000 Subject: [PATCH] silence warning about SetThreadPriorityBoost on 9x --- stepmania/src/arch/MovieTexture/MovieTexture_FFMpeg.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/stepmania/src/arch/MovieTexture/MovieTexture_FFMpeg.cpp b/stepmania/src/arch/MovieTexture/MovieTexture_FFMpeg.cpp index e0a5fe60e3..8c435ce45f 100644 --- a/stepmania/src/arch/MovieTexture/MovieTexture_FFMpeg.cpp +++ b/stepmania/src/arch/MovieTexture/MovieTexture_FFMpeg.cpp @@ -652,8 +652,8 @@ void MovieTexture_FFMpeg::DecoderThread() /* Windows likes to boost priority when processes come out of a wait state. We don't * want that, since it'll result in us having a small priority boost after each movie * frame, resulting in skips in the gameplay thread. */ - if(!SetThreadPriorityBoost(GetCurrentThread(), TRUE)) - LOG->Warn(werr_ssprintf(GetLastError(), "SetThreadPriorityBoost failed")); + if( !SetThreadPriorityBoost(GetCurrentThread(), TRUE) && GetLastError() != ERROR_NOT_SUPPORTED ) + LOG->Warn( werr_ssprintf(GetLastError(), "SetThreadPriorityBoost failed") ); #endif CHECKPOINT;