Skip to content

Commit 07a2d83

Browse files
pixelflingerAndroid (Google) Code Review
authored andcommitted
Merge "don't report an error when disconnecting from an abandoned surfacetexture" into ics-mr1
2 parents 8646cd4 + b05bb17 commit 07a2d83

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

libs/gui/SurfaceTexture.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -646,8 +646,9 @@ status_t SurfaceTexture::disconnect(int api) {
646646
Mutex::Autolock lock(mMutex);
647647

648648
if (mAbandoned) {
649-
ST_LOGE("disconnect: SurfaceTexture has been abandoned!");
650-
return NO_INIT;
649+
// it is not really an error to disconnect after the surface
650+
// has been abandoned, it should just be a no-op.
651+
return NO_ERROR;
651652
}
652653

653654
int err = NO_ERROR;

0 commit comments

Comments
 (0)