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

Commit ce78dc5b authored by James Dong's avatar James Dong
Browse files

Log setVideoSurface() and setVideoSurfaceTexture() failures.

Change-Id: Iaea34e74a0cf569fc85b926949253dea6baa6142
related-to-bug: 5063370
parent 7dde1c8c
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -226,6 +226,7 @@ status_t MediaPlayer::setVideoSurface(const sp<Surface>& surface)
                NATIVE_WINDOW_API_MEDIA);

        if (err != OK) {
            LOGE("setVideoSurface failed: %d", err);
            // Note that we must do the reset before disconnecting from the ANW.
            // Otherwise queue/dequeue calls could be made on the disconnected
            // ANW, which may result in errors.
@@ -275,6 +276,7 @@ status_t MediaPlayer::setVideoSurfaceTexture(
                NATIVE_WINDOW_API_MEDIA);

        if (err != OK) {
            LOGE("setVideoSurfaceTexture failed: %d", err);
            // Note that we must do the reset before disconnecting from the ANW.
            // Otherwise queue/dequeue calls could be made on the disconnected
            // ANW, which may result in errors.