зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1231091. Part 4 - ensure the end promise is resolved in the special case where video duration is 0. r=roc.
This commit is contained in:
Родитель
2bdedb0118
Коммит
43c45372af
|
@ -167,7 +167,9 @@ VideoSink::Start(int64_t aStartTime, const MediaInfo& aInfo)
|
|||
if (mHasVideo) {
|
||||
mEndPromise = mEndPromiseHolder.Ensure(__func__);
|
||||
ConnectListener();
|
||||
TryUpdateRenderedVideoFrames();
|
||||
// Run the render loop at least once so we can resolve the end promise
|
||||
// when video duration is 0.
|
||||
UpdateRenderedVideoFrames();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче