Changeset e058a31531c7d1375a0bc1a3540d4f15cb40da4e

Show
Ignore:
Timestamp:
06/03/02 01:11:48 (6 years ago)
Author:
Sam Hocevar <sam@videolan.org>
git-committer:
Sam Hocevar <sam@videolan.org> 1023059508 +0000
git-parent:

[1a6e240dba69093e2b2e6e23156b3e0b34ee60ca]

git-author:
Sam Hocevar <sam@videolan.org> 1023059508 +0000
Message:

(new in MAIN)

  • ./plugins/spudec/spu_decoder.c: we now use FIND_ANYWHERE to find a vout.

(ported from v0_4_1_branch)

  • ./plugins/dvdread/dvdread.c: disabled the dvdread plugin because it
    currently sucks.
  • ./src/misc/configuration.c, ./src/interface/main.c: we now accept --nofoo
    and --no-foo as negations for --foo. Also, the --help output is nicer.
  • ./plugins/qnx/vout_qnx.c: QNX compilation fix.
Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • ChangeLog

    rb60815c re058a31  
    55HEAD 
    66 
     7  * ./plugins/spudec/spu_decoder.c: we now use FIND_ANYWHERE to find a vout. 
    78  * ./plugins/dvd/dvd_es.c, ./plugins/satellite/input_satellite.c, 
    89    ./plugins/dvdread/input_dvdread.c: updated outdated variable names. 
    9   * ./src/playlist/playlist.c, src/input/input.c: added safety checks to 
     10  * ./src/playlist/playlist.c, ./src/input/input.c: added safety checks to 
    1011    prevent crashes on next file. 
    1112  * ./src/misc/objects.c: commented all functions. 
     
    1718    not include CVS Id lines in automatically created files. 
    1819  * ./plugins/dummy/intf_dummy.c, ./plugins/chroma/i420_yuy2.c, 
    19     src/interface/intf_eject.c, src/misc/threads.c: win32 compilation fix. 
    20   * ./plugins/directx/aout_directx.c, plugins/directx/vout_directx.c, 
     20    ./src/interface/intf_eject.c, ./src/misc/threads.c: win32 compilation fix. 
     21  * ./plugins/directx/aout_directx.c, ./plugins/directx/vout_directx.c, 
    2122    ./plugins/directx/vout_events.c: the DirectX notification and event threads 
    2223    now use the vlc_thread_create / vlc_thread_ready scheme. Untested. 
     
    3738Not released yet 
    3839 
    39   * ./plugins/macosx: rewrote the net panel for OS X 
     40  * ./plugins/dvdread/dvdread.c: disabled the dvdread plugin because it 
     41    currently sucks. 
     42  * ./src/misc/configuration.c, ./src/interface/main.c: we now accept --nofoo 
     43    and --no-foo as negations for --foo. Also, the --help output is nicer. 
     44  * ./plugins/macosx/*: rewrote the net panel for OS X 
     45  * ./plugins/qnx/vout_qnx.c: QNX compilation fix. 
    4046  * ./plugins/spudec/spu_decoder.c: fixed a margin bug in the SPU renderer 
    4147    which caused subtitles to appear slanted in odd width windows. 
  • plugins/dvdread/dvdread.c

    r9e3ab28 re058a31  
    33 ***************************************************************************** 
    44 * Copyright (C) 2001 VideoLAN 
    5  * $Id: dvdread.c,v 1.16 2002/06/01 12:31:59 sam Exp $ 
     5 * $Id: dvdread.c,v 1.17 2002/06/02 23:11:48 sam Exp $ 
    66 * 
    77 * Authors: Samuel Hocevar <sam@zoy.org> 
     
    4747    ADD_CAPABILITY( DEMUX, 0 ) 
    4848    ADD_CAPABILITY( ACCESS, 110 ) 
    49     ADD_SHORTCUT( "dvd" ) 
     49    //ADD_SHORTCUT( "dvd" ) 
    5050MODULE_INIT_STOP 
    5151 
  • plugins/qnx/vout_qnx.c

    r9e3ab28 re058a31  
    168168    p_vout->b_fullscreen = config_GetInt( p_vout, "fullscreen" ); 
    169169    p_vout->p_sys->i_mode = config_GetInt( p_vout, "overlay" ) ? 
    170                                 MODE_NORMAL_OVERLAY : MODE_VIDEO_MEM; 
     170                                MODE_VIDEO_OVERLAY : MODE_VIDEO_MEM; 
    171171    p_vout->p_sys->dim.w = p_vout->i_window_width; 
    172172    p_vout->p_sys->dim.h = p_vout->i_window_height; 
  • plugins/spudec/spu_decoder.c

    r695669c re058a31  
    33 ***************************************************************************** 
    44 * Copyright (C) 2000-2001 VideoLAN 
    5  * $Id: spu_decoder.c,v 1.26 2002/06/02 13:49:35 sam Exp $ 
     5 * $Id: spu_decoder.c,v 1.27 2002/06/02 23:11:48 sam Exp $ 
    66 * 
    77 * Authors: Samuel Hocevar <sam@zoy.org> 
     
    173173 
    174174        p_spudec->p_vout = vlc_object_find( p_spudec->p_fifo, VLC_OBJECT_VOUT, 
    175                                                               FIND_CHILD ); 
     175                                                              FIND_ANYWHERE ); 
    176176 
    177177        if( p_spudec->p_vout ) 
  • src/libvlc.c

    r211d6ba re058a31  
    55 ***************************************************************************** 
    66 * Copyright (C) 1998-2001 VideoLAN 
    7  * $Id: libvlc.c,v 1.5 2002/06/02 09:03:54 sam Exp $ 
     7 * $Id: libvlc.c,v 1.6 2002/06/02 23:11:48 sam Exp $ 
    88 * 
    99 * Authors: Vincent Seguin <seguin@via.ecp.fr> 
     
    823823static void Usage( vlc_t *p_this, const char *psz_module_name ) 
    824824{ 
    825 #define FORMAT_STRING "      --%s%s%s%s%s%s %s%s\n" 
    826     /* option name prefix ------' | | | | |  | | 
    827      * option name ---------------' | | | |  | | 
    828      * <bra ------------------------' | | |  | | 
    829      * option type or "" -------------' | |  | | 
    830      * ket> ----------------------------' |  | | 
    831      * padding spaces --------------------'  | | 
    832      * comment ------------------------------' | 
    833      * comment suffix -------------------------' 
     825#define FORMAT_STRING "      --%s%s%s%s%s%s%s %s%s\n" 
     826    /* option name -------------'     | | | |  | | 
     827     * <bra --------------------------' | | |  | | 
     828     * option type or "" ---------------' | |  | | 
     829     * ket> ------------------------------' |  | | 
     830     * padding spaces ----------------------'  | | 
     831     * comment --------------------------------' | 
     832     * comment suffix ---------------------------' 
    834833     * 
    835834     * The purpose of having bra and ket is that we might i18n them as well. 
     
    860859        if( psz_module_name && strcmp( psz_module_name, 
    861860                                       p_module->psz_object_name ) ) 
     861        { 
    862862            continue; 
     863        } 
    863864 
    864865        /* Ignore modules without config options */ 
    865         if( !p_module->i_config_items ) continue; 
     866        if( !p_module->i_config_items ) 
     867        { 
     868            continue; 
     869        } 
    866870 
    867871        /* Print module name */ 
     
    874878        { 
    875879            char *psz_bra = NULL, *psz_type = NULL, *psz_ket = NULL; 
    876             char *psz_suf = ""
     880            char *psz_suf = "", *psz_prefix = NULL
    877881            int i; 
    878882 
     
    926930                     && !b_help_module ) 
    927931                { 
    928                     i -= 5; 
     932                    vlc_bool_t b_dash = 0; 
     933                    psz_prefix = p_item->psz_name; 
     934                    while( *psz_prefix ) 
     935                    { 
     936                        if( *psz_prefix++ == '-' ) 
     937                        { 
     938                            b_dash = 1; 
     939                            break; 
     940                        } 
     941                    } 
     942 
     943                    if( b_dash ) 
     944                    { 
     945                        psz_prefix = ", --no-"; 
     946                        i -= strlen( p_item->psz_name ) + strlen( ", --no-" ); 
     947                    } 
     948                    else 
     949                    { 
     950                        psz_prefix = ", --no"; 
     951                        i -= strlen( p_item->psz_name ) + strlen( ", --no" ); 
     952                    } 
    929953                } 
    930954 
     
    939963                } 
    940964 
    941                 fprintf( stderr, psz_format, 
    942                          ( p_item->i_type == MODULE_CONFIG_ITEM_BOOL 
    943                             && !b_help_module ) ? "(no-)" : "", 
    944                          p_item->psz_name, psz_bra, psz_type, psz_ket, 
    945                          psz_spaces, p_item->psz_text, psz_suf ); 
     965                if( p_item->i_type == MODULE_CONFIG_ITEM_BOOL && 
     966                    !b_help_module ) 
     967                { 
     968                    fprintf( stderr, psz_format, p_item->psz_name, psz_prefix, 
     969                             p_item->psz_name, psz_bra, psz_type, psz_ket, 
     970                             psz_spaces, p_item->psz_text, psz_suf ); 
     971                } 
     972                else 
     973                { 
     974                    fprintf( stderr, psz_format, p_item->psz_name, "", "", 
     975                             psz_bra, psz_type, psz_ket, psz_spaces, 
     976                             p_item->psz_text, psz_suf ); 
     977                } 
    946978                psz_spaces[i] = ' '; 
    947979            } 
  • src/misc/configuration.c

    r71ec135 re058a31  
    33 ***************************************************************************** 
    44 * Copyright (C) 2001 VideoLAN 
    5  * $Id: configuration.c,v 1.28 2002/06/01 18:04:49 sam Exp $ 
     5 * $Id: configuration.c,v 1.29 2002/06/02 23:11:48 sam Exp $ 
    66 * 
    77 * Authors: Gildas Bazin <gbazin@netcourrier.com> 
     
    878878         * longopts). We also need to allocate space for too options when 
    879879         * dealing with boolean to allow for --foo and --no-foo */ 
    880         i_opts += (p_module->i_config_items + p_module->i_bool_items); 
     880        i_opts += (p_module->i_config_items + 2 * p_module->i_bool_items); 
    881881    } 
    882882 
     
    947947            if( p_item->i_type == MODULE_CONFIG_ITEM_BOOL ) 
    948948            { 
    949                 char *psz_name = malloc( strlen(p_item->psz_name) + 4 ); 
     949                char *psz_name = malloc( strlen(p_item->psz_name) + 3 ); 
     950                if( psz_name == NULL ) continue; 
     951                strcpy( psz_name, "no" ); 
     952                strcat( psz_name, p_item->psz_name ); 
     953 
     954                p_longopts[i_index].name = psz_name; 
     955                p_longopts[i_index].has_arg = no_argument; 
     956                p_longopts[i_index].flag = &flag; 
     957                p_longopts[i_index].val = 1; 
     958                i_index++; 
     959 
     960                psz_name = malloc( strlen(p_item->psz_name) + 4 ); 
    950961                if( psz_name == NULL ) continue; 
    951962                strcpy( psz_name, "no-" );