Commit eebfb683 authored by Ghislain MARY's avatar Ghislain MARY
Browse files

Fix crash of mediastreamer tool on Android when changing camera.

parent 3118df10
......@@ -318,6 +318,7 @@ public class MediastreamerActivity extends Activity {
break;
case R.id.videocall_menu_change_camera:
cameraId = (cameraId + 1) % Camera.getNumberOfCameras();
setVideoPreviewWindowId(null, nativeObj);
changeCamera(cameraId, nativeObj);
setVideoPreviewWindowId(findViewById(R.id.video_capture_surface), nativeObj);
break;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment