Change-Id: I723a3863558126f2635a544a39bb3ec88d499c60
service->create(client, 0);
if (player != NULL && player->setDataSource(source) == NO_ERROR) {
- player->setVideoSurfaceTexture(surface->getISurfaceTexture());
+ player->setVideoSurfaceTexture(surface->getIGraphicBufferProducer());
player->start();
client->waitForEOS();
sp<IBinder> binder;
sp<ANativeWindow> window;
if (surface != 0) {
- binder = surface->getISurfaceTexture()->asBinder();
+ binder = surface->getIGraphicBufferProducer()->asBinder();
window = surface;
}
status_t CameraClient::setPreviewDisplay(const sp<Surface>& surface) {
LOG1("setPreviewDisplay(%p) (pid %d)", surface.get(), getCallingPid());
- sp<IBinder> binder(surface != 0 ? surface->getISurfaceTexture()->asBinder() : 0);
+ sp<IBinder> binder(surface != 0 ? surface->getIGraphicBufferProducer()->asBinder() : 0);
sp<ANativeWindow> window(surface);
return setPreviewWindow(binder, window);
}