Commit bd23dee8 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

v4l2: work around missing V4L2_IN_CAP_STD on old kernels

parent e466c827
...@@ -516,11 +516,15 @@ static v4l2_std_id var_InheritStandard (vlc_object_t *obj, const char *varname) ...@@ -516,11 +516,15 @@ static v4l2_std_id var_InheritStandard (vlc_object_t *obj, const char *varname)
static int SetupStandard (vlc_object_t *obj, int fd, static int SetupStandard (vlc_object_t *obj, int fd,
const struct v4l2_input *restrict input) const struct v4l2_input *restrict input)
{ {
#ifdef V4L2_IN_CAP_STD
if (!(input->capabilities & V4L2_IN_CAP_STD)) if (!(input->capabilities & V4L2_IN_CAP_STD))
{ {
msg_Dbg (obj, "no video standard selection"); msg_Dbg (obj, "no video standard selection");
return 0; return 0;
} }
#else
msg_Dbg (obj, "video standard selection unknown");
#endif
v4l2_std_id std = var_InheritStandard (obj, CFG_PREFIX"standard"); v4l2_std_id std = var_InheritStandard (obj, CFG_PREFIX"standard");
if (std == V4L2_STD_UNKNOWN) if (std == V4L2_STD_UNKNOWN)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment