Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a6843669 authored by Mathias Agopian's avatar Mathias Agopian
Browse files

replace getISurfaceTexture by getIGraphicBufferProducer

Change-Id: I723a3863558126f2635a544a39bb3ec88d499c60
parent 2f8025ee
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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();
+1 −1
Original line number Diff line number Diff line
@@ -488,7 +488,7 @@ status_t Camera2Client::setPreviewDisplay(
    sp<IBinder> binder;
    sp<ANativeWindow> window;
    if (surface != 0) {
        binder = surface->getISurfaceTexture()->asBinder();
        binder = surface->getIGraphicBufferProducer()->asBinder();
        window = surface;
    }

+1 −1
Original line number Diff line number Diff line
@@ -301,7 +301,7 @@ status_t CameraClient::setPreviewWindow(const sp<IBinder>& binder,
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);
}