Bug 1321756 - Preference on media.decoder.recycle.enabled on Fennec. r=jya
authorJames Cheng <jacheng@mozilla.com>
Fri, 02 Dec 2016 15:24:15 +0800
changeset 325274 ef519c7016370ecf87c4c3f9a38d32f6b5936be8
parent 325273 a39e4d1ffd7793d31f346f9bd8b897134c61f155
child 325275 fd06026aad5670d226b975a05312e1be9163a0f4
push id24
push usermaklebus@msu.edu
push dateTue, 20 Dec 2016 03:11:33 +0000
reviewersjya
bugs1321756
milestone53.0a1
Bug 1321756 - Preference on media.decoder.recycle.enabled on Fennec. r=jya MozReview-Commit-ID: GAjbykVSaqe
mobile/android/app/mobile.js
--- a/mobile/android/app/mobile.js
+++ b/mobile/android/app/mobile.js
@@ -610,16 +610,21 @@ pref("media.cache_readahead_limit", 30);
 // Number of video frames we buffer while decoding video.
 // On Android this is decided by a similar value which varies for
 // each OMX decoder |OMX_PARAM_PORTDEFINITIONTYPE::nBufferCountMin|. This
 // number must be less than the OMX equivalent or gecko will think it is
 // chronically starved of video frames. All decoders seen so far have a value
 // of at least 4.
 pref("media.video-queue.default-size", 3);
 
+#ifdef NIGHTLY_BUILD
+// Allow to check if the decoder supports recycling only on Fennec nightly build.
+pref("media.decoder.recycle.enabled", true);
+#endif
+
 // Enable the MediaCodec PlatformDecoderModule by default.
 pref("media.android-media-codec.enabled", true);
 pref("media.android-media-codec.preferred", true);
 // Run decoder in seperate process.
 pref("media.android-remote-codec.enabled", false);
 
 // Enable MSE
 pref("media.mediasource.enabled", true);