Fix preview window on Nexus one.

This commit is contained in:
Guillaume Beraudo 2011-12-09 14:51:08 +01:00
parent 6673e98932
commit cce4aa0995
2 changed files with 5 additions and 5 deletions

View file

@ -99,7 +99,9 @@ public class VideoCallActivity extends Activity implements LinphoneOnCallStateCh
} }
public void onVideoPreviewSurfaceDestroyed(AndroidVideoWindowImpl vw) { public void onVideoPreviewSurfaceDestroyed(AndroidVideoWindowImpl vw) {
// Remove references kept in jni code and restart camera
// LinphoneManager.getLc().setPreviewWindow(null);
// Commented to remove flicker.
} }
}); });
@ -291,8 +293,6 @@ public class VideoCallActivity extends Activity implements LinphoneOnCallStateCh
LinphoneManager.getLc().setVideoWindow(null); LinphoneManager.getLc().setVideoWindow(null);
} }
LinphoneManager.getLc().setPreviewWindow(null);
if (mCallQualityUpdater!=null){ if (mCallQualityUpdater!=null){
refreshHandler.removeCallbacks(mCallQualityUpdater); refreshHandler.removeCallbacks(mCallQualityUpdater);
mCallQualityUpdater=null; mCallQualityUpdater=null;

@ -1 +1 @@
Subproject commit ad8a8bbbb3fe7189111c38eefe1320ae21a64f02 Subproject commit 75e7426eb68e6fdbaae229e05fe11398172fec7e