File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -47,7 +47,8 @@ def init_ui(self):
4747 self .open_matrix_button = QPushButton ("Ouvrir Matrix" )
4848 self .open_matrix_button .clicked .connect (self .camera_chosen )
4949
50- self .find_virtual_cameras_on_linux ()
50+ if sys .platform .startswith ("linux" ):
51+ self .find_virtual_cameras_on_linux ()
5152
5253 # Ajoutez le bouton à votre interface utilisateur
5354 self .layout .addWidget (self .camera_selector )
@@ -216,7 +217,8 @@ def __init__(self):
216217 self .running = running
217218
218219 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 ()
220222 self .virtual_frame = virtual_frame
221223 if self .running :
222224 # print("entre dans virtual_camera.create_virtual_camera()\n")
You can’t perform that action at this time.
0 commit comments