mirror of
https://github.com/nextcloud/talk-android
synced 2025-06-19 19:49:33 +01:00
More fixes
Signed-off-by: Mario Danic <mario@lovelyhq.com>
This commit is contained in:
parent
e44ce6e7b4
commit
4029911a7f
@ -651,20 +651,23 @@ public class CallActivity extends AppCompatActivity {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
if (localMediaStream.videoTracks.size() > 0) {
|
if (localMediaStream.videoTracks != null && localMediaStream.videoTracks.size() > 0) {
|
||||||
localMediaStream.removeTrack(localMediaStream.videoTracks.get(0));
|
localMediaStream.removeTrack(localMediaStream.videoTracks.get(0));
|
||||||
}
|
}
|
||||||
|
|
||||||
if (localMediaStream.audioTracks.size() > 0) {
|
if (localMediaStream.audioTracks != null && localMediaStream.audioTracks.size() > 0) {
|
||||||
localMediaStream.removeTrack(localMediaStream.audioTracks.get(0));
|
localMediaStream.removeTrack(localMediaStream.audioTracks.get(0));
|
||||||
}
|
}
|
||||||
|
|
||||||
localVideoTrack = null;
|
localVideoTrack = null;
|
||||||
localAudioTrack = null;
|
localAudioTrack = null;
|
||||||
localRenderer = null;
|
localRenderer = null;
|
||||||
localMediaStream = null;
|
localMediaStream = null;
|
||||||
|
|
||||||
videoCapturer.dispose();
|
if (videoCapturer != null) {
|
||||||
videoCapturer = null;
|
videoCapturer.dispose();
|
||||||
|
videoCapturer = null;
|
||||||
|
}
|
||||||
|
|
||||||
pipVideoView.release();
|
pipVideoView.release();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user