Changeset a62595b97ffddfb1e75827354ff56da227f44cad

Show
Ignore:
Timestamp:
06/04/08 18:32:23 (3 months ago)
Author:
Rémi Denis-Courmont <rdenis@simphalempin.com>
git-committer:
Rémi Denis-Courmont <rdenis@simphalempin.com> 1212597143 +0300
git-parent:

[17eeea99c4940cbbd43f2c7e25da23f5e6e133c2]

git-author:
Rémi Denis-Courmont <rdenis@simphalempin.com> 1212597143 +0300
Message:

libvlc_InternalAddIntf: remove the other boolean

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • src/control/core.c

    rdd9d6f4 ra62595b  
    173173                      libvlc_exception_t *p_e ) 
    174174{ 
    175     if( libvlc_InternalAddIntf( p_i->p_libvlc_int, name, true ) ) 
     175    if( libvlc_InternalAddIntf( p_i->p_libvlc_int, name ) ) 
    176176        RAISEVOID( "Interface initialization failed" ); 
    177177} 
  • src/control/libvlc_internal.h

    r6349569 ra62595b  
    4545VLC_EXPORT (int, libvlc_InternalDestroy, ( libvlc_int_t *, bool ) ); 
    4646 
    47 VLC_EXPORT (int, libvlc_InternalAddIntf, ( libvlc_int_t *, const char *, bool ) ); 
     47VLC_EXPORT (int, libvlc_InternalAddIntf, ( libvlc_int_t *, const char * ) ); 
    4848 
    4949/*************************************************************************** 
  • src/libvlc.c

    rc75dafa ra62595b  
    795795        { 
    796796            sprintf( psz_temp, "%s,none", psz_module ); 
    797             libvlc_InternalAddIntf( p_libvlc, psz_temp, false ); 
     797            libvlc_InternalAddIntf( p_libvlc, psz_temp ); 
    798798            free( psz_temp ); 
    799799        } 
     
    805805     * Always load the hotkeys interface if it exists 
    806806     */ 
    807     libvlc_InternalAddIntf( p_libvlc, "hotkeys,none", false ); 
     807    libvlc_InternalAddIntf( p_libvlc, "hotkeys,none" ); 
    808808 
    809809#ifdef HAVE_DBUS 
     
    811811     * we do it only when playlist exists, because dbus module needs it */ 
    812812    if( config_GetInt( p_libvlc, "one-instance" ) > 0 ) 
    813         libvlc_InternalAddIntf( p_libvlc, "dbus,none", false ); 
     813        libvlc_InternalAddIntf( p_libvlc, "dbus,none" ); 
    814814 
    815815    /* Prevents the power management daemon from suspending the system 
    816816     * when VLC is active */ 
    817817    if( config_GetInt( p_libvlc, "inhibit" ) > 0 ) 
    818         libvlc_InternalAddIntf( p_libvlc, "inhibit,none", false ); 
     818        libvlc_InternalAddIntf( p_libvlc, "inhibit,none" ); 
    819819#endif 
    820820 
     
    826826    if( config_GetInt( p_libvlc, "disable-screensaver" ) ) 
    827827    { 
    828         libvlc_InternalAddIntf( p_libvlc, "screensaver,none", false ); 
     828        libvlc_InternalAddIntf( p_libvlc, "screensaver,none" ); 
    829829    } 
    830830#endif 
     
    832832    if( config_GetInt( p_libvlc, "file-logging" ) > 0 ) 
    833833    { 
    834         libvlc_InternalAddIntf( p_libvlc, "logger,none", false ); 
     834        libvlc_InternalAddIntf( p_libvlc, "logger,none" ); 
    835835    } 
    836836#ifdef HAVE_SYSLOG_H 
     
    839839        char *logmode = var_CreateGetString( p_libvlc, "logmode" ); 
    840840        var_SetString( p_libvlc, "logmode", "syslog" ); 
    841         libvlc_InternalAddIntf( p_libvlc, "logger,none", false ); 
     841        libvlc_InternalAddIntf( p_libvlc, "logger,none" ); 
    842842 
    843843        if( logmode ) 
     
    853853    if( config_GetInt( p_libvlc, "show-intf" ) > 0 ) 
    854854    { 
    855         libvlc_InternalAddIntf( p_libvlc, "showintf,none", false ); 
     855        libvlc_InternalAddIntf( p_libvlc, "showintf,none" ); 
    856856    } 
    857857 
    858858    if( config_GetInt( p_libvlc, "network-synchronisation") > 0 ) 
    859859    { 
    860         libvlc_InternalAddIntf( p_libvlc, "netsync,none", false ); 
     860        libvlc_InternalAddIntf( p_libvlc, "netsync,none" ); 
    861861    } 
    862862 
     
    10991099 * Add an interface plugin and run it 
    11001100 */ 
    1101 int libvlc_InternalAddIntf( libvlc_int_t *p_libvlc, char const *psz_module, 
    1102                             bool b_play ) 
     1101int libvlc_InternalAddIntf( libvlc_int_t *p_libvlc, char const *psz_module ) 
    11031102{ 
    11041103    int i_err; 
     
    11341133    } 
    11351134 
    1136     /* Interface doesn't handle play on start so do it ourselves */ 
    1137     if( !p_intf->b_play && b_play ) 
    1138         playlist_Play( libvlc_priv(p_libvlc)->p_playlist ); 
    1139  
    11401135    /* Try to run the interface */ 
    1141     p_intf->b_play = b_play; 
     1136    p_intf->b_play = false; /* TODO: remove b_play completely */ 
    11421137    i_err = intf_RunThread( p_intf ); 
    11431138    if( i_err )