Lines 1048-1054
Link Here
|
1048 |
{ |
1048 |
{ |
1049 |
Debug( 3, "Terminating video stream" ); |
1049 |
Debug( 3, "Terminating video stream" ); |
1050 |
//enum v4l2_buf_type type = V4L2_BUF_TYPE_VIDEO_CAPTURE; |
1050 |
//enum v4l2_buf_type type = V4L2_BUF_TYPE_VIDEO_CAPTURE; |
1051 |
enum v4l2_buf_type type = v4l2_data.fmt.type; |
1051 |
// enum v4l2_buf_type type = v4l2_data.fmt.type; |
|
|
1052 |
enum v4l2_buf_type type = (v4l2_buf_type)v4l2_data.fmt.type; |
1052 |
if ( vidioctl( vid_fd, VIDIOC_STREAMOFF, &type ) < 0 ) |
1053 |
if ( vidioctl( vid_fd, VIDIOC_STREAMOFF, &type ) < 0 ) |
1053 |
Error( "Failed to stop capture stream: %s", strerror(errno) ); |
1054 |
Error( "Failed to stop capture stream: %s", strerror(errno) ); |
1054 |
|
1055 |
|
Lines 1931-1937
Link Here
|
1931 |
|
1932 |
|
1932 |
Debug( 3, "Starting video stream" ); |
1933 |
Debug( 3, "Starting video stream" ); |
1933 |
//enum v4l2_buf_type type = V4L2_BUF_TYPE_VIDEO_CAPTURE; |
1934 |
//enum v4l2_buf_type type = V4L2_BUF_TYPE_VIDEO_CAPTURE; |
1934 |
enum v4l2_buf_type type = v4l2_data.fmt.type; |
1935 |
// enum v4l2_buf_type type = v4l2_data.fmt.type; |
|
|
1936 |
enum v4l2_buf_type type = (v4l2_buf_type)v4l2_data.fmt.type; |
1935 |
if ( vidioctl( vid_fd, VIDIOC_STREAMON, &type ) < 0 ) |
1937 |
if ( vidioctl( vid_fd, VIDIOC_STREAMON, &type ) < 0 ) |
1936 |
Fatal( "Failed to start capture stream: %s", strerror(errno) ); |
1938 |
Fatal( "Failed to start capture stream: %s", strerror(errno) ); |
1937 |
} |
1939 |
} |