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

gridflow-cvs at artengine.ca gridflow-cvs at artengine.ca
Wed Jan 20 18:53:17 EST 2010


Author: matju
Date: Wed Jan 20 18:53:16 2010
New Revision: 4892

Log:
set colorspace to non-existent value just to prevent crash in case of other problems (because of uninitialised variable)

Modified:
    trunk/src/videodev.cxx

Modified: trunk/src/videodev.cxx
==============================================================================
--- trunk/src/videodev.cxx (original)
+++ trunk/src/videodev.cxx Wed Jan 20 18:53:16 2010
@@ -188,6 +188,7 @@
 
 	\constructor (string mode, string filename) {
 		queuesize=0; queuemax=2; next_frame=0; use_mmap=true; use_pwc=false; bit_packing=0; dim=0;
+		colorspace=gensym("none"); /* non-existent colorspace just to prevent crash in case of other problems */
 		has_frequency=false;
 		has_tuner=false;
 		has_norm=false;



More information about the Gridflow-cvs mailing list