Commit 255cdb14 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

Use int32 rather than long for FOURCC so we don't artificially screw up the...

Use int32 rather than long for FOURCC so we don't artificially screw up the ABI on 64-bits platform. Use int64 rather than long for value so we don't overflow on 32-bits platform (ABI breakage, but I did not start it)
parent 08521fc1
...@@ -74,7 +74,7 @@ typedef enum { ...@@ -74,7 +74,7 @@ typedef enum {
typedef struct { typedef struct {
mediacontrol_PositionOrigin origin; mediacontrol_PositionOrigin origin;
mediacontrol_PositionKey key; mediacontrol_PositionKey key;
long value; vlc_int64_t value;
} mediacontrol_Position; } mediacontrol_Position;
/** /**
...@@ -84,8 +84,8 @@ typedef struct { ...@@ -84,8 +84,8 @@ typedef struct {
typedef struct { typedef struct {
int width; int width;
int height; int height;
long type; uint32_t type;
vlc_int64_t date; int64_t date;
int size; int size;
char *data; char *data;
} mediacontrol_RGBPicture; } mediacontrol_RGBPicture;
...@@ -120,8 +120,8 @@ typedef struct { ...@@ -120,8 +120,8 @@ typedef struct {
typedef struct { typedef struct {
mediacontrol_PlayerStatus streamstatus; mediacontrol_PlayerStatus streamstatus;
char *url; /* The URL of the current media stream */ char *url; /* The URL of the current media stream */
vlc_int64_t position; /* actual location in the stream (in ms) */ int64_t position; /* actual location in the stream (in ms) */
vlc_int64_t length; /* total length of the stream (in ms) */ int64_t length; /* total length of the stream (in ms) */
} mediacontrol_StreamInformation; } mediacontrol_StreamInformation;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment