diff options
author | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2018-06-09 02:57:26 +0300 |
---|---|---|
committer | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2018-06-09 02:57:26 +0300 |
commit | 6dc91f22f9bb2aafeee2f7c5df53a02a37acc3a0 (patch) | |
tree | 4ee5452e3454a156c3f952c6c1fe5086497fdab7 /uvc.c | |
parent | 2483a44374433299866b0c16e35ccea40b5379e5 (diff) |
uvc: Initialize the maxsize field internally
The uvc_device maxsize field is initialized in stream.c, requiring
access to the uvc_device internals. Move its initialization to uvc.c.
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Diffstat (limited to 'uvc.c')
-rw-r--r-- | uvc.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -357,6 +357,8 @@ void uvc_events_init(struct uvc_device *dev, struct events *events) void uvc_set_config(struct uvc_device *dev, struct uvc_function_config *fc) { + /* FIXME: The maximum size should be specified per format and frame. */ + dev->maxsize = 0; dev->fc = fc; } |