init: 64 bits version of the webcam
This commit is contained in:
@ -224,8 +224,10 @@ bool Webcam::Open(int width_, int height_) {
|
||||
CoUninitialize();
|
||||
}
|
||||
|
||||
if (id_devices.size() == 0)
|
||||
if (id_devices.size() == 0) {
|
||||
__LOG_CAM__ << "No camera found (devices empty)\n";
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
InputVideo = new VideoCapture();
|
||||
@ -241,7 +243,10 @@ bool Webcam::Open(int width_, int height_) {
|
||||
|
||||
|
||||
if(device_id == -1)
|
||||
{
|
||||
__LOG_CAM__ << "No valid camera found.\n";
|
||||
return false;
|
||||
}
|
||||
|
||||
__LOG_CAM__ << "OPEN CAM ID "<<device_id <<"\n";
|
||||
|
||||
@ -470,7 +475,7 @@ uchar *Webcam::SetFrame(float clock, GS::String record_name , int record_index)
|
||||
|
||||
if (!ReplayInputVideo->read(*ReplayImframe))
|
||||
{
|
||||
__LOG_CAM__ << "Failed to read frame at index " << index << "\n";
|
||||
__LOG_CAM__ << "Failed to read frame at index " << (int)index << "\n";
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user