mirror of
https://github.com/X11Libre/xf86-video-v4l.git
synced 2026-03-24 01:25:19 +00:00
fix XF86AttributeRec assignment const issue
Unfortunately this struct is using non-const name field, but actually may allow const in this case, because nobody's trying to free() these. Until we've finally got a really clean solution, just do a typecast here. Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
This commit is contained in:
committed by
Enrico Weigelt
parent
b224dc8ed6
commit
9fbe8fbeab
@@ -165,10 +165,10 @@ InputVideoFormats[] = {
|
||||
#define V4L_ATTR (sizeof(Attributes) / sizeof(XF86AttributeRec))
|
||||
|
||||
static const XF86AttributeRec Attributes[] = {
|
||||
{XvSettable | XvGettable, -1000, 1000, XV_ENCODING},
|
||||
{XvSettable | XvGettable, -1000, 1000, (char*)XV_ENCODING},
|
||||
};
|
||||
static const XF86AttributeRec FreqAttr =
|
||||
{XvSettable | XvGettable, 0, 16*1000, XV_FREQ};
|
||||
{XvSettable | XvGettable, 0, 16*1000, (char*)XV_FREQ};
|
||||
|
||||
|
||||
#define MAX_V4L_DEVICES 4
|
||||
|
||||
Reference in New Issue
Block a user