Bug 1344649 - part 1: use picture instead of display size to construct Image. r?jya
MozReview-Commit-ID: LkVq9iaj14k
--- a/dom/media/platforms/android/RemoteDataDecoder.cpp
+++ b/dom/media/platforms/android/RemoteDataDecoder.cpp
@@ -177,17 +177,17 @@ public:
&& !isEOS) {
return;
}
if (size > 0) {
MutexAutoLock lock(mDecoder->mMutex);
RefPtr<layers::Image> img = new SurfaceTextureImage(
- mDecoder->mSurfaceTexture.get(), mDecoder->mConfig.mDisplay,
+ mDecoder->mSurfaceTexture.get(), mDecoder->mConfig.mImage,
gl::OriginPos::BottomLeft);
RefPtr<VideoData> v = VideoData::CreateFromImage(
mDecoder->mConfig, offset, presentationTimeUs, durationUs,
img, !!(flags & MediaCodec::BUFFER_FLAG_SYNC_FRAME),
presentationTimeUs,
gfx::IntRect(0, 0, mDecoder->mConfig.mDisplay.width,
mDecoder->mConfig.mDisplay.height));