compile fix
This commit is contained in:
@@ -542,6 +542,7 @@ void MovieTexture_FFMpeg::DecoderThread()
|
|||||||
float ClockOffset = 0;
|
float ClockOffset = 0;
|
||||||
bool FrameSkipMode = false;
|
bool FrameSkipMode = false;
|
||||||
|
|
||||||
|
#if defined(_WINDOWS)
|
||||||
/* Movie decoding is bursty. We burst decode a frame, then we sleep, then we burst
|
/* Movie decoding is bursty. We burst decode a frame, then we sleep, then we burst
|
||||||
* to YUV->RGB convert, then we wait for the frame to move, and we repeat. */
|
* to YUV->RGB convert, then we wait for the frame to move, and we repeat. */
|
||||||
// if(!SetThreadPriority(GetCurrentThread(), THREAD_PRIORITY_BELOW_NORMAL))
|
// if(!SetThreadPriority(GetCurrentThread(), THREAD_PRIORITY_BELOW_NORMAL))
|
||||||
@@ -552,6 +553,7 @@ void MovieTexture_FFMpeg::DecoderThread()
|
|||||||
* frame, resulting in skips in the gameplay thread. */
|
* frame, resulting in skips in the gameplay thread. */
|
||||||
if(!SetThreadPriorityBoost(GetCurrentThread(), TRUE))
|
if(!SetThreadPriorityBoost(GetCurrentThread(), TRUE))
|
||||||
LOG->Warn(werr_ssprintf(GetLastError(), "SetThreadPriorityBoost failed"));
|
LOG->Warn(werr_ssprintf(GetLastError(), "SetThreadPriorityBoost failed"));
|
||||||
|
#endif
|
||||||
|
|
||||||
CHECKPOINT;
|
CHECKPOINT;
|
||||||
bool FirstDecodedFrame = true;
|
bool FirstDecodedFrame = true;
|
||||||
|
|||||||
Reference in New Issue
Block a user