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:
JW Wang 2015-12-22 08:42:38 +08:00
Родитель 2bdedb0118
Коммит 43c45372af
1 изменённых файлов: 3 добавлений и 1 удалений

Просмотреть файл

@ -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();
}
}