summaryrefslogtreecommitdiffstats
path: root/media/jni/android_media_MediaRecorder.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'media/jni/android_media_MediaRecorder.cpp')
-rw-r--r--media/jni/android_media_MediaRecorder.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/media/jni/android_media_MediaRecorder.cpp b/media/jni/android_media_MediaRecorder.cpp
index 9e52111..3a17f0e 100644
--- a/media/jni/android_media_MediaRecorder.cpp
+++ b/media/jni/android_media_MediaRecorder.cpp
@@ -40,7 +40,7 @@
#include <system/audio.h>
#include <android_runtime/android_view_Surface.h>
-
+#include <media/AVMediaExtensions.h>
// ----------------------------------------------------------------------------
using namespace android;
@@ -463,7 +463,7 @@ android_media_MediaRecorder_native_setup(JNIEnv *env, jobject thiz, jobject weak
ScopedUtfChars opPackageNameStr(env, opPackageName);
- sp<MediaRecorder> mr = new MediaRecorder(String16(opPackageNameStr.c_str()));
+ sp<MediaRecorder> mr = AVMediaUtils::get()->createMediaRecorder(String16(opPackageNameStr.c_str()));
if (mr == NULL) {
jniThrowException(env, "java/lang/RuntimeException", "Out of memory");
return;