summaryrefslogtreecommitdiffstats
path: root/libs
diff options
context:
space:
mode:
authorPannag Sanketi <psanketi@google.com>2011-09-02 17:37:29 -0700
committerPannag Sanketi <psanketi@google.com>2011-09-02 17:45:50 -0700
commite061795908bac8a2babe3e3b6d8dffd1dbc6022f (patch)
tree89182dc79c4734a3138998fc6db7d926d3658a97 /libs
parentc592e8e61acd3cfbd11f05d2ea59af267ca33dcf (diff)
downloadframeworks_base-e061795908bac8a2babe3e3b6d8dffd1dbc6022f.zip
frameworks_base-e061795908bac8a2babe3e3b6d8dffd1dbc6022f.tar.gz
frameworks_base-e061795908bac8a2babe3e3b6d8dffd1dbc6022f.tar.bz2
Error check in queuebuffer in SurfaceTextureClient
In queuebuffer, if the surfacetexture returns an error, surfacetextureclient should check for that and pass on the error. Change-Id: Ie6d70e779fac0702f372eb4df5ecb655280875ee
Diffstat (limited to 'libs')
-rw-r--r--libs/gui/SurfaceTextureClient.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/libs/gui/SurfaceTextureClient.cpp b/libs/gui/SurfaceTextureClient.cpp
index 710ef94..0bee0f1 100644
--- a/libs/gui/SurfaceTextureClient.cpp
+++ b/libs/gui/SurfaceTextureClient.cpp
@@ -219,9 +219,12 @@ int SurfaceTextureClient::queueBuffer(android_native_buffer_t* buffer) {
if (i < 0) {
return i;
}
- mSurfaceTexture->queueBuffer(i, timestamp,
+ status_t err = mSurfaceTexture->queueBuffer(i, timestamp,
&mDefaultWidth, &mDefaultHeight, &mTransformHint);
- return OK;
+ if (err != OK) {
+ LOGE("queueBuffer: error queuing buffer to SurfaceTexture, %d", err);
+ }
+ return err;
}
int SurfaceTextureClient::query(int what, int* value) const {