Merge pull request #1581 from SpecLad:merge-2.4
This commit is contained in:
@@ -856,8 +856,7 @@ static int _capture_V4L (CvCaptureCAM_V4L *capture, char *deviceName)
|
||||
|
||||
detect_v4l = try_init_v4l(capture, deviceName);
|
||||
|
||||
if ((detect_v4l == -1)
|
||||
)
|
||||
if (detect_v4l == -1)
|
||||
{
|
||||
fprintf (stderr, "HIGHGUI ERROR: V4L"
|
||||
": device %s: Unable to open for READ ONLY\n", deviceName);
|
||||
@@ -865,8 +864,7 @@ static int _capture_V4L (CvCaptureCAM_V4L *capture, char *deviceName)
|
||||
return -1;
|
||||
}
|
||||
|
||||
if ((detect_v4l <= 0)
|
||||
)
|
||||
if (detect_v4l <= 0)
|
||||
{
|
||||
fprintf (stderr, "HIGHGUI ERROR: V4L"
|
||||
": device %s: Unable to query number of channels\n", deviceName);
|
||||
|
||||
@@ -309,15 +309,15 @@ private:
|
||||
class TBBApproximateSynchronizer: public ApproximateSynchronizerBase
|
||||
{
|
||||
public:
|
||||
TBBApproximateSynchronizer( ApproximateSyncGrabber& approxSyncGrabber ) :
|
||||
ApproximateSynchronizerBase(approxSyncGrabber)
|
||||
TBBApproximateSynchronizer( ApproximateSyncGrabber& _approxSyncGrabber ) :
|
||||
ApproximateSynchronizerBase(_approxSyncGrabber)
|
||||
{
|
||||
setMaxBufferSize();
|
||||
}
|
||||
|
||||
void setMaxBufferSize()
|
||||
{
|
||||
int maxBufferSize = ApproximateSynchronizerBase::approxSyncGrabber.getMaxBufferSize();
|
||||
int maxBufferSize = approxSyncGrabber.getMaxBufferSize();
|
||||
if( maxBufferSize >= 0 )
|
||||
{
|
||||
depthQueue.set_capacity( maxBufferSize );
|
||||
|
||||
Reference in New Issue
Block a user