forked from teamnwah/openmw-tes3coop
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");
|
throw std::runtime_error("No streams to decode");
|
||||||
|
|
||||||
// main decode loop
|
// main decode loop
|
||||||
for(;;)
|
while(!self->quit)
|
||||||
{
|
{
|
||||||
if(self->quit)
|
|
||||||
break;
|
|
||||||
|
|
||||||
if((self->audioStream >= 0 && self->audioq.size > MAX_AUDIOQ_SIZE) ||
|
if((self->audioStream >= 0 && self->audioq.size > MAX_AUDIOQ_SIZE) ||
|
||||||
(self->videoStream >= 0 && self->videoq.size > MAX_VIDEOQ_SIZE))
|
(self->videoStream >= 0 && self->videoq.size > MAX_VIDEOQ_SIZE))
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue