From 749172269ac6b6f7a430e64f604e7f040524e0a1 Mon Sep 17 00:00:00 2001 From: Jamie Gennis Date: Fri, 28 Jan 2011 12:03:52 -0800 Subject: [PATCH] Quiet the SurfaceFlingerClient dequeueBuffer error. This is a temporary WAR for the case where dequeueBuffer is called when all the buffers owned by a SurfaceTexture are not available - either they're the current texture buffer or the next one. Currently, an error is returned in that case, and this change just prevents that error from being logged. In the future this will be fixed to not return an error in that case. Bug: 3356050 Change-Id: Ic6cc304881a63ce134cfd0bcb4265e3e3fa94b6a --- libs/gui/SurfaceTextureClient.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/gui/SurfaceTextureClient.cpp b/libs/gui/SurfaceTextureClient.cpp index 0ed8be528..c0e4e0f56 100644 --- a/libs/gui/SurfaceTextureClient.cpp +++ b/libs/gui/SurfaceTextureClient.cpp @@ -88,7 +88,7 @@ int SurfaceTextureClient::dequeueBuffer(android_native_buffer_t** buffer) { int buf = -1; status_t err = mSurfaceTexture->dequeueBuffer(&buf); if (err < 0) { - LOGE("dequeueBuffer: ISurfaceTexture::dequeueBuffer failed: %d", err); + LOGV("dequeueBuffer: ISurfaceTexture::dequeueBuffer failed: %d", err); return err; } sp& gbuf(mSlots[buf]);