LaiFeng-Android/SopCastComponent

为什么removeView后 addView会崩溃?请问该怎么处理?checkGlError返回1286

ilnaygniy opened this issue · 1 comments

为什么removeView后 addView会崩溃?请问该怎么处理?checkGlError返回1286

执行CameraView的 @OverRide
public void setVisibility(int visibility) {
int currentVisibility = getVisibility();
if(visibility == currentVisibility) {
return;
}
switch (visibility) {
case VISIBLE:
addRenderSurfaceView();
break;
case GONE:
removeRenderSurfaceView();
break;
case INVISIBLE:
removeRenderSurfaceView();
break;
}
super.setVisibility(visibility);
}

会崩溃