зеркало из https://github.com/mozilla/gecko-dev.git
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:
Родитель
db0c99f1ca
Коммит
cc33d9fa6a
|
@ -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;
|
||||
|
|
Загрузка…
Ссылка в новой задаче