Merge "Error check in queuebuffer in SurfaceTextureClient"
This commit is contained in:
committed by
Android (Google) Code Review
commit
b69d932434
@@ -219,9 +219,12 @@ int SurfaceTextureClient::queueBuffer(android_native_buffer_t* buffer) {
|
|||||||
if (i < 0) {
|
if (i < 0) {
|
||||||
return i;
|
return i;
|
||||||
}
|
}
|
||||||
mSurfaceTexture->queueBuffer(i, timestamp,
|
status_t err = mSurfaceTexture->queueBuffer(i, timestamp,
|
||||||
&mDefaultWidth, &mDefaultHeight, &mTransformHint);
|
&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 {
|
int SurfaceTextureClient::query(int what, int* value) const {
|
||||||
|
|||||||
Reference in New Issue
Block a user