From 9e1cdea45d40fa8cf95dd080943053856009054f Mon Sep 17 00:00:00 2001 From: Mathias Agopian Date: Tue, 19 Feb 2013 18:25:33 -0800 Subject: replace getISurfaceTexture by getIGraphicBufferProducer Change-Id: I723a3863558126f2635a544a39bb3ec88d499c60 --- cmds/stagefright/stream.cpp | 2 +- services/camera/libcameraservice/Camera2Client.cpp | 2 +- services/camera/libcameraservice/CameraClient.cpp | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/cmds/stagefright/stream.cpp b/cmds/stagefright/stream.cpp index d49ab4a..dba67a9 100644 --- a/cmds/stagefright/stream.cpp +++ b/cmds/stagefright/stream.cpp @@ -374,7 +374,7 @@ int main(int argc, char **argv) { service->create(client, 0); if (player != NULL && player->setDataSource(source) == NO_ERROR) { - player->setVideoSurfaceTexture(surface->getISurfaceTexture()); + player->setVideoSurfaceTexture(surface->getIGraphicBufferProducer()); player->start(); client->waitForEOS(); diff --git a/services/camera/libcameraservice/Camera2Client.cpp b/services/camera/libcameraservice/Camera2Client.cpp index b9feaf8..e8b3b7f 100644 --- a/services/camera/libcameraservice/Camera2Client.cpp +++ b/services/camera/libcameraservice/Camera2Client.cpp @@ -488,7 +488,7 @@ status_t Camera2Client::setPreviewDisplay( sp binder; sp window; if (surface != 0) { - binder = surface->getISurfaceTexture()->asBinder(); + binder = surface->getIGraphicBufferProducer()->asBinder(); window = surface; } diff --git a/services/camera/libcameraservice/CameraClient.cpp b/services/camera/libcameraservice/CameraClient.cpp index 5f03a1c..f67c9f4 100644 --- a/services/camera/libcameraservice/CameraClient.cpp +++ b/services/camera/libcameraservice/CameraClient.cpp @@ -301,7 +301,7 @@ status_t CameraClient::setPreviewWindow(const sp& binder, status_t CameraClient::setPreviewDisplay(const sp& surface) { LOG1("setPreviewDisplay(%p) (pid %d)", surface.get(), getCallingPid()); - sp binder(surface != 0 ? surface->getISurfaceTexture()->asBinder() : 0); + sp binder(surface != 0 ? surface->getIGraphicBufferProducer()->asBinder() : 0); sp window(surface); return setPreviewWindow(binder, window); } -- cgit v1.1