зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1292464 - Followup fix Gonk for VideoData cleanup from bug 1292032 r=mattwoodrow
MozReview-Commit-ID: 73Hqb7kmTLo
This commit is contained in:
Родитель
9d6eb49985
Коммит
26819b2e54
|
@ -350,7 +350,7 @@ VideoData::CreateAndCopyData(const VideoInfo& aInfo,
|
|||
}
|
||||
|
||||
#ifdef MOZ_WIDGET_GONK
|
||||
if (!videoImage->IsValid() && !aImage && IsYV12Format(Y, Cb, Cr)) {
|
||||
if (!videoImage->IsValid() && IsYV12Format(Y, Cb, Cr)) {
|
||||
// Failed to allocate gralloc. Try fallback.
|
||||
v->mImage = aContainer->CreatePlanarYCbCrImage();
|
||||
if (!v->mImage) {
|
||||
|
|
|
@ -419,8 +419,8 @@ bool MediaOmxReader::DecodeVideoFrame(bool &aKeyframeSkip,
|
|||
-1,
|
||||
picture);
|
||||
} else {
|
||||
v = VideoData::CreateAndCopyData(mInfo.mVideo,
|
||||
mDecoder->GetImageContainer(),
|
||||
v = VideoData::CreateAndCopyIntoTextureClient(
|
||||
mInfo.mVideo,
|
||||
pos,
|
||||
frame.mTimeUs,
|
||||
1, // We don't know the duration.
|
||||
|
|
Загрузка…
Ссылка в новой задаче