mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
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:
parent
d225994274
commit
e097011861
@ -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();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user