[pitivi] Disable device probing on Windows



commit 4dd8e2bcb8e5f5a58db94bf2b0139bccee9ce73b
Author: Andoni Morales Alastruey <ylatuya gmail com>
Date:   Thu Mar 25 00:38:36 2010 +0100

    Disable device probing on Windows

 pitivi/ui/mainwindow.py |   11 +++++++----
 1 files changed, 7 insertions(+), 4 deletions(-)
---
diff --git a/pitivi/ui/mainwindow.py b/pitivi/ui/mainwindow.py
index 59a70b3..c5ce795 100644
--- a/pitivi/ui/mainwindow.py
+++ b/pitivi/ui/mainwindow.py
@@ -24,6 +24,7 @@ Main GTK+ window
 """
 
 import os
+import platform
 import gtk
 import gobject
 gobject.threads_init()
@@ -203,10 +204,12 @@ class PitiviMainWindow(gtk.Window, Loggable):
 
         # if no webcams available, hide the webcam action
         if self.app.deviceprobe is not None:
-            self.app.deviceprobe.connect("device-added", self._deviceChangeCb)
-            self.app.deviceprobe.connect("device-removed", self._deviceChangeCb)
-            if len(self.app.deviceprobe.getVideoSourceDevices()) < 1:
-                self.webcam_button.set_sensitive(False)
+            # On Windows disable device probe
+            if platform.system() != 'Windows':
+                self.app.deviceprobe.connect("device-added", self._deviceChangeCb)
+                self.app.deviceprobe.connect("device-removed", self._deviceChangeCb)
+                if len(self.app.deviceprobe.getVideoSourceDevices()) < 1:
+                    self.webcam_button.set_sensitive(False)
         else:
             self.webcam_button.set_sensitive(False)
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]