[vlc-commits] vout: fix signedness warnings

Rémi Denis-Courmont git at videolan.org
Thu Feb 13 22:58:51 CET 2014


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Thu Feb 13 23:58:28 2014 +0200| [6b19dc64a67a430db0d37996991d217bbf3b41a4] | committer: Rémi Denis-Courmont

vout: fix signedness warnings

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=6b19dc64a67a430db0d37996991d217bbf3b41a4
---

 include/vlc_vout_wrapper.h |    2 +-
 src/video_output/display.c |    6 +++---
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/include/vlc_vout_wrapper.h b/include/vlc_vout_wrapper.h
index 575a51f..26d1d85 100644
--- a/include/vlc_vout_wrapper.h
+++ b/include/vlc_vout_wrapper.h
@@ -86,7 +86,7 @@ VLC_API bool vout_ManageDisplay(vout_display_t *, bool allow_reset_pictures);
 
 VLC_API void vout_SetDisplayFullscreen(vout_display_t *, bool is_fullscreen);
 VLC_API void vout_SetDisplayFilled(vout_display_t *, bool is_filled);
-VLC_API void vout_SetDisplayZoom(vout_display_t *, int num, int den);
+VLC_API void vout_SetDisplayZoom(vout_display_t *, unsigned num, unsigned den);
 VLC_API void vout_SetWindowState(vout_display_t *, unsigned state);
 VLC_API void vout_SetDisplayAspect(vout_display_t *, unsigned dar_num, unsigned dar_den);
 VLC_API void vout_SetDisplayCrop(vout_display_t *, unsigned crop_num, unsigned crop_den, unsigned left, unsigned top, int right, int bottom);
diff --git a/src/video_output/display.c b/src/video_output/display.c
index 6dbac3d..906bca0 100644
--- a/src/video_output/display.c
+++ b/src/video_output/display.c
@@ -301,8 +301,8 @@ struct vout_display_owner_sys_t {
 
     bool ch_zoom;
     struct {
-        int  num;
-        int  den;
+        unsigned num;
+        unsigned den;
     } zoom;
 
     bool ch_wm_state;
@@ -1141,7 +1141,7 @@ void vout_SetDisplayFilled(vout_display_t *vd, bool is_filled)
     }
 }
 
-void vout_SetDisplayZoom(vout_display_t *vd, int num, int den)
+void vout_SetDisplayZoom(vout_display_t *vd, unsigned num, unsigned den)
 {
     vout_display_owner_sys_t *osys = vd->owner.sys;
 



More information about the vlc-commits mailing list