File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -47,7 +47,8 @@ def init_ui(self):
47
47
self .open_matrix_button = QPushButton ("Ouvrir Matrix" )
48
48
self .open_matrix_button .clicked .connect (self .camera_chosen )
49
49
50
- self .find_virtual_cameras_on_linux ()
50
+ if sys .platform .startswith ("linux" ):
51
+ self .find_virtual_cameras_on_linux ()
51
52
52
53
# Ajoutez le bouton à votre interface utilisateur
53
54
self .layout .addWidget (self .camera_selector )
@@ -216,7 +217,8 @@ def __init__(self):
216
217
self .running = running
217
218
218
219
def run (self , virtual_frame ):
219
- self .video_device = self .find_virtual_cameras_on_linux ()
220
+ if sys .platform .startswith ("linux" ):
221
+ self .video_device = self .find_virtual_cameras_on_linux ()
220
222
self .virtual_frame = virtual_frame
221
223
if self .running :
222
224
# print("entre dans virtual_camera.create_virtual_camera()\n")
You can’t perform that action at this time.
0 commit comments