Bug 1170589 - Force decoder to use all allocated buffers. r=bwu

This commit is contained in:
John Lin 2015-10-14 14:12:25 +08:00
Родитель eaa82aedc8
Коммит 5bd83278c7
1 изменённых файлов: 3 добавлений и 0 удалений

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

@ -427,6 +427,9 @@ GonkVideoDecoderManager::codecReserved()
format->setString("mime", mMimeType.get());
format->setInt32("width", mVideoWidth);
format->setInt32("height", mVideoHeight);
// Set the "moz-use-undequeued-bufs" to use the undeque buffers to accelerate
// the video decoding.
format->setInt32("moz-use-undequeued-bufs", 1);
if (mNativeWindow != nullptr) {
surface = new Surface(mNativeWindow->getBufferQueue());
}