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:
Enrico Weigelt, metux IT consult
2026-01-30 12:37:02 +01:00
committed by Enrico Weigelt
parent b224dc8ed6
commit 9fbe8fbeab

View File

@@ -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