[vlc-devel] commit: Screen-win32: Kill warnings (Jean-Baptiste Kempf )

git version control git at videolan.org
Thu Aug 20 10:54:03 CEST 2009


vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Thu Aug 20 10:19:34 2009 +0200| [4d87d619f3a968a64ef5a9677046189b3d99368b] | committer: Jean-Baptiste Kempf 

Screen-win32: Kill warnings

"signed and unsigned type in conditional expression"

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

 modules/access/screen/win32.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/modules/access/screen/win32.c b/modules/access/screen/win32.c
index 01cac09..87eb6fb 100644
--- a/modules/access/screen/win32.c
+++ b/modules/access/screen/win32.c
@@ -187,9 +187,9 @@ static block_t *CaptureBlockNew( demux_t *p_demux )
         p_data->bmi.bmiHeader.biClrImportant = 0;
 
         i_val = var_CreateGetInteger( p_demux, "screen-fragment-size" );
-        p_data->i_fragment_size = i_val > 0 ? i_val : p_sys->fmt.video.i_height;
-        p_data->i_fragment_size = i_val > p_sys->fmt.video.i_height ?
-                                            p_sys->fmt.video.i_height :
+        p_data->i_fragment_size = i_val > 0 ? i_val : (int)p_sys->fmt.video.i_height;
+        p_data->i_fragment_size = i_val > (int)p_sys->fmt.video.i_height ?
+                                            (int)p_sys->fmt.video.i_height :
                                             p_data->i_fragment_size;
         p_sys->f_fps *= (p_sys->fmt.video.i_height/p_data->i_fragment_size);
         p_sys->i_incr = 1000000 / p_sys->f_fps;




More information about the vlc-devel mailing list