Bug 1014614 - Use Android MediaCodec for decoding H264 and AAC in MP4 r=cpearce,edwin,snorp
This commit is contained in:
@@ -41,6 +41,7 @@
|
||||
#include "nsContentUtils.h"
|
||||
#include "nsIScriptError.h"
|
||||
#include "nsIHttpChannel.h"
|
||||
#include "GeneratedSDKWrappers.h"
|
||||
|
||||
using namespace mozilla;
|
||||
using namespace mozilla::widget::android;
|
||||
@@ -220,6 +221,11 @@ AndroidBridge::Init(JNIEnv *jEnv)
|
||||
|
||||
InitAndroidJavaWrappers(jEnv);
|
||||
|
||||
if (mAPIVersion >= 16 /* Jelly Bean */) {
|
||||
// We only use this for MediaCodec right now
|
||||
InitSDKStubs(jEnv);
|
||||
}
|
||||
|
||||
// jEnv should NOT be cached here by anything -- the jEnv here
|
||||
// is not valid for the real gecko main thread, which is set
|
||||
// at SetMainThread time.
|
||||
|
||||
Reference in New Issue
Block a user