Skip to content

Commit 798b9cd

Browse files
author
Jamie Gennis
committed
SurfaceTexture: fix a verbose-log compile error
Change-Id: I045231207e068d950bb0cb5085717af5d9454ed1
1 parent 720efc4 commit 798b9cd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

libs/gui/SurfaceTexture.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -498,8 +498,8 @@ status_t SurfaceTexture::dequeueBuffer(int *outBuf, uint32_t w, uint32_t h,
498498
eglDestroySyncKHR(dpy, fence);
499499
}
500500

501-
ST_LOGV("dequeueBuffer: returning slot=%d buf=%p flags=%#x", buf,
502-
mSlots[buf].mGraphicBuffer->handle, returnFlags);
501+
ST_LOGV("dequeueBuffer: returning slot=%d buf=%p flags=%#x", *outBuf,
502+
mSlots[*outBuf].mGraphicBuffer->handle, returnFlags);
503503

504504
return returnFlags;
505505
}

0 commit comments

Comments
 (0)