From 1bbd9a629ccfaaec97d1bce080faeee3f617a730 Mon Sep 17 00:00:00 2001 From: ingvar1995 Date: Sat, 15 Jul 2017 23:11:49 +0300 Subject: [PATCH] video calls fix --- toxygen/callbacks.py | 1 - toxygen/menu.py | 2 ++ 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/toxygen/callbacks.py b/toxygen/callbacks.py index f97e980..eaf5346 100644 --- a/toxygen/callbacks.py +++ b/toxygen/callbacks.py @@ -346,7 +346,6 @@ def video_receive_frame(toxav, friend_number, width, height, y, u, v, ystride, u width // 2 width // 2 It can be created from initial y, u, v using slices - For more info see callback_video_receive_frame docs """ try: y_size = abs(max(width, abs(ystride))) diff --git a/toxygen/menu.py b/toxygen/menu.py index 3707706..6724b75 100644 --- a/toxygen/menu.py +++ b/toxygen/menu.py @@ -881,6 +881,8 @@ class VideoSettings(CenteredWidget): self.desktopAreaSelection = DesktopAreaSelectionWindow(self) def closeEvent(self, event): + if self.input.currentIndex() == 0: + return try: settings = Settings.get_instance() settings.video['device'] = self.devices[self.input.currentIndex()]