Bug 1094049 - Make GonkDecoderModule use currect display height; r=bwu
authorAnthony Jones <ajones@mozilla.com>
Wed, 05 Nov 2014 16:18:32 +0800
changeset 214061 196228507e75012c242a82ce5afe5e60a2635c03
parent 214060 370927f1465a65fe8b2a4aa6b9a911a689ebe293
child 214062 eb34e7c8120f805b0b7fa3e85596c132ee05e4e1
push id27771
push userryanvm@gmail.com
push dateWed, 05 Nov 2014 19:04:24 +0000
treeherdermozilla-central@305b4fecce99 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersbwu
bugs1094049
milestone36.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1094049 - Make GonkDecoderModule use currect display height; r=bwu
dom/media/fmp4/gonk/GonkVideoDecoderManager.cpp
--- a/dom/media/fmp4/gonk/GonkVideoDecoderManager.cpp
+++ b/dom/media/fmp4/gonk/GonkVideoDecoderManager.cpp
@@ -54,17 +54,17 @@ GonkVideoDecoderManager::GonkVideoDecode
   , mColorConverterBufferSize(0)
 {
   NS_ASSERTION(!NS_IsMainThread(), "Should not be on main thread.");
   MOZ_ASSERT(mImageContainer);
   MOZ_COUNT_CTOR(GonkVideoDecoderManager);
   mVideoWidth  = aConfig.display_width;
   mVideoHeight = aConfig.display_height;
   mDisplayWidth = aConfig.display_width;
-  mDisplayHeight = aConfig.display_width;
+  mDisplayHeight = aConfig.display_height;
   mInfo.mVideo.mHasVideo = true;
   nsIntSize displaySize(mDisplayWidth, mDisplayHeight);
   mInfo.mVideo.mDisplay = displaySize;
 
   nsIntRect pictureRect(0, 0, mVideoWidth, mVideoHeight);
   nsIntSize frameSize(mVideoWidth, mVideoHeight);
   mPicture = pictureRect;
   mInitialFrame = frameSize;