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

Commit ee08f7e3 authored by Marco Nelissen's avatar Marco Nelissen
Browse files

Fix hang

Specify that the surface is controlled by the app, to avoid a hang.
b/10531761

Change-Id: Idccc2c73aa3d368d8e7fbdc071ce36e2382efea4
parent 99bf6267
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -744,7 +744,7 @@ status_t MediaPlayerService::Client::setVideoSurfaceTexture(

    sp<ANativeWindow> anw;
    if (bufferProducer != NULL) {
        anw = new Surface(bufferProducer);
        anw = new Surface(bufferProducer, true /* controlledByApp */);
        status_t err = native_window_api_connect(anw.get(),
                NATIVE_WINDOW_API_MEDIA);