Bug 461286. Don't try to get more frames if we've completed decoding. r=roc

--HG--
extra : rebase_source : 11346f044176fdaba753e5a4ce5d74ef91ffc493
This commit is contained in:
Chris Double 2009-05-19 12:07:27 +12:00
Родитель db0c99f1ca
Коммит cc33d9fa6a
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -1225,7 +1225,7 @@ nsresult nsOggDecodeStateMachine::Run()
// Get the decoded frames and store them in our queue of decoded frames
QueueDecodedFrames();
while (mDecodedFrames.IsEmpty()) {
while (mDecodedFrames.IsEmpty() && !mDecodingCompleted) {
mon.Wait(PR_MillisecondsToInterval(PRInt64(mCallbackPeriod*500)));
if (mState != DECODER_STATE_DECODING)
break;