summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorScott Moreau <oreaus@gmail.com>2010-06-19 14:17:45 -0600
committerScott Moreau <oreaus@gmail.com>2010-06-19 14:17:45 -0600
commita1fe9603a03f43875c54690d71ba75671f0566a4 (patch)
treedadb6b467e3486fb745311c3316da612127c24f9
parente572ff6fc87471eee72964e7e1af80216e4d068b (diff)
downloadheadtracking-a1fe9603a03f43875c54690d71ba75671f0566a4.tar.gz
headtracking-a1fe9603a03f43875c54690d71ba75671f0566a4.tar.bz2
Track opencv API changes.
-rw-r--r--facedetect.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/facedetect.c b/facedetect.c
index f1c6620..7b2d6b1 100644
--- a/facedetect.c
+++ b/facedetect.c
@@ -261,7 +261,7 @@ int headtrackThread(int *x1, int *y1, int *x2, int *y2, int lissage, int scale)
}
if (capture) {
if (cvGrabFrame(capture)) {
- frame = cvRetrieveFrame( capture );
+ frame = cvRetrieveFrame( capture, 0 );
if(frame) {
if( !frame_copy )
frame_copy = cvCreateImage( cvSize(frame->width,frame->height), IPL_DEPTH_8U, frame->nChannels );