[Gridflow-cvs] [svn] commit: r5235 - /trunk/src/videodev.cxx

svn-gridflow at artengine.ca svn-gridflow at artengine.ca
Sun Mar 28 14:10:35 EDT 2010


Author: matju
Date: Sun Mar 28 14:10:35 2010
New Revision: 5235

Log:
don't try to set channel when there are less than two, because some drivers don't even have the CSCHAN command

Modified:
    trunk/src/videodev.cxx

Modified: trunk/src/videodev.cxx
==============================================================================
--- trunk/src/videodev.cxx (original)
+++ trunk/src/videodev.cxx Sun Mar 28 14:10:35 2010
@@ -526,6 +526,7 @@
 #define warn(fmt,stuff...) post("warning: " fmt,stuff)
 
 \def 0 channel (int value) {
+	if (vcaps.channels<2) return; /* can't set this in this case */
 	VideoChannel vchan;
 	vchan.channel = value;
 	current_channel = value;



More information about the Gridflow-cvs mailing list