Native camera issue on HTC One S fixed.
Camera connect->disconnect->connect leads to sigsegv. Apply properties method reimplemented.
This commit is contained in:
@@ -448,13 +448,15 @@ VideoCapture::~VideoCapture()
|
||||
|
||||
bool VideoCapture::open(const string& filename)
|
||||
{
|
||||
cap = cvCreateFileCapture(filename.c_str());
|
||||
if (!isOpened())
|
||||
cap = cvCreateFileCapture(filename.c_str());
|
||||
return isOpened();
|
||||
}
|
||||
|
||||
bool VideoCapture::open(int device)
|
||||
{
|
||||
cap = cvCreateCameraCapture(device);
|
||||
if (!isOpened())
|
||||
cap = cvCreateCameraCapture(device);
|
||||
return isOpened();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user