Changeset 80fde19dfe7b9e5875e0f891fe29aa0f6c0ec82e

Show
Ignore:
Timestamp:
12/24/06 15:18:21 (2 years ago)
Author:
Clément Stenac <zorglub@videolan.org>
git-committer:
Clément Stenac <zorglub@videolan.org> 1166969901 +0000
git-parent:

[eedba76b51be5583dabed93222b570a8bc05cabe]

git-author:
Clément Stenac <zorglub@videolan.org> 1166969901 +0000
Message:

More cleanup

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • modules/access/dvb/en50221.c

    rd3fe7f2 r80fde19  
    23112311static char *dvbsi_to_utf8( char *psz_instring, size_t i_length ) 
    23122312{ 
    2313     char *psz_encoding, *psz_stringstart, *psz_outstring, *psz_tmp; 
     2313    const char *psz_encoding; 
     2314    char *psz_stringstart, *psz_outstring, *psz_tmp; 
    23142315    char psz_encbuf[12]; 
    23152316    size_t i_in, i_out; 
  • modules/access/dvb/linux_dvb.c

    rd3fe7f2 r80fde19  
    119119    if( b_probe ) 
    120120    { 
    121         char * psz_expected = NULL; 
    122         char * psz_real; 
     121        const char * psz_expected = NULL; 
     122        const char * psz_real; 
    123123 
    124124        if( FrontendInfo( p_access ) < 0 ) 
  • modules/codec/ffmpeg/audio.c

    rd3fe7f2 r80fde19  
    167167 * wma produces easily > 30000 samples... 
    168168 *****************************************************************************/ 
    169 aout_buffer_t *SplitBuffer( decoder_t *p_dec ) 
     169static aout_buffer_t *SplitBuffer( decoder_t *p_dec ) 
    170170{ 
    171171    decoder_sys_t *p_sys = p_dec->p_sys; 
  • modules/control/gestures.c

    rd3fe7f2 r80fde19  
    8484    "Trigger button for mouse gestures." ) 
    8585 
    86 static char *button_list[] = { "left", "middle", "right" }; 
    87 static char *button_list_text[] = { N_("Left"), N_("Middle"), N_("Right") }; 
     86static const char *button_list[] = { "left", "middle", "right" }; 
     87static const char *button_list_text[] = 
     88                                   { N_("Left"), N_("Middle"), N_("Right") }; 
    8889 
    8990vlc_module_begin(); 
  • modules/control/hotkeys.c

    rd3fe7f2 r80fde19  
    659659                var_SetTime( p_input, "spu-delay", i_delay ); 
    660660                ClearChannels( p_intf, p_vout ); 
    661                 vout_OSDMessage( p_intf, DEFAULT_CHAN, "Subtitle delay %i ms", 
     661                vout_OSDMessage( p_intf, DEFAULT_CHAN, 
     662                                 _( "Subtitle delay %i ms" ), 
    662663                                 (int)(i_delay/1000) ); 
    663664            } 
     
    668669                var_SetTime( p_input, "spu-delay", i_delay ); 
    669670                ClearChannels( p_intf, p_vout ); 
    670                 vout_OSDMessage( p_intf, DEFAULT_CHAN, "Subtitle delay %i ms", 
     671                vout_OSDMessage( p_intf, DEFAULT_CHAN, 
     672                                _( "Subtitle delay %i ms" ), 
    671673                                 (int)(i_delay/1000) ); 
    672674            } 
     
    677679                var_SetTime( p_input, "audio-delay", i_delay ); 
    678680                ClearChannels( p_intf, p_vout ); 
    679                 vout_OSDMessage( p_intf, DEFAULT_CHAN, "Audio delay %i ms", 
     681                vout_OSDMessage( p_intf, DEFAULT_CHAN, 
     682                                _( "Audio delay %i ms" ), 
    680683                                 (int)(i_delay/1000) ); 
    681684            } 
     
    686689                var_SetTime( p_input, "audio-delay", i_delay ); 
    687690                ClearChannels( p_intf, p_vout ); 
    688                 vout_OSDMessage( p_intf, DEFAULT_CHAN, "Audio delay %i ms", 
     691                vout_OSDMessage( p_intf, DEFAULT_CHAN, 
     692                                _( "Audio delay %i ms" ), 
    689693                                 (int)(i_delay/1000) ); 
    690694            } 
     
    789793{ 
    790794    vlc_value_t val; 
    791     int i; 
    792795    char psz_bookmark_name[11]; 
    793796    playlist_t *p_playlist = pl_Yield( p_intf ); 
     
    849852    { 
    850853        secstotimestr( psz_duration, time.i_time / 1000000 ); 
    851         vout_OSDMessage( p_input, POSITION_TEXT_CHAN, "%s / %s", 
     854        vout_OSDMessage( p_input, POSITION_TEXT_CHAN, (char *) "%s / %s", 
    852855                         psz_time, psz_duration ); 
    853856    } 
     
    881884    else 
    882885    { 
    883         vout_OSDMessage( p_vout, VOLUME_TEXT_CHAN, "Volume %d%%"
     886        vout_OSDMessage( p_vout, VOLUME_TEXT_CHAN, _( "Volume %d%%" )
    884887                         i_vol*400/AOUT_VOLUME_MAX ); 
    885888    } 
  • modules/control/http/util.c

    r60eb0b5 r80fde19  
    207207 
    208208        sprintf( dir, "%s%c%s", psz_dir, sep, psz_filename ); 
    209         free( psz_filename ); 
     209        free( (char*) psz_filename ); 
    210210 
    211211        if( E_(ParseDirectory)( p_intf, psz_root, dir ) ) 
  • modules/control/motion.c

    rd3fe7f2 r80fde19  
    151151#define HIGH_THRESHOLD 100 
    152152        vout_thread_t *p_vout; 
    153         char *psz_filter, *psz_type; 
     153        const char *psz_filter, *psz_type; 
    154154        vlc_bool_t b_change = VLC_FALSE; 
    155155 
  • modules/control/rc.c

    r4ab1c77 r80fde19  
    11821182             || !strcmp( psz_cmd, "strack" ) ) 
    11831183    { 
    1184         char *psz_variable; 
     1184        const char *psz_variable; 
    11851185        vlc_value_t val_name; 
    11861186        int i_error; 
     
    14761476            "logo-file\0" "logo-x\0" "logo-y\0" "logo-position\0" 
    14771477            "logo-transparency\0"; 
    1478         const char *psz_name
     1478        const char *psz_name = NULL
    14791479 
    14801480        if( newval.psz_string ) 
  • modules/control/telnet.c

    rc1acae6 r80fde19  
    270270            cl->buffer_write = NULL; 
    271271            cl->p_buffer_write = cl->buffer_write; 
    272             Write_message( cl, NULL, "Password: \xff\xfb\x01", WRITE_MODE_PWD ); 
     272            Write_message( cl, NULL, 
     273                           _( "Password: \xff\xfb\x01" ), WRITE_MODE_PWD ); 
    273274 
    274275            TAB_APPEND( p_sys->i_clients, p_sys->clients, cl ); 
     
    377378                if( cl->p_buffer_read - cl->buffer_read == 999 ) 
    378379                { 
    379                     Write_message( cl, NULL, "Line too long\r\n"
     380                    Write_message( cl, NULL, _( "Line too long\r\n" )
    380381                                   cl->i_mode + 2 ); 
    381382                } 
     
    407408                if( strcmp( psz_password, cl->buffer_read ) == 0 ) 
    408409                { 
    409                     Write_message( cl, NULL, "\xff\xfc\x01\r\nWelcome, " 
    410                                    "Master\r\n> ", WRITE_MODE_CMD ); 
     410                    Write_message( cl, NULL, _( "\xff\xfc\x01\r\nWelcome, " 
     411                                   "Master\r\n> " ), WRITE_MODE_CMD ); 
    411412                } 
    412413                else 
     
    414415                    /* wrong password */ 
    415416                    Write_message( cl, NULL, 
    416                                    "\r\nWrong password.\r\nPassword: "
     417                                   _( "\r\nWrong password.\r\nPassword: " )
    417418                                   WRITE_MODE_PWD ); 
    418419                } 
  • modules/demux/asf/libasf.c

    rd3fe7f2 r80fde19  
    13641364{ 
    13651365    const guid_t *p_id; 
    1366     char *psz_name; 
     1366    const char *psz_name; 
    13671367} ASF_ObjectDumpDebugInfo[] = 
    13681368{ 
  • modules/demux/avi/libavi.c

    rd3fe7f2 r80fde19  
    567567{ 
    568568    vlc_fourcc_t i_fourcc; 
    569     char *psz_type; 
     569    const char *psz_type; 
    570570} AVI_strz_type[] = 
    571571{ 
  • modules/demux/mp4/libmp4.c

    rd3fe7f2 r80fde19  
    8383 
    8484#define MP4_READBOX_ENTER( MP4_Box_data_TYPE_t ) \ 
    85     uint64_t  i_read = p_box->i_size; \ 
     85    int64_t  i_read = p_box->i_size; \ 
    8686    uint8_t *p_peek, *p_buff; \ 
    8787    int i_actually_read; \ 
     
    9191    } \ 
    9292    i_actually_read = stream_Read( p_stream, p_peek, i_read ); \ 
    93     if( i_actually_read < 0 || (uint64_t)i_actually_read < i_read )\ 
     93    if( i_actually_read < 0 || (int64_t)i_actually_read < i_read )\ 
    9494    { \ 
    9595        free( p_buff ); \ 
     
    20562056        if( i_ret ) 
    20572057        { 
    2058             char *psz_error; 
     2058            const char *psz_error; 
    20592059 
    20602060            switch( i_ret ) 
  • modules/demux/ts.c

    rd3fe7f2 r80fde19  
    389389 
    390390    ts_pid_t    *pat; 
    391     char        *psz_mode; 
     391    const char  *psz_mode; 
    392392    vlc_bool_t   b_append; 
    393393    vlc_bool_t   b_topfield = VLC_FALSE; 
  • modules/misc/dummy/aout.c

    rd3fe7f2 r80fde19  
    3030#include <vlc/vlc.h> 
    3131#include <vlc_aout.h> 
     32 
     33#include "dummy.h" 
    3234 
    3335#define FRAME_SIZE 2048 
  • modules/misc/dummy/decoder.c

    rd3fe7f2 r80fde19  
    4848 
    4949#include <stdio.h> /* sprintf() */ 
     50 
     51#include "dummy.h" 
    5052 
    5153/***************************************************************************** 
  • modules/misc/dummy/encoder.c

    rd3fe7f2 r80fde19  
    2727#include <vlc/vlc.h> 
    2828#include <vlc_codec.h> 
     29#include "dummy.h" 
    2930 
    3031/***************************************************************************** 
  • modules/misc/dummy/input.c

    rd3fe7f2 r80fde19  
    3333#include <vlc_demux.h> 
    3434#include <vlc_playlist.h> 
     35 
     36#include "dummy.h" 
    3537 
    3638/***************************************************************************** 
  • modules/misc/dummy/interface.c

    rd3fe7f2 r80fde19  
    3131#include <vlc_interface.h> 
    3232 
     33#include "dummy.h" 
     34 
    3335/***************************************************************************** 
    3436 * Open: initialize dummy interface 
  • modules/misc/dummy/renderer.c

    rd3fe7f2 r80fde19  
    2727#include <vlc_filter.h> 
    2828 
     29#include "dummy.h" 
     30 
    2931static int RenderText( filter_t *, subpicture_region_t *, 
    3032                       subpicture_region_t * ); 
  • modules/misc/dummy/vout.c

    rd3fe7f2 r80fde19  
    3434#define DUMMY_HEIGHT 16 
    3535#define DUMMY_MAX_DIRECTBUFFERS 10 
     36 
     37#include "dummy.h" 
    3638 
    3739/***************************************************************************** 
  • modules/misc/logger.c

    rd3fe7f2 r80fde19  
    106106 * Module descriptor 
    107107 *****************************************************************************/ 
    108 static char *mode_list[] = { "text", "html" 
     108static const char *mode_list[] = { "text", "html" 
    109109#ifdef HAVE_SYSLOG_H 
    110110,"syslog" 
    111111#endif 
    112112}; 
    113 static char *mode_list_text[] = { N_("Text"), "HTML" 
     113static const char *mode_list_text[] = { N_("Text"), "HTML" 
    114114#ifdef HAVE_SYSLOG_H 
    115115, "syslog" 
  • modules/mux/mpeg/csa.c

    r2cb472d r80fde19  
    6060 * csa_New: 
    6161 *****************************************************************************/ 
    62 csa_t *csa_New(
     62csa_t *csa_New( void
    6363{ 
    6464    csa_t *c = malloc( sizeof( csa_t ) ); 
  • modules/packetizer/mpeg4audio.c

    rd3fe7f2 r80fde19  
    6969    mtime_t i_pts; 
    7070 
    71     int i_frame_size, i_raw_blocks; 
     71    int i_frame_size; 
     72    unsigned int i_raw_blocks; 
    7273    unsigned int i_channels; 
    7374    unsigned int i_rate, i_frame_length, i_header_size; 
  • modules/stream_out/standard.c

    rd3fe7f2 r80fde19  
    159159    { 
    160160        /* by extension */ 
    161         static struct { char *ext; char *mux; } exttomux[] = 
     161        static struct { const char *ext; const char *mux; } exttomux[] = 
    162162        { 
    163163            { "avi", "avi" }, 
  • modules/video_filter/motiondetect.c

    rdfc8b3d r80fde19  
    138138    const uint8_t *p_inpix_v = p_inpic->p[V_PLANE].p_pixels; 
    139139    const int i_src_pitch_u = p_inpic->p[U_PLANE].i_pitch; 
    140     const int i_src_visible_u = p_inpic->p[U_PLANE].i_visible_pitch; 
    141140    const int i_num_lines_u = p_inpic->p[U_PLANE].i_visible_lines; 
    142141 
     
    258257                        break; 
    259258 
    260                     case2: 
     259                    case 2: 
    261260                        p_buf2[line*i_src_pitch+2*col] += diff; 
    262261                        p_buf2[line*i_src_pitch+2*col+1] += diff;