aboutsummaryrefslogtreecommitdiffstats
path: root/packages/opencv/opencv/debian/110_dc1394.diff
blob: 23a7284a9c7d406b9bd1b8c8e85b7c95bf8b49c1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
Index: opencv-1.0.0/otherlibs/highgui/cvcap_dc1394.cpp
===================================================================
--- opencv-1.0.0.orig/otherlibs/highgui/cvcap_dc1394.cpp	2006-11-14 16:21:10.000000000 +0100
+++ opencv-1.0.0/otherlibs/highgui/cvcap_dc1394.cpp	2006-11-14 16:23:25.000000000 +0100
@@ -680,6 +680,7 @@
 			return f;
 		}
 	}
+	return 0;
 }
 
 static int
@@ -793,7 +794,7 @@
 
 			// now check if the auto is on.
 			if( dc1394_is_feature_auto(capture->handle, capture->camera->node, feature_id, &isAutoOn ) == DC1394_FAILURE ) {
-				fprintf(stderr, "error determining if feature %d has auto on!\n", index);
+				fprintf(stderr, "error determining if feature %d has auto on!\n", feature_id);
 				return 0;
 			}
 		}