]> git.sesse.net Git - vlc/commitdiff
Misc fixes in goom, freetype and warning in last.fm
authorJean-Baptiste Kempf <jb@videolan.org>
Thu, 20 Aug 2009 09:23:31 +0000 (11:23 +0200)
committerJean-Baptiste Kempf <jb@videolan.org>
Thu, 20 Aug 2009 09:23:31 +0000 (11:23 +0200)
modules/misc/audioscrobbler.c
modules/misc/freetype.c
modules/visualization/goom.c

index 04e112964eaf916e197767934d2c86508d6f4384..c4a1d22ebff87d1e298df35fb8c9bd3a867d5c6b 100644 (file)
@@ -465,6 +465,8 @@ static void Run( intf_thread_t *p_intf )
 static int PlayingChange( vlc_object_t *p_this, const char *psz_var,
                        vlc_value_t oldval, vlc_value_t newval, void *p_data )
 {
+    VLC_UNUSED( oldval );
+
     intf_thread_t   *p_intf = ( intf_thread_t* ) p_data;
     intf_sys_t      *p_sys  = p_intf->p_sys;
     input_thread_t  *p_input = ( input_thread_t* )p_this;
index 90edcdbcf0bab9d6d93fe9aba404ff77fb952c10..fbc9be845c629f94a9045a03dd5c44f6a0d26b4b 100644 (file)
@@ -49,7 +49,9 @@
 #include FT_GLYPH_H
 #define FT_FLOOR(X)     ((X & -64) >> 6)
 #define FT_CEIL(X)      (((X + 63) & -64) >> 6)
-#define FT_MulFix(v, s) (((v)*(s))>>16)
+#ifndef FT_MulFix
+ #define FT_MulFix(v, s) (((v)*(s))>>16)
+#endif
 
 #ifdef __APPLE__
 #define DEFAULT_FONT "/System/Library/Fonts/LucidaGrande.dfont"
index 4522f7d33e02ebe50906e06dcc95ab5251146860..c2ae3a25a8db4ce12a616a0db3c471716cc9abae 100644 (file)
@@ -102,7 +102,7 @@ typedef struct
     vlc_cond_t    wait;
 
     /* Audio properties */
-    int i_channels;
+    unsigned i_channels;
 
     /* Audio samples queue */
     block_t       *pp_blocks[MAX_BLOCKS];
@@ -274,8 +274,8 @@ static int FillBuffer( int16_t *p_data, int *pi_data,
         if( !p_this->i_blocks ) return VLC_EGENERIC;
 
         p_block = p_this->pp_blocks[0];
-        i_samples = __MIN( 512 - *pi_data, p_block->i_buffer /
-                           sizeof(float) / p_this->i_channels );
+        i_samples = __MIN( (unsigned)(512 - *pi_data),
+                p_block->i_buffer / sizeof(float) / p_this->i_channels );
 
         /* Date management */
         if( p_block->i_pts > 0 &&