V4l2.FrameivalEnum.stepwise is declared as a Fraction. Should be a FrameivalStepwise struct.
In v4l2.vapi, the FrameivalEnum struct declared the stepwise member as a V4l2.Fraction. It should be declared as a FrameivalStepwise structure to match what is in linux/videodev2.h. This leads to compiler errors when vala code attempts to access the stepwise member.
The following change will fix the problem:
diff --git a/vapi/v4l2.vapi b/vapi/v4l2.vapi
index 129f52a..7a1680b 100644
--- a/vapi/v4l2.vapi
+++ b/vapi/v4l2.vapi
@@ -319,7 +319,7 @@ namespace V4l2
public uint32 height;
public uint32 type;
public Fraction discrete;
- public Fraction stepwise;
+ public FrameivalStepwise stepwise;
}
[CCode (cname="struct v4l2_timecode", has_type_id = false)]
Edited by Pacer Ecks