Fixed wrong cast
This commit is contained in:
parent
ea01073152
commit
88efcbf6eb
1 changed files with 1 additions and 1 deletions
|
@ -318,7 +318,7 @@ class LinphoneCoreImpl implements LinphoneCore {
|
||||||
public void setVideoWindow(Object w) {
|
public void setVideoWindow(Object w) {
|
||||||
if (mVideoWindow!=null)
|
if (mVideoWindow!=null)
|
||||||
mVideoWindow.setListener(null);
|
mVideoWindow.setListener(null);
|
||||||
mVideoWindow=(AndroidVideoWindowImpl)w;
|
mVideoWindow=new AndroidVideoWindowImpl((SurfaceView) w);
|
||||||
mVideoWindow.setListener(new AndroidVideoWindowImpl.VideoWindowListener(){
|
mVideoWindow.setListener(new AndroidVideoWindowImpl.VideoWindowListener(){
|
||||||
public void onSurfaceDestroyed(AndroidVideoWindowImpl vw) {
|
public void onSurfaceDestroyed(AndroidVideoWindowImpl vw) {
|
||||||
setVideoWindowId(nativePtr,null);
|
setVideoWindowId(nativePtr,null);
|
||||||
|
|
Loading…
Reference in a new issue