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

gridflow-cvs at artengine.ca gridflow-cvs at artengine.ca
Fri Apr 25 11:31:44 EDT 2008


Author: matju
Date: Fri Apr 25 11:31:43 2008
New Revision: 3646

Log:
check for error on opening

Modified:
    trunk/format/videodev.c

Modified: trunk/format/videodev.c
==============================================================================
--- trunk/format/videodev.c (original)
+++ trunk/format/videodev.c Fri Apr 25 11:31:43 2008
@@ -241,6 +241,7 @@
 		queuesize=0; queuemax=2; next_frame=0; use_mmap=true; use_pwc=false; bit_packing=0; dim=0;
 		image=0;
 		f = fopen(filename.data(),"r+");
+		if (!f) RAISE("can't open device '%s': %s",filename.data(),strerror(errno));
 		fd = fileno(f);
 		initialize2(); // name conflict...
 	}



More information about the Gridflow-cvs mailing list