Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
BC
public
mediastreamer2
Commits
70aaa23d
Commit
70aaa23d
authored
Nov 15, 2012
by
Ghislain MARY
Browse files
Fix compilation if some V4L2 definition are not present.
parent
0c2e81ed
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
2 deletions
+9
-2
src/msv4l2.c
src/msv4l2.c
+9
-2
No files found.
src/msv4l2.c
View file @
70aaa23d
...
@@ -635,8 +635,15 @@ static void msv4l2_detect(MSWebCamManager *obj){
...
@@ -635,8 +635,15 @@ static void msv4l2_detect(MSWebCamManager *obj){
camera_caps
=
cap
.
device_caps
;
camera_caps
=
cap
.
device_caps
;
}
}
#endif
#endif
if
(((
camera_caps
&
V4L2_CAP_VIDEO_CAPTURE
)
||
(
camera_caps
&
V4L2_CAP_VIDEO_CAPTURE_MPLANE
))
if
(((
camera_caps
&
V4L2_CAP_VIDEO_CAPTURE
)
&&
!
((
camera_caps
&
V4L2_CAP_VIDEO_OUTPUT
)
||
(
camera_caps
&
V4L2_CAP_VIDEO_OUTPUT_MPLANE
)))
{
#ifdef V4L2_CAP_VIDEO_CAPTURE_MPLANE
||
(
camera_caps
&
V4L2_CAP_VIDEO_CAPTURE_MPLANE
)
#endif
)
&&
!
((
camera_caps
&
V4L2_CAP_VIDEO_OUTPUT
)
#ifdef V4L2_CAP_VIDEO_OUTPUT_MPLANE
||
(
camera_caps
&
V4L2_CAP_VIDEO_OUTPUT_MPLANE
)
#endif
))
{
MSWebCam
*
cam
=
ms_web_cam_new
(
&
v4l2_card_desc
);
MSWebCam
*
cam
=
ms_web_cam_new
(
&
v4l2_card_desc
);
cam
->
name
=
ms_strdup
(
devname
);
cam
->
name
=
ms_strdup
(
devname
);
ms_web_cam_manager_add_cam
(
obj
,
cam
);
ms_web_cam_manager_add_cam
(
obj
,
cam
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment