We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 8646cd4 + b05bb17 commit 07a2d83Copy full SHA for 07a2d83
1 file changed
libs/gui/SurfaceTexture.cpp
@@ -646,8 +646,9 @@ status_t SurfaceTexture::disconnect(int api) {
646
Mutex::Autolock lock(mMutex);
647
648
if (mAbandoned) {
649
- ST_LOGE("disconnect: SurfaceTexture has been abandoned!");
650
- return NO_INIT;
+ // it is not really an error to disconnect after the surface
+ // has been abandoned, it should just be a no-op.
651
+ return NO_ERROR;
652
}
653
654
int err = NO_ERROR;
0 commit comments