Skip to content

Commit 99f6f8e

Browse files
committed
Merge pull request opencv#13348 from alalek:kw_videoio_v4l
2 parents 39e448f + 26d2095 commit 99f6f8e

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

modules/videoio/src/cap_v4l.cpp

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -347,8 +347,17 @@ struct CvCaptureCAM_V4L CV_FINAL : public CvCapture
347347

348348
/*********************** Implementations ***************************************/
349349

350-
CvCaptureCAM_V4L::CvCaptureCAM_V4L() : deviceHandle(-1), bufferIndex(-1)
350+
CvCaptureCAM_V4L::CvCaptureCAM_V4L() :
351+
deviceHandle(-1), bufferIndex(-1),
352+
FirstCapture(true),
353+
palette(0),
354+
width(0), height(0), width_set(0), height_set(0),
355+
bufferSize(DEFAULT_V4L_BUFFERS),
356+
fps(0), convert_rgb(0), frame_allocated(false), returnFrame(false),
357+
channelNumber(-1), normalizePropRange(false),
358+
type(V4L2_BUF_TYPE_VIDEO_CAPTURE)
351359
{
360+
frame = cvIplImage();
352361
memset(&timestamp, 0, sizeof(timestamp));
353362
}
354363

0 commit comments

Comments
 (0)