From 3316452ffa74ea9a44d157c4d0cacdca3ad99fc9 Mon Sep 17 00:00:00 2001 From: Dan Stoza Date: Mon, 27 Apr 2015 11:31:12 -0700 Subject: ImageWriter: Change detach to sp Changes the call to IGBP::detachNextBuffer to return an sp instead of an ANativeWindowBuffer*. Bug: 20092217 Change-Id: I59d6acef7120de5040c6710aeecfa1633ec7f736 --- media/jni/android_media_ImageWriter.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'media/jni') diff --git a/media/jni/android_media_ImageWriter.cpp b/media/jni/android_media_ImageWriter.cpp index 8c76665..294cd84 100644 --- a/media/jni/android_media_ImageWriter.cpp +++ b/media/jni/android_media_ImageWriter.cpp @@ -160,7 +160,7 @@ void JNIImageWriterContext::onBufferReleased() { // Writer. Do the detach unconditionally for opaque format now. see b/19977520 if (mFormat == HAL_PIXEL_FORMAT_IMPLEMENTATION_DEFINED) { sp fence; - ANativeWindowBuffer* buffer; + sp buffer; ALOGV("%s: One buffer is detached", __FUNCTION__); mProducer->detachNextBuffer(&buffer, &fence); } -- cgit v1.1