Commit b5ebc218 authored by Pierre's avatar Pierre

vlc_vout_display: Should use unsigned for height and width.

parent 40e79c38
...@@ -72,13 +72,13 @@ typedef struct { ...@@ -72,13 +72,13 @@ typedef struct {
const char *title; const char *title;
/* Display size */ /* Display size */
int width; unsigned width;
int height; unsigned height;
/* Display SAR */ /* Display SAR */
struct { struct {
int num; unsigned num;
int den; unsigned den;
} sar; } sar;
} display; } display;
...@@ -378,7 +378,7 @@ static inline void vout_display_DeleteWindow(vout_display_t *vd, ...@@ -378,7 +378,7 @@ static inline void vout_display_DeleteWindow(vout_display_t *vd,
* *
* This asssumes that the picture is already cropped. * This asssumes that the picture is already cropped.
*/ */
VLC_EXPORT( void, vout_display_GetDefaultDisplaySize, (int *width, int *height, const video_format_t *source, const vout_display_cfg_t *) ); VLC_EXPORT( void, vout_display_GetDefaultDisplaySize, (unsigned *width, unsigned *height, const video_format_t *source, const vout_display_cfg_t *) );
/** /**
......
...@@ -165,7 +165,7 @@ static void vout_display_Manage(vout_display_t *vd) ...@@ -165,7 +165,7 @@ static void vout_display_Manage(vout_display_t *vd)
} }
/* */ /* */
void vout_display_GetDefaultDisplaySize(int *width, int *height, void vout_display_GetDefaultDisplaySize(unsigned *width, unsigned *height,
const video_format_t *source, const video_format_t *source,
const vout_display_cfg_t *cfg) const vout_display_cfg_t *cfg)
{ {
...@@ -204,10 +204,10 @@ void vout_display_PlacePicture(vout_display_place_t *place, ...@@ -204,10 +204,10 @@ void vout_display_PlacePicture(vout_display_place_t *place,
return; return;
/* */ /* */
int width; unsigned width;
int height; unsigned height;
int display_width; unsigned display_width;
int display_height; unsigned display_height;
if (cfg->is_display_filled) { if (cfg->is_display_filled) {
width = source->i_visible_width; width = source->i_visible_width;
......
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