Update of /cvsroot/playerstage/code/player/server/drivers/camera/uvc
In directory
sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv10946/server/drivers/camera/uvc
Modified Files:
cameraUVC.cc
Log Message:
applied Toby's patch to replace fixed-size arrays
Index: cameraUVC.cc
===================================================================
RCS file:
/cvsroot/playerstage/code/player/server/drivers/camera/uvc/cameraUVC.cc,v
retrieving revision 1.6
retrieving revision 1.7
diff -C2 -d -r1.6 -r1.7
*** cameraUVC.cc 27 Aug 2007 03:53:00 -0000 1.6
--- cameraUVC.cc 1 Nov 2007 22:16:18 -0000 1.7
***************
*** 180,189 ****
data.fdiv=1;
data.compression=PLAYER_CAMERA_COMPRESS_JPEG;
! data.image_count=ui->GetFrameSize();
! assert(data.image_count <= PLAYER_CAMERA_IMAGE_SIZE);
ui->CopyFrame(data.image);
// Write data to the client (through the server)
! Publish
(device_addr,PLAYER_MSGTYPE_DATA,PLAYER_CAMERA_DATA_STATE,&data,sizeof(data),NULL);
}
}
--- 180,190 ----
data.fdiv=1;
data.compression=PLAYER_CAMERA_COMPRESS_JPEG;
! data.image_count=ui->GetFrameSize();
! data.image = new unsigned char[data.image_count];
ui->CopyFrame(data.image);
// Write data to the client (through the server)
! Publish
(device_addr,PLAYER_MSGTYPE_DATA,PLAYER_CAMERA_DATA_STATE,&data);
! delete [] data.image;
}
}
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Playerstage-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/playerstage-commit