1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-01-21 06:53:53 +00:00

Avoid a for(;;) construct

This commit is contained in:
Chris Robinson 2012-12-14 03:23:04 -08:00
parent 4d6c05f6cc
commit a6e627001a

View file

@ -662,11 +662,8 @@ void VideoState::decode_thread_loop(VideoState *self)
throw std::runtime_error("No streams to decode");
// main decode loop
for(;;)
while(!self->quit)
{
if(self->quit)
break;
if((self->audioStream >= 0 && self->audioq.size > MAX_AUDIOQ_SIZE) ||
(self->videoStream >= 0 && self->videoq.size > MAX_VIDEOQ_SIZE))
{