зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1102665 - Invalidate stream video frames in the regular stream state event queue. r=roc
This commit is contained in:
Родитель
2be44806ed
Коммит
75f1ddf387
|
@ -93,7 +93,7 @@ public:
|
|||
nsRefPtr<TrackChange> runnable =
|
||||
new TrackChange(this, aID, aTrackOffset, aTrackEvents,
|
||||
aQueuedMedia.GetType());
|
||||
NS_DispatchToMainThread(runnable);
|
||||
aGraph->DispatchToMainThreadAfterStreamStateUpdate(runnable.forget());
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -1136,7 +1136,7 @@ MediaStreamGraphImpl::PlayVideo(MediaStream* aStream)
|
|||
|
||||
nsCOMPtr<nsIRunnable> event =
|
||||
NS_NewRunnableMethod(output, &VideoFrameContainer::Invalidate);
|
||||
NS_DispatchToMainThread(event);
|
||||
DispatchToMainThreadAfterStreamStateUpdate(event.forget());
|
||||
}
|
||||
if (!aStream->mNotifiedFinished) {
|
||||
aStream->mLastPlayedVideoFrame = *frame;
|
||||
|
|
Загрузка…
Ссылка в новой задаче