[Sumover-dev] [svn commit] r4127 - vic/branches/mpeg4/video

sumover-dev at cs.ucl.ac.uk sumover-dev at cs.ucl.ac.uk
Wed Mar 26 20:47:47 GMT 2008


Author: turam
Date: Wed Mar 26 20:47:45 2008
New Revision: 4127

Modified:
   vic/branches/mpeg4/video/grabber-macosx.cpp

Log:
Init device name (dev_str) sooner so it's available for use in debug output

Modified: vic/branches/mpeg4/video/grabber-macosx.cpp
==============================================================================
--- vic/branches/mpeg4/video/grabber-macosx.cpp	(original)
+++ vic/branches/mpeg4/video/grabber-macosx.cpp	Wed Mar 26 20:47:45 2008
@@ -668,10 +668,10 @@
 		char port_str[64];
 		for (int i = 0; i < (*sgdeviceList)->count; i++) {
 			// ignore devices that are currently unavailable
+			p2cstrcpy(dev_str, (*sgdeviceList)->entry[i].name);
 			if ((sgDeviceNameFlagDeviceUnavailable & (*sgdeviceList)->entry[i].flags) == 0) {
 				attr = new char[512];
 				strcpy(attr, "size {large small cif} format {411 422 cif} type {ntsc pal secam} port {");
-				p2cstrcpy(dev_str, (*sgdeviceList)->entry[i].name);
 				if ((*sgdeviceList)->entry[i].inputs != NULL) {
 					fprintf(stderr,"OSX Capture: \"%s\" has %i input(s)\n", dev_str, (*(((*sgdeviceList)->entry[i]).inputs))->count);
 					for (int j = 0; j < (*(((*sgdeviceList)->entry[i]).inputs))->count; j++) {



More information about the Sumover-dev mailing list