fix: resolve unexpected MediaCodec error popups

This commit is contained in:
tunbmoon
2026-04-03 10:52:06 +08:00
parent 1345ee1b65
commit 5c64c92bad
@@ -60,9 +60,7 @@ private class PlayerTextureView @JvmOverloads constructor(
}
override fun onSurfaceTextureDestroyed(surface: android.graphics.SurfaceTexture): Boolean {
if (!isBackgroundRetained) {
player?.attachSurface(null)
}
player?.attachSurface(null)
return true
}