Fixed wrong cast

This commit is contained in:
Guillaume Beraudo 2010-11-12 14:11:50 +01:00
parent ea01073152
commit 88efcbf6eb

View file

@ -318,7 +318,7 @@ class LinphoneCoreImpl implements LinphoneCore {
public void setVideoWindow(Object w) {
if (mVideoWindow!=null)
mVideoWindow.setListener(null);
mVideoWindow=(AndroidVideoWindowImpl)w;
mVideoWindow=new AndroidVideoWindowImpl((SurfaceView) w);
mVideoWindow.setListener(new AndroidVideoWindowImpl.VideoWindowListener(){
public void onSurfaceDestroyed(AndroidVideoWindowImpl vw) {
setVideoWindowId(nativePtr,null);