Bug 1283156 - Fix GonkDecoderModule build error r=baku
authorAlexandre Lissy <lissyx@lissyx.dyndns.org>
Wed, 29 Jun 2016 21:03:42 +0200
changeset 303213 ff84983e313ba340c2d61c8e9595366ae31c3d9a
parent 303212 8f6cca2a2cb491f0932aadeaf4c98c3e76eeb4c0
child 303214 ee7df8ab5bebe508e2877a691ad43b4b60568376
push id79015
push usercbook@mozilla.com
push dateThu, 30 Jun 2016 10:51:07 +0000
treeherdermozilla-inbound@280e4ef4d764 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersbaku
bugs1283156
milestone50.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 1283156 - Fix GonkDecoderModule build error r=baku MozReview-Commit-ID: 8O9CeufBy7r
dom/media/platforms/gonk/GonkDecoderModule.cpp
--- a/dom/media/platforms/gonk/GonkDecoderModule.cpp
+++ b/dom/media/platforms/gonk/GonkDecoderModule.cpp
@@ -17,27 +17,27 @@ GonkDecoderModule::GonkDecoderModule()
 GonkDecoderModule::~GonkDecoderModule()
 {
 }
 
 already_AddRefed<MediaDataDecoder>
 GonkDecoderModule::CreateVideoDecoder(const CreateDecoderParams& aParams)
 {
   RefPtr<MediaDataDecoder> decoder =
-  new GonkMediaDataDecoder(new GonkVideoDecoderManager(aImageContainer, aConfig),
-                           aCallback);
+  new GonkMediaDataDecoder(new GonkVideoDecoderManager(aParams.mImageContainer, aParams.VideoConfig()),
+                           aParams.mCallback);
   return decoder.forget();
 }
 
 already_AddRefed<MediaDataDecoder>
 GonkDecoderModule::CreateAudioDecoder(const CreateDecoderParams& aParams)
 {
   RefPtr<MediaDataDecoder> decoder =
-  new GonkMediaDataDecoder(new GonkAudioDecoderManager(aConfig),
-                           aCallback);
+  new GonkMediaDataDecoder(new GonkAudioDecoderManager(aParams.AudioConfig()),
+                           aParams.mCallback);
   return decoder.forget();
 }
 
 PlatformDecoderModule::ConversionRequired
 GonkDecoderModule::DecoderNeedsConversion(const TrackInfo& aConfig) const
 {
   if (aConfig.IsVideo()) {
     return kNeedAnnexB;