]> git.sesse.net Git - vlc/commitdiff
* ./modules/*: warning fixes.
authorSam Hocevar <sam@videolan.org>
Thu, 23 Jan 2003 15:52:04 +0000 (15:52 +0000)
committerSam Hocevar <sam@videolan.org>
Thu, 23 Jan 2003 15:52:04 +0000 (15:52 +0000)
modules/access/dvdread/input.h
modules/access_output/udp.c
modules/codec/mpeg_audio.c
modules/codec/vorbis.c
modules/demux/avi/avi.c
modules/gui/gtk/menu.c
modules/gui/gtk/playlist.c
modules/packetizer/copy.c
modules/packetizer/mpeg4audio.c
modules/packetizer/mpeg4video.c
modules/packetizer/mpegvideo.c

index 3d14a669a611d91964b77f9bbfe26fbe100ccd1e..3c40a885c06e562dfb8076911f79e6dc49e57a02 100644 (file)
@@ -2,7 +2,7 @@
  * input.h: thread structure of the DVD plugin
  *****************************************************************************
  * Copyright (C) 1999-2001 VideoLAN
- * $Id: input.h,v 1.1 2002/08/04 17:23:42 sam Exp $
+ * $Id: input.h,v 1.2 2003/01/23 15:52:04 sam Exp $
  *
  * Author: Stéphane Borel <stef@via.ecp.fr>
  *
@@ -39,11 +39,11 @@ typedef struct thread_dvd_data_s
 
     ifo_handle_t *          p_vmg_file;
     ifo_handle_t *          p_vts_file;
-            
-    int                     i_title;
-    int                     i_chapter;
-    int                     i_angle;
-    int                     i_angle_nb;
+
+    unsigned int            i_title;
+    unsigned int            i_chapter;
+    unsigned int            i_angle;
+    unsigned int            i_angle_nb;
 
     tt_srpt_t *             p_tt_srpt;
     pgc_t *                 p_cur_pgc;
@@ -51,14 +51,14 @@ typedef struct thread_dvd_data_s
     dsi_t                   dsi_pack;
 
     int                     i_ttn;
-    
+
     unsigned int            i_pack_len;
     unsigned int            i_cur_block;
     unsigned int            i_next_vobu;
     unsigned int            i_end_block;
 
-    int                     i_cur_cell;
-    int                     i_next_cell;
+    unsigned int            i_cur_cell;
+    unsigned int            i_next_cell;
     vlc_bool_t              b_eoc;
 } thread_dvd_data_t;
 
index 0be0c6f7a42c4827b4673b4914cf132c8a224248..f4ada86f5d420807338fbdc79d10970c4c7e5599 100644 (file)
@@ -2,7 +2,7 @@
  * udp.c
  *****************************************************************************
  * Copyright (C) 2001, 2002 VideoLAN
- * $Id: udp.c,v 1.1 2002/12/14 21:32:41 fenrir Exp $
+ * $Id: udp.c,v 1.2 2003/01/23 15:52:04 sam Exp $
  *
  * Authors: Laurent Aimar <fenrir@via.ecp.fr>
  *          Eric Petit <titer@videolan.org>
@@ -97,7 +97,7 @@ typedef struct sout_access_data_s
     uint16_t            i_sequence_number;
     uint32_t            i_ssrc;
 
-    int                 i_mtu;
+    unsigned int        i_mtu;
 
     sout_buffer_t       *p_buffer;
 
@@ -263,7 +263,7 @@ static void Close( vlc_object_t * p_this )
 static int Write( sout_instance_t *p_sout, sout_buffer_t *p_buffer )
 {
     sout_access_data_t  *p_access = (sout_access_data_t*)p_sout->p_access_data;
-    int i_write;
+    unsigned int i_write;
 
     while( p_buffer )
     {
index fbecce291de351af48eb30f8c79a55be6103c165..cd15262d12bec049a0279845bd63cc278df69665 100644 (file)
@@ -2,7 +2,7 @@
  * mpeg_audio.c: parse MPEG audio sync info and packetize the stream
  *****************************************************************************
  * Copyright (C) 2001-2003 VideoLAN
- * $Id: mpeg_audio.c,v 1.5 2003/01/16 14:08:39 massiot Exp $
+ * $Id: mpeg_audio.c,v 1.6 2003/01/23 15:52:04 sam Exp $
  *
  * Authors: Laurent Aimar <fenrir@via.ecp.fr>
  *          Eric Petit <titer@videolan.org>
@@ -526,6 +526,7 @@ static int SyncInfo( uint32_t i_header, unsigned int * pi_channels,
             break;
 
         default:
+            break;
         }
     }
     else
index f3efa82c03ae1c33266108b3d20ea96e83c9cd22..5edf08b422f8a81793eb48cb57a0917958413162 100644 (file)
@@ -2,7 +2,7 @@
  * vorbis.c: vorbis decoder module making use of libvorbis.
  *****************************************************************************
  * Copyright (C) 1999-2001 VideoLAN
- * $Id: vorbis.c,v 1.11 2003/01/02 20:48:28 gbazin Exp $
+ * $Id: vorbis.c,v 1.12 2003/01/23 15:52:04 sam Exp $
  *
  * Authors: Gildas Bazin <gbazin@netcourrier.com>
  *
@@ -184,7 +184,7 @@ static int RunDecoder( decoder_fifo_t * p_fifo )
     }
     /* parse the vorbis comment */
     {
-        input_thread_t *p_input = p_fifo->p_parent;
+        input_thread_t *p_input = (input_thread_t *)p_fifo->p_parent;
         input_info_category_t *p_cat = input_InfoCategory( p_input,
                                                            "Vorbis Comment" );
         int i = 0;
index a6a12abdffcbdf634085d528779bfc2045323805..0aedb5c91dc4e97e5b8c1d339ee9446b2bfb806f 100644 (file)
@@ -2,7 +2,7 @@
  * avi.c : AVI file Stream input module for vlc
  *****************************************************************************
  * Copyright (C) 2001 VideoLAN
- * $Id: avi.c,v 1.28 2003/01/23 13:44:21 fenrir Exp $
+ * $Id: avi.c,v 1.29 2003/01/23 15:52:04 sam Exp $
  * Authors: Laurent Aimar <fenrir@via.ecp.fr>
  *
  * This program is free software; you can redistribute it and/or modify
@@ -683,7 +683,7 @@ static void    AVI_StreamStop( input_thread_t *p_input,
 static int AVI_StreamStopFinishedStreams( input_thread_t *p_input,
                                            demux_sys_t *p_avi )
 {
-    int unsigned i_stream;
+    unsigned int i_stream;
     int b_end;
 
     for( i_stream = 0,b_end = VLC_TRUE;
@@ -925,7 +925,7 @@ static int AVIInit( vlc_object_t * p_this )
                        p_avih->i_flags&AVIF_ISINTERLEAVED?" IS_INTERLEAVED":"",
                        p_avih->i_flags&AVIF_TRUSTCKTYPE?" TRUST_CKTYPE":"" );
     }
-        
+
     /* now read info on each stream and create ES */
     p_avi->pp_info = calloc( p_avi->i_streams,
                             sizeof( avi_stream_t* ) );
@@ -1958,7 +1958,7 @@ static int AVIDemux_Seekable( input_thread_t *p_input )
         /* read thoses data */
         if( p_stream->i_samplesize )
         {
-            int i_toread;
+            unsigned int i_toread;
 
             if( ( i_toread = toread[i_stream].i_toread ) <= 0 )
             {
index 946bc5f03a0260ff3bd1f9053b1f32b8ff418bef..e9e789215bdf03159a124bfd9ff2ee752f8abe48 100644 (file)
@@ -2,7 +2,7 @@
  * menu.c : functions to handle menu items.
  *****************************************************************************
  * Copyright (C) 2000, 2001 VideoLAN
- * $Id: menu.c,v 1.5 2003/01/22 00:32:32 fenrir Exp $
+ * $Id: menu.c,v 1.6 2003/01/23 15:52:04 sam Exp $
  *
  * Authors: Samuel Hocevar <sam@zoy.org>
  *          Stéphane Borel <stef@via.ecp.fr>
@@ -341,7 +341,7 @@ static void GtkPopupVoutDeviceToggle( GtkCheckMenuItem * menuitem, gpointer user
 static void GtkDeinterlaceUpdate( intf_thread_t *p_intf, char *psz_mode )
 {
     char *psz_filter;
-    int  i;
+    unsigned int  i;
 
     psz_filter = config_GetPsz( p_intf, "filter" );
 
index 4d226267530168ecdb798d46a57f5d678662ddaa..d161fb1893f9c8b56c13991c890af4c231a47858 100644 (file)
@@ -2,7 +2,7 @@
  * gtk_playlist.c : Interface for the playlist dialog
  *****************************************************************************
  * Copyright (C) 2001 VideoLAN
- * $Id: playlist.c,v 1.2 2002/08/08 22:28:22 sam Exp $
+ * $Id: playlist.c,v 1.3 2003/01/23 15:52:04 sam Exp $
  *
  * Authors: Pierre Baillet <oct@zoy.org>
  *          Stéphane Borel <stef@via.ecp.fr>
@@ -611,8 +611,8 @@ static GList * GtkReadFiles( intf_thread_t * p_intf, gchar * psz_fsname )
  */
 int GtkAppendList( playlist_t * p_playlist, int i_pos, GList * p_list )
 {
-    guint i_dummy;
-    guint i_length;
+    int i_dummy;
+    int i_length;
 
     i_length = g_list_length( p_list );
 
index 761eb4c06ee84d23aadabf3293593c889afea755..09184e973c39877ff524ebdcdf34beeca7b077cd 100644 (file)
@@ -2,7 +2,7 @@
  * copy.c
  *****************************************************************************
  * Copyright (C) 2001, 2002 VideoLAN
- * $Id: copy.c,v 1.3 2003/01/19 08:27:28 fenrir Exp $
+ * $Id: copy.c,v 1.4 2003/01/23 15:52:04 sam Exp $
  *
  * Authors: Laurent Aimar <fenrir@via.ecp.fr>
  *          Eric Petit <titer@videolan.org>
@@ -315,7 +315,7 @@ static void PacketizeThread( packetizer_thread_t *p_pack )
 {
     sout_buffer_t   *p_sout_buffer;
     pes_packet_t    *p_pes;
-    size_t          i_size;
+    ssize_t          i_size;
 
     /* **** get samples count **** */
     input_ExtractPES( p_pack->p_fifo, &p_pes );
@@ -334,7 +334,7 @@ static void PacketizeThread( packetizer_thread_t *p_pack )
     {
         pes_packet_t    *p_pes_next;
         data_packet_t   *p_data;
-        size_t          i_buffer;
+        ssize_t          i_buffer;
 
         p_sout_buffer = 
             sout_BufferNew( p_pack->p_sout_input->p_sout, i_size );
@@ -348,7 +348,7 @@ static void PacketizeThread( packetizer_thread_t *p_pack )
              p_data != NULL && i_buffer < i_size;
              p_data = p_data->p_next)
         {
-            size_t          i_copy;
+            ssize_t i_copy;
 
             i_copy = __MIN( p_data->p_payload_end - p_data->p_payload_start, 
                             i_size - i_buffer );
index 5f0eb4c06e63a80c55e5ac0006fe4cbcd8c9a158..4eda52c77d5d622c85df92f937f9f462fa84405d 100644 (file)
@@ -2,7 +2,7 @@
  * mpeg4audio.c
  *****************************************************************************
  * Copyright (C) 2001, 2002 VideoLAN
- * $Id: mpeg4audio.c,v 1.1 2003/01/08 10:26:49 fenrir Exp $
+ * $Id: mpeg4audio.c,v 1.2 2003/01/23 15:52:04 sam Exp $
  *
  * Authors: Laurent Aimar <fenrir@via.ecp.fr>
  *
@@ -219,7 +219,6 @@ static int InitThread( packetizer_thread_t *p_pack )
     }
     else
     {
-        int i_wf = sizeof( WAVEFORMATEX ) + 5;
         /* we will try to create a AAC Config from adts */
         p_pack->output_format.i_cat = UNKNOWN_ES;
         p_pack->output_format.i_fourcc = VLC_FOURCC( 'n', 'u', 'l', 'l' );
@@ -257,7 +256,7 @@ static void PacketizeThreadMPEG4( packetizer_thread_t *p_pack )
 {
     sout_buffer_t   *p_sout_buffer;
     pes_packet_t    *p_pes;
-    size_t          i_size;
+    ssize_t          i_size;
 
     /* **** get samples count **** */
     input_ExtractPES( p_pack->p_fifo, &p_pes );
@@ -279,7 +278,7 @@ static void PacketizeThreadMPEG4( packetizer_thread_t *p_pack )
     if( i_size > 0 )
     {
         data_packet_t   *p_data;
-        size_t          i_buffer;
+        ssize_t          i_buffer;
 
         p_sout_buffer = 
             sout_BufferNew( p_pack->p_sout_input->p_sout, i_size );
@@ -295,7 +294,7 @@ static void PacketizeThreadMPEG4( packetizer_thread_t *p_pack )
         {
             size_t          i_copy;
 
-            i_copy = __MIN( p_data->p_payload_end - p_data->p_payload_start, 
+            i_copy = __MIN( p_data->p_payload_end - p_data->p_payload_start,
                             i_size - i_buffer );
             if( i_copy > 0 )
             {
index 265b270c98cdcb0df5c72676948226db1fa36f65..4808f19f478ca9eb494c0a81fae00332623a47db 100644 (file)
@@ -2,7 +2,7 @@
  * mpeg4video.c
  *****************************************************************************
  * Copyright (C) 2001, 2002 VideoLAN
- * $Id: mpeg4video.c,v 1.6 2003/01/19 08:27:28 fenrir Exp $
+ * $Id: mpeg4video.c,v 1.7 2003/01/23 15:52:04 sam Exp $
  *
  * Authors: Laurent Aimar <fenrir@via.ecp.fr>
  *          Eric Petit <titer@videolan.org>
@@ -247,7 +247,7 @@ static void PacketizeThread( packetizer_thread_t *p_pack )
 {
     sout_buffer_t   *p_sout_buffer;
     pes_packet_t    *p_pes;
-    size_t          i_size;
+    ssize_t          i_size;
 
     /* **** get samples count **** */
     input_ExtractPES( p_pack->p_fifo, &p_pes );
@@ -266,7 +266,7 @@ static void PacketizeThread( packetizer_thread_t *p_pack )
     {
         pes_packet_t    *p_pes_next;
         data_packet_t   *p_data;
-        size_t          i_buffer;
+        ssize_t          i_buffer;
 
         p_sout_buffer = 
             sout_BufferNew( p_pack->p_sout_input->p_sout, i_size );
@@ -280,7 +280,7 @@ static void PacketizeThread( packetizer_thread_t *p_pack )
              p_data != NULL && i_buffer < i_size;
              p_data = p_data->p_next)
         {
-            size_t          i_copy;
+            ssize_t i_copy;
 
             i_copy = __MIN( p_data->p_payload_end - p_data->p_payload_start, 
                             i_size - i_buffer );
index d7d47a1f9d042fdef87df4175a81dde3fc1478b0..5daa4502370fd8354de6b385fb19b73175c9d939 100644 (file)
@@ -2,7 +2,7 @@
  * mpegvideo.c
  *****************************************************************************
  * Copyright (C) 2001, 2002 VideoLAN
- * $Id: mpegvideo.c,v 1.7 2003/01/22 04:51:16 fenrir Exp $
+ * $Id: mpegvideo.c,v 1.8 2003/01/23 15:52:04 sam Exp $
  *
  * Authors: Laurent Aimar <fenrir@via.ecp.fr>
  *          Eric Petit <titer@videolan.org>
@@ -181,7 +181,7 @@ static const double pd_frame_rates[16] =
 
 static int CopyUntilNextStartCode( packetizer_t   *p_pack,
                                    sout_buffer_t  *p_sout_buffer,
-                                   int            *pi_pos )
+                                   unsigned int   *pi_pos )
 {
     int i_copy = 0;