[Gridflow-cvs] [svn] commit: r3842 - /trunk/format/videodev.c

gridflow-cvs at artengine.ca gridflow-cvs at artengine.ca
Tue Jun 10 13:33:35 EDT 2008


Author: matju
Date: Tue Jun 10 13:33:35 2008
New Revision: 3842

Log:
grey-out channel when there is just one channel or none

Modified:
    trunk/format/videodev.c

Modified: trunk/format/videodev.c
==============================================================================
--- trunk/format/videodev.c (original)
+++ trunk/format/videodev.c Tue Jun 10 13:33:35 2008
@@ -298,8 +298,9 @@
 
 \def 0 get (t_symbol *s=0) {
 	// this is abnormal for a get-function
-	if (!has_frequency && s==gensym("frequency")) return;
-	if (!has_tuner     && s==gensym("tuner"    )) return;
+	if (s==gensym("frequency") && !has_frequency  ) return;
+	if (s==gensym("tuner")     && !has_tuner      ) return;
+	if (s==gensym("channel")   && vcaps.channels<2) return;
 	if (!use_pwc && (s==gensym("white_mode") || s==gensym("white_red") || s==gensym("white_blue") ||
 		s==gensym("white_speed") || s==gensym("white_delay") || s==gensym("auto_gain") ||
 		s==gensym("noise_reduction") || s==gensym("compression") || s==gensym("framerate"))) return;



More information about the Gridflow-cvs mailing list