mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-09-21 10:59:21 -04:00
Avoid a for(;;) construct
This commit is contained in:
parent
4d6c05f6cc
commit
a6e627001a
@ -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))
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user