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:
parent
4d6c05f6cc
commit
a6e627001a
1 changed files with 1 additions and 4 deletions
|
@ -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…
Reference in a new issue