video calls fix
This commit is contained in:
parent
f4d806f5fc
commit
1bbd9a629c
2 changed files with 2 additions and 1 deletions
|
@ -346,7 +346,6 @@ def video_receive_frame(toxav, friend_number, width, height, y, u, v, ystride, u
|
||||||
width // 2 width // 2
|
width // 2 width // 2
|
||||||
|
|
||||||
It can be created from initial y, u, v using slices
|
It can be created from initial y, u, v using slices
|
||||||
For more info see callback_video_receive_frame docs
|
|
||||||
"""
|
"""
|
||||||
try:
|
try:
|
||||||
y_size = abs(max(width, abs(ystride)))
|
y_size = abs(max(width, abs(ystride)))
|
||||||
|
|
|
@ -881,6 +881,8 @@ class VideoSettings(CenteredWidget):
|
||||||
self.desktopAreaSelection = DesktopAreaSelectionWindow(self)
|
self.desktopAreaSelection = DesktopAreaSelectionWindow(self)
|
||||||
|
|
||||||
def closeEvent(self, event):
|
def closeEvent(self, event):
|
||||||
|
if self.input.currentIndex() == 0:
|
||||||
|
return
|
||||||
try:
|
try:
|
||||||
settings = Settings.get_instance()
|
settings = Settings.get_instance()
|
||||||
settings.video['device'] = self.devices[self.input.currentIndex()]
|
settings.video['device'] = self.devices[self.input.currentIndex()]
|
||||||
|
|
Loading…
Reference in a new issue