Changeset a62595b97ffddfb1e75827354ff56da227f44cad
- 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
| rdd9d6f4 |
ra62595b |
|
| 173 | 173 | libvlc_exception_t *p_e ) |
|---|
| 174 | 174 | { |
|---|
| 175 | | if( libvlc_InternalAddIntf( p_i->p_libvlc_int, name, true ) ) |
|---|
| | 175 | if( libvlc_InternalAddIntf( p_i->p_libvlc_int, name ) ) |
|---|
| 176 | 176 | RAISEVOID( "Interface initialization failed" ); |
|---|
| 177 | 177 | } |
|---|
| r6349569 |
ra62595b |
|
| 45 | 45 | VLC_EXPORT (int, libvlc_InternalDestroy, ( libvlc_int_t *, bool ) ); |
|---|
| 46 | 46 | |
|---|
| 47 | | VLC_EXPORT (int, libvlc_InternalAddIntf, ( libvlc_int_t *, const char *, bool ) ); |
|---|
| | 47 | VLC_EXPORT (int, libvlc_InternalAddIntf, ( libvlc_int_t *, const char * ) ); |
|---|
| 48 | 48 | |
|---|
| 49 | 49 | /*************************************************************************** |
|---|
| rc75dafa |
ra62595b |
|
| 795 | 795 | { |
|---|
| 796 | 796 | sprintf( psz_temp, "%s,none", psz_module ); |
|---|
| 797 | | libvlc_InternalAddIntf( p_libvlc, psz_temp, false ); |
|---|
| | 797 | libvlc_InternalAddIntf( p_libvlc, psz_temp ); |
|---|
| 798 | 798 | free( psz_temp ); |
|---|
| 799 | 799 | } |
|---|
| … | … | |
| 805 | 805 | * Always load the hotkeys interface if it exists |
|---|
| 806 | 806 | */ |
|---|
| 807 | | libvlc_InternalAddIntf( p_libvlc, "hotkeys,none", false ); |
|---|
| | 807 | libvlc_InternalAddIntf( p_libvlc, "hotkeys,none" ); |
|---|
| 808 | 808 | |
|---|
| 809 | 809 | #ifdef HAVE_DBUS |
|---|
| … | … | |
| 811 | 811 | * we do it only when playlist exists, because dbus module needs it */ |
|---|
| 812 | 812 | if( config_GetInt( p_libvlc, "one-instance" ) > 0 ) |
|---|
| 813 | | libvlc_InternalAddIntf( p_libvlc, "dbus,none", false ); |
|---|
| | 813 | libvlc_InternalAddIntf( p_libvlc, "dbus,none" ); |
|---|
| 814 | 814 | |
|---|
| 815 | 815 | /* Prevents the power management daemon from suspending the system |
|---|
| 816 | 816 | * when VLC is active */ |
|---|
| 817 | 817 | if( config_GetInt( p_libvlc, "inhibit" ) > 0 ) |
|---|
| 818 | | libvlc_InternalAddIntf( p_libvlc, "inhibit,none", false ); |
|---|
| | 818 | libvlc_InternalAddIntf( p_libvlc, "inhibit,none" ); |
|---|
| 819 | 819 | #endif |
|---|
| 820 | 820 | |
|---|
| … | … | |
| 826 | 826 | if( config_GetInt( p_libvlc, "disable-screensaver" ) ) |
|---|
| 827 | 827 | { |
|---|
| 828 | | libvlc_InternalAddIntf( p_libvlc, "screensaver,none", false ); |
|---|
| | 828 | libvlc_InternalAddIntf( p_libvlc, "screensaver,none" ); |
|---|
| 829 | 829 | } |
|---|
| 830 | 830 | #endif |
|---|
| … | … | |
| 832 | 832 | if( config_GetInt( p_libvlc, "file-logging" ) > 0 ) |
|---|
| 833 | 833 | { |
|---|
| 834 | | libvlc_InternalAddIntf( p_libvlc, "logger,none", false ); |
|---|
| | 834 | libvlc_InternalAddIntf( p_libvlc, "logger,none" ); |
|---|
| 835 | 835 | } |
|---|
| 836 | 836 | #ifdef HAVE_SYSLOG_H |
|---|
| … | … | |
| 839 | 839 | char *logmode = var_CreateGetString( p_libvlc, "logmode" ); |
|---|
| 840 | 840 | var_SetString( p_libvlc, "logmode", "syslog" ); |
|---|
| 841 | | libvlc_InternalAddIntf( p_libvlc, "logger,none", false ); |
|---|
| | 841 | libvlc_InternalAddIntf( p_libvlc, "logger,none" ); |
|---|
| 842 | 842 | |
|---|
| 843 | 843 | if( logmode ) |
|---|
| … | … | |
| 853 | 853 | if( config_GetInt( p_libvlc, "show-intf" ) > 0 ) |
|---|
| 854 | 854 | { |
|---|
| 855 | | libvlc_InternalAddIntf( p_libvlc, "showintf,none", false ); |
|---|
| | 855 | libvlc_InternalAddIntf( p_libvlc, "showintf,none" ); |
|---|
| 856 | 856 | } |
|---|
| 857 | 857 | |
|---|
| 858 | 858 | if( config_GetInt( p_libvlc, "network-synchronisation") > 0 ) |
|---|
| 859 | 859 | { |
|---|
| 860 | | libvlc_InternalAddIntf( p_libvlc, "netsync,none", false ); |
|---|
| | 860 | libvlc_InternalAddIntf( p_libvlc, "netsync,none" ); |
|---|
| 861 | 861 | } |
|---|
| 862 | 862 | |
|---|
| … | … | |
| 1099 | 1099 | * Add an interface plugin and run it |
|---|
| 1100 | 1100 | */ |
|---|
| 1101 | | int libvlc_InternalAddIntf( libvlc_int_t *p_libvlc, char const *psz_module, |
|---|
| 1102 | | bool b_play ) |
|---|
| | 1101 | int libvlc_InternalAddIntf( libvlc_int_t *p_libvlc, char const *psz_module ) |
|---|
| 1103 | 1102 | { |
|---|
| 1104 | 1103 | int i_err; |
|---|
| … | … | |
| 1134 | 1133 | } |
|---|
| 1135 | 1134 | |
|---|
| 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 | | |
|---|
| 1140 | 1135 | /* Try to run the interface */ |
|---|
| 1141 | | p_intf->b_play = b_play; |
|---|
| | 1136 | p_intf->b_play = false; /* TODO: remove b_play completely */ |
|---|
| 1142 | 1137 | i_err = intf_RunThread( p_intf ); |
|---|
| 1143 | 1138 | if( i_err ) |
|---|