Hi.
This patch fix a tiny bug in the webcam wizard on linux.
Config was not saved because [::Capture::ListChannels $device]
returned "Error opening device" because the device is already used by
the preview !
Can someone test it and commit it, please ?
Greets.
--
Boris FAURE (billiob)
mail, msn : [EMAIL PROTECTED]
No trees were killed in the sending of this message.
However, a large number of electrons were terribly
agitated.
--- msncam.tcl  2005-11-27 18:13:10.000000000 +0100
+++ msncam.tcl  2005-11-27 18:11:20.000000000 +0100
@@ -2280,7 +2281,7 @@
                        $status configure -text $res
                        return
                }
-
+               variable channel
                set channel [lindex $channels $chan]
                set channel [lindex $channel 0]
 
@@ -2354,14 +2355,11 @@
                set device [lindex $devices $dev]
                set device [lindex $device 0]
 
-               if { [catch {set channels [::Capture::ListChannels $device]} 
res] } {
-                       ::CAMGUI::Choose_CancelLinux $w $img
-                       return
-               }
-
-               set channel [lindex $channels $chan]
-               set channel [lindex $channel 0]
+               ## WARNING : [::Capture::ListChannels $device] returns "Error 
opening device" because the device is used by the preview !
+               # that's why we use variable channel
+               variable channel
 
+status_log "webcamDevice=$device:$channel" green
 
                ::config::setKey "webcamDevice" "$device:$channel"
 

Reply via email to