mirror of
https://github.com/nextcloud/talk-android
synced 2025-03-06 14:27:24 +00:00
Check if videocapturer is null
Signed-off-by: Mario Danic <mario@lovelyhq.com>
This commit is contained in:
parent
c8ff05ed04
commit
8df1cdf964
@ -336,10 +336,12 @@ public class CallActivity extends AppCompatActivity {
|
||||
message = "videoOn";
|
||||
startVideoCapture();
|
||||
} else {
|
||||
try {
|
||||
videoCapturer.stopCapture();
|
||||
} catch (InterruptedException e) {
|
||||
Log.d(TAG, "Failed to stop capturing video while sensor is near the ear");
|
||||
if (videoCapturer != null) {
|
||||
try {
|
||||
videoCapturer.stopCapture();
|
||||
} catch (InterruptedException e) {
|
||||
Log.d(TAG, "Failed to stop capturing video while sensor is near the ear");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user