Bug 1214208: Do not use MP3Decoder on B2G. r=alfredo
authorJean-Yves Avenard <jyavenard@mozilla.com>
Fri, 23 Oct 2015 20:48:28 +1100
changeset 304865 34564c10054d5864e98152b238c9c16b0bad1b80
parent 304864 6c52ba960d877b45f2058794031a53246328327f
child 304866 dcd16953417bee8297fbd412a0654b63c3e98b5d
push id1001
push userraliiev@mozilla.com
push dateMon, 18 Jan 2016 19:06:03 +0000
treeherdermozilla-release@8b89261f3ac4 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersalfredo
bugs1214208
milestone44.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 1214208: Do not use MP3Decoder on B2G. r=alfredo the Gonk PDM doesn't support AudioOffloadPlayer leading to increased power consumption.
dom/media/DecoderTraits.cpp
--- a/dom/media/DecoderTraits.cpp
+++ b/dom/media/DecoderTraits.cpp
@@ -359,16 +359,19 @@ DecoderTraits::IsMP4Type(const nsACStrin
 #endif
   return false;
 }
 
 static bool
 IsMP3SupportedType(const nsACString& aType,
                    const nsAString& aCodecs = EmptyString())
 {
+#ifdef MOZ_OMX_DECODER
+  return false;
+#endif
   return MP3Decoder::CanHandleMediaType(aType, aCodecs);
 }
 
 #ifdef MOZ_APPLEMEDIA
 static const char * const gAppleMP3Types[] = {
   "audio/mp3",
   "audio/mpeg",
   nullptr,