Bug 1057201 - Don't dispatch to the MP4Reader's decode task queue to update buffered index, as that confuses the MediaDataDecoders. r=kentuckyfriedtakahe

This commit is contained in:
Chris Pearce 2014-08-22 18:28:06 +12:00
parent d225994274
commit e097011861

View File

@ -774,9 +774,7 @@ MP4Reader::NotifyDataArrived(const char* aBuffer, uint32_t aLength,
int64_t aOffset)
{
if (NS_IsMainThread()) {
MediaTaskQueue* queue =
mAudio.mTaskQueue ? mAudio.mTaskQueue : mVideo.mTaskQueue;
queue->Dispatch(NS_NewRunnableMethod(this, &MP4Reader::UpdateIndex));
GetTaskQueue()->Dispatch(NS_NewRunnableMethod(this, &MP4Reader::UpdateIndex));
} else {
UpdateIndex();
}