summaryrefslogtreecommitdiffstats
path: root/media/jni/android_media_MediaRecorder.cpp
diff options
context:
space:
mode:
authorPannag Sanketi <psanketi@google.com>2011-07-01 17:39:39 -0700
committerPannag Sanketi <psanketi@google.com>2011-07-22 14:17:25 -0700
commit897e27bc75886e44d2f9f09155127f401c4173ea (patch)
treed352d82d32c65c1872c7020e18894c32411ca89e /media/jni/android_media_MediaRecorder.cpp
parent95b404228547eb771700e6cbb927adc282aebccd (diff)
downloadframeworks_base-897e27bc75886e44d2f9f09155127f401c4173ea.zip
frameworks_base-897e27bc75886e44d2f9f09155127f401c4173ea.tar.gz
frameworks_base-897e27bc75886e44d2f9f09155127f401c4173ea.tar.bz2
Connect MediaRecorder Native to SurfaceMediaSource
Making a connection from MediaRecorder Native layer to the SurfaceMediaSource for the purpose of encoding GL Frames. This will be called from the java side inside the Mobile Filter Framework. The mediarecorder native layer (client), when set the videosource to option VIDEO_SOURCE_FRAMES, asks the StageFrightRecorder on the mediaserver side to create a SurfaceMediaSource object and pass it back as a sp<ISurfaceTexture> object. Using that, the client side will dequeue and queue buffers. Connecting the GL Frames to the obtained sp<ISurfaceTexture> is not part of this CL. Related to bug id: 4529323 Change-Id: I651bec718dd5b935779e7d7a050b841c2d0b0fcd
Diffstat (limited to 'media/jni/android_media_MediaRecorder.cpp')
-rw-r--r--media/jni/android_media_MediaRecorder.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/media/jni/android_media_MediaRecorder.cpp b/media/jni/android_media_MediaRecorder.cpp
index 12391c8..83466a4 100644
--- a/media/jni/android_media_MediaRecorder.cpp
+++ b/media/jni/android_media_MediaRecorder.cpp
@@ -127,7 +127,7 @@ static bool process_media_recorder_call(JNIEnv *env, status_t opStatus, const ch
return false;
}
-static sp<MediaRecorder> getMediaRecorder(JNIEnv* env, jobject thiz)
+sp<MediaRecorder> getMediaRecorder(JNIEnv* env, jobject thiz)
{
Mutex::Autolock l(sLock);
MediaRecorder* const p = (MediaRecorder*)env->GetIntField(thiz, fields.context);