Bug 1304999 - Add nullptr check of YCbCr to rgb surface r=jrmuizel

This commit is contained in:
Sotaro Ikeda 2016-10-02 23:37:53 -07:00
Родитель fb9b5be437
Коммит a1dfbc1a44
1 изменённых файлов: 3 добавлений и 0 удалений

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

@ -645,6 +645,9 @@ BasicCompositor::DrawQuad(const gfx::Rect& aRect,
newTransform, aRect, transformedClipRect,
dest, buffer)) {
// we succeeded in convert and scaling
} else if (source->mFromYCBCR &&
!source->GetSurface(dest)) {
gfxWarning() << "Failed to get YCbCr to rgb surface.";
} else if (source->mFromYCBCR &&
AttemptVideoScale(source, sourceMask, aOpacity, blendMode,
texturedEffect,