kdrive: Mark XV names const to avoid warnings.
No code modifies it at runtime, and it's common to store string literals to it. Signed-off-by: Eric Anholt <eric@anholt.net> Reviewed-by: Adam Jackson <ajax@redhat.com>
This commit is contained in:
parent
65efc14b6a
commit
23d303bf90
|
@ -119,7 +119,7 @@ typedef enum {
|
|||
|
||||
typedef struct {
|
||||
int id;
|
||||
char *name;
|
||||
const char *name;
|
||||
unsigned short width, height;
|
||||
XvRationalRec rate;
|
||||
} KdVideoEncodingRec, *KdVideoEncodingPtr;
|
||||
|
@ -132,7 +132,7 @@ typedef struct {
|
|||
typedef struct {
|
||||
unsigned int type;
|
||||
int flags;
|
||||
char *name;
|
||||
const char *name;
|
||||
int nEncodings;
|
||||
KdVideoEncodingPtr pEncodings;
|
||||
int nFormats;
|
||||
|
|
Loading…
Reference in New Issue