Fix compilation warnings
authorJean-Paul Saman <jpsaman@videolan.org>
Tue, 12 Dec 2006 09:26:26 +0000 (09:26 +0000)
committerJean-Paul Saman <jpsaman@videolan.org>
Tue, 12 Dec 2006 09:26:26 +0000 (09:26 +0000)
modules/meta_engine/id3tag.c

index cb96354..ec7c36b 100644 (file)
@@ -24,6 +24,8 @@
 /*****************************************************************************
  * Preamble
  *****************************************************************************/
+#include <config.h>
+
 #include <stdlib.h>                                      /* malloc(), free() */
 #include <string.h>
 
@@ -84,7 +86,10 @@ static void ParseID3Tag( demux_t *p_demux, uint8_t *p_data, int i_size )
             id3_byte_t const * p_ufid;
             id3_length_t i_ufidlen;
 
-            p_ufid = id3_field_getbinarydata( &p_frame->fields[1], &i_ufidlen );
+            p_ufid = (id3_byte_t const *)
+                        id3_field_getbinarydata(
+                                &p_frame->fields[1],
+                                &i_ufidlen );
             char *psz_ufid = strndup( p_ufid, i_ufidlen );
 
             vlc_meta_SetTrackID( p_meta, psz_ufid );