[vlc-devel] commit: Misc fixes in goom, freetype and warning in last.fm ( Jean-Baptiste Kempf )
git version control
git at videolan.org
Thu Aug 20 11:24:15 CEST 2009
vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Thu Aug 20 11:23:31 2009 +0200| [9ce57311af9d181ebdc63c55df1cb0e39e576b63] | committer: Jean-Baptiste Kempf
Misc fixes in goom, freetype and warning in last.fm
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=9ce57311af9d181ebdc63c55df1cb0e39e576b63
---
modules/misc/audioscrobbler.c | 2 ++
modules/misc/freetype.c | 4 +++-
modules/visualization/goom.c | 6 +++---
3 files changed, 8 insertions(+), 4 deletions(-)
diff --git a/modules/misc/audioscrobbler.c b/modules/misc/audioscrobbler.c
index 04e1129..c4a1d22 100644
--- a/modules/misc/audioscrobbler.c
+++ b/modules/misc/audioscrobbler.c
@@ -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;
diff --git a/modules/misc/freetype.c b/modules/misc/freetype.c
index 90edcdb..fbc9be8 100644
--- a/modules/misc/freetype.c
+++ b/modules/misc/freetype.c
@@ -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"
diff --git a/modules/visualization/goom.c b/modules/visualization/goom.c
index 4522f7d..c2ae3a2 100644
--- a/modules/visualization/goom.c
+++ b/modules/visualization/goom.c
@@ -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 &&
More information about the vlc-devel
mailing list