Changeset 6dafa419846a89a815750f3de722d8d675699658

Show
Ignore:
Timestamp:
03/10/02 19:01:59 (6 years ago)
Author:
Gildas Bazin <gbazin@videolan.org>
git-committer:
Gildas Bazin <gbazin@videolan.org> 1033664519 +0000
git-parent:

[145b1961b4825d2a8d807bf02db90440a8c45380]

git-author:
Gildas Bazin <gbazin@videolan.org> 1033664519 +0000
Message:

* FAQ: updated FAQ with config file issues.
* configure.ac.in: use -mms-bitfields instead of -fnative-struct for

mingw32 gcc-3.x.

* include/interface.h, modules/misc/dummy/interface.c, modules/misc/logger/logger.c,

modules/control/rc/rc.c: Display message on Win32 explaining how to get
back to the GUI mode.

* src/misc/threads.c, include/vlc_threads_funcs.h: ignore the

win9x-cv-method config option on WinNT when fast-mutex is not enabled.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • FAQ

    r67e0e79 r6dafa41  
    11Frequentely Asked Questions for VideoLAN Client 
    2 $Id: FAQ,v 1.10 2002/07/25 22:34:37 lool Exp $ 
     2$Id: FAQ,v 1.11 2002/10/03 17:01:59 gbazin Exp $ 
    33 
    441. Using VLC 
     
    7474deb     ftp://ftp.videolan.org/pub/videolan/ debian/ 
    7575deb-src ftp://ftp.videolan.org/pub/videolan/ debian/ 
     76 
     771.10 How can I save my VLC configuration ? 
     78---------------------------------------- 
     79Currently, the only way to save the configuration options in VLC is through 
     80the preferences menu in one of the graphical user interface plugins. 
     81 
     821.11 Where does VLC store it's config file ? 
     83------------------------------------------ 
     84Currently, a config file is created on a per user basis (there is no global 
     85configuration file). If you modify the available options in VLC and save the 
     86new configuration, then a configuration file will be created in your user 
     87directory. The precise location of this file depends on the Operating System 
     88you are running: 
     89 
     90- Unices (linux, etc...): "~/.videolan/vlcrc" 
     91- Windows: "Application Data\videolan\vlcrc" 
     92 
     931.12 I don't have access to the GUI anymore 
     94------------------------------------------- 
     95If you change the default interface module in the preferences menu to a non 
     96GUI module (ie. to a command line interface) and then save the configuration, 
     97the only way to get VLC to show a GUI again is to run it directly from the 
     98command line. 
     99For instance on Windows, you need to open a dos command box, go to the 
     100directory where you installed VLC (usually 
     101c:\Program Files\VideoLAN\VideoLAN Client) and then type "vlc --intf win32" 
     102You will then be able to modify the configuration again and save it. 
    76103 
    77104 
  • configure.ac.in

    r5c05d05 r6dafa41  
    9999    SYS=mingw32 
    100100    AC_CHECK_TOOL(WINDRES, windres, :) 
    101     CFLAGS_save="${CFLAGS_save} -fnative-struct"; CFLAGS="${CFLAGS_save}" 
    102101    CPPFLAGS_save="${CPPFLAGS_save} -D_OFF_T_ -D_off_t=long"; CPPFLAGS="${CPPFLAGS_save}" 
    103102    LDFLAGS_vlc="${LDFLAGS_vlc} -lws2_32 -lnetapi32 -mwindows -Xlinker --force-exe-suffix" 
     
    145144AC_MSG_RESULT(${LIBEXT}) 
    146145 
     146dnl Check for fnative-struct or mms-bitfields support for mingw32 
     147if test x$SYS = xmingw32 
     148then 
     149    AC_CACHE_CHECK([if \$CC accepts -mms-bitfields], 
     150        [ac_cv_c_mms_bitfields], 
     151        [CFLAGS="${CFLAGS_save} -mms-bitfields" 
     152         AC_TRY_COMPILE([],,ac_cv_c_mms_bitfields=yes, ac_cv_c_mms_bitfields=no)]) 
     153    if test x"$ac_cv_c_mms_bitfields" != x"no"; then 
     154        CFLAGS_mingw32_special="-mms-bitfields" 
     155    else 
     156        CFLAGS_mingw32_special="-fnative-struct" 
     157    fi 
     158 
     159    CFLAGS_save="${CFLAGS_save} ${CFLAGS_mingw32_special}"; CFLAGS="${CFLAGS_save}" 
     160fi 
     161 
    147162dnl Flags for plugin compilation 
    148163case "x${SYS}" in 
    149164  xmingw32|xcygwin) 
    150     CFLAGS_pics="${CFLAGS_pics} -fnative-struct
    151     CXXFLAGS_pics="${CXXFLAGS_pics} -fnative-struct
    152     OBJCFLAGS_pics="${OBJCFLAGS_pics} -fnative-struct
    153     CFLAGS_plugins="${CFLAGS_plugins} -fnative-struct
    154     CXXFLAGS_plugins="${CXXFLAGS_plugins} -fnative-struct
    155     OBJCFLAGS_plugins="${OBJCFLAGS_plugins} -fnative-struct
     165    CFLAGS_pics="${CFLAGS_pics} ${CFLAGS_mingw32_special}
     166    CXXFLAGS_pics="${CXXFLAGS_pics} ${CFLAGS_mingw32_special}
     167    OBJCFLAGS_pics="${OBJCFLAGS_pics} ${CFLAGS_mingw32_special}
     168    CFLAGS_plugins="${CFLAGS_plugins} ${CFLAGS_mingw32_special}
     169    CXXFLAGS_plugins="${CXXFLAGS_plugins} ${CFLAGS_mingw32_special}
     170    OBJCFLAGS_plugins="${OBJCFLAGS_plugins} ${CFLAGS_mingw32_special}
    156171    ;; 
    157172  x*) 
  • include/interface.h

    r976dfc3 r6dafa41  
    55 ***************************************************************************** 
    66 * Copyright (C) 1999, 2000 VideoLAN 
    7  * $Id: interface.h,v 1.33 2002/07/31 20:56:50 sam Exp $ 
     7 * $Id: interface.h,v 1.34 2002/10/03 17:01:59 gbazin Exp $ 
    88 * 
    99 * Authors: Vincent Seguin <seguin@via.ecp.fr> 
     
    2727 * intf_thread_t: describe an interface thread 
    2828 ***************************************************************************** 
    29  * This structe describes all interface-specific data of the main (interface) 
     29 * This struct describes all interface-specific data of the main (interface) 
    3030 * thread. 
    3131 *****************************************************************************/ 
     
    6060VLC_EXPORT( void,              intf_Destroy,    ( intf_thread_t * ) ); 
    6161 
     62/***************************************************************************** 
     63 * Macros 
     64 *****************************************************************************/ 
     65#ifdef WIN32 
     66#    define CONSOLE_INTRO_MSG \ 
     67                AllocConsole(); \ 
     68                freopen( "CONOUT$", "w", stdout ); \ 
     69                freopen( "CONOUT$", "w", stderr ); \ 
     70                freopen( "CONIN$", "r", stdin ); \ 
     71                intf_Msg( VERSION_MESSAGE ); \ 
     72                intf_Msg( _("\nWarning: if you can't access the GUI anymore, "\ 
     73                            "open a dos command box, go to the directory " \ 
     74                            "where you installed VLC and run " \ 
     75                            "\"vlc -I win32\"\n") ) 
     76#else 
     77#    define CONSOLE_INTRO_MSG 
     78#endif 
  • include/vlc_threads_funcs.h

    rb7d33a0 r6dafa41  
    44 ***************************************************************************** 
    55 * Copyright (C) 1999, 2002 VideoLAN 
    6  * $Id: vlc_threads_funcs.h,v 1.3 2002/08/30 19:16:05 sam Exp $ 
     6 * $Id: vlc_threads_funcs.h,v 1.4 2002/10/03 17:01:59 gbazin Exp $ 
    77 * 
    88 * Authors: Jean-Marc Dressler <polux@via.ecp.fr> 
     
    492492        p_condvar->i_waiting_threads++; 
    493493 
    494         if( p_condvar->SignalObjectAndWait && p_mutex->mutex ) 
     494        if( p_mutex->mutex ) 
    495495        { 
    496496            /* It is only possible to atomically release the mutex and 
  • modules/control/rc/rc.c

    r145b196 r6dafa41  
    33 ***************************************************************************** 
    44 * Copyright (C) 2001 VideoLAN 
    5  * $Id: rc.c,v 1.6 2002/10/03 13:21:55 sam Exp $ 
     5 * $Id: rc.c,v 1.7 2002/10/03 17:01:59 gbazin Exp $ 
    66 * 
    77 * Authors: Peter Surda <shurdeek@panorama.sth.ac.at> 
     
    9797    p_intf->pf_run = Run; 
    9898 
    99 #ifdef WIN32 
    100     AllocConsole(); 
    101     freopen( "CONOUT$", "w", stdout ); 
    102     freopen( "CONOUT$", "w", stderr ); 
    103     freopen( "CONIN$", "r", stdin ); 
    104     printf( VERSION_MESSAGE "\n" ); 
    105 #endif 
     99    CONSOLE_INTRO_MSG; 
    106100 
    107101    printf( "remote control interface initialized, `h' for help\n" ); 
  • modules/misc/dummy/interface.c

    r19ea8fe r6dafa41  
    33 ***************************************************************************** 
    44 * Copyright (C) 2000, 2001 VideoLAN 
    5  * $Id: interface.c,v 1.1 2002/08/04 17:23:43 sam Exp $ 
     5 * $Id: interface.c,v 1.2 2002/10/03 17:01:58 gbazin Exp $ 
    66 * 
    77 * Authors: Samuel Hocevar <sam@zoy.org> 
     
    4242{ 
    4343    intf_thread_t *p_intf = (intf_thread_t*) p_this; 
    44 #ifdef WIN32 
    45     AllocConsole(); 
    46     freopen( "CONOUT$", "w", stdout ); 
    47     freopen( "CONOUT$", "w", stderr ); 
    48     freopen( "CONIN$", "r", stdin ); 
    49     msg_Info( p_intf, VERSION_MESSAGE ); 
    50     msg_Info( p_intf, _("\nUsing the dummy interface plugin...") ); 
    51 #endif 
     44 
     45    CONSOLE_INTRO_MSG; 
     46    msg_Info( p_intf, _("Using the dummy interface plugin...") ); 
    5247 
    5348    p_intf->pf_run = Run; 
  • modules/misc/logger/logger.c

    ra60541d r6dafa41  
    33 ***************************************************************************** 
    44 * Copyright (C) 2002 VideoLAN 
    5  * $Id: logger.c,v 1.2 2002/08/24 17:04:36 gbazin Exp $ 
     5 * $Id: logger.c,v 1.3 2002/10/03 17:01:58 gbazin Exp $ 
    66 * 
    77 * Authors: Samuel Hocevar <sam@zoy.org> 
     
    9999    char *psz_mode, *psz_file; 
    100100 
    101 #ifdef WIN32 
    102     AllocConsole(); 
    103     freopen( "CONOUT$", "w", stdout ); 
    104     freopen( "CONOUT$", "w", stderr ); 
    105     freopen( "CONIN$", "r", stdin ); 
    106     msg_Info( p_intf, VERSION_MESSAGE ); 
    107     msg_Info( p_intf, _("\nUsing the logger interface plugin...") ); 
    108 #endif 
     101    CONSOLE_INTRO_MSG; 
     102    msg_Info( p_intf, _("Using the logger interface plugin...") ); 
    109103 
    110104    /* Allocate instance and initialize some members */ 
  • src/misc/threads.c

    r145b196 r6dafa41  
    33 ***************************************************************************** 
    44 * Copyright (C) 1999, 2000, 2001, 2002 VideoLAN 
    5  * $Id: threads.c,v 1.18 2002/10/03 13:21:55 sam Exp $ 
     5 * $Id: threads.c,v 1.19 2002/10/03 17:01:58 gbazin Exp $ 
    66 * 
    77 * Authors: Jean-Marc Dressler <polux@via.ecp.fr> 
     
    382382    p_condvar->SignalObjectAndWait = p_this->p_vlc->SignalObjectAndWait; 
    383383 
    384     if( p_this->p_vlc->i_win9x_cv == 0 ) 
     384    if( (p_condvar->SignalObjectAndWait && !p_this->p_vlc->b_fast_mutex) 
     385        || p_condvar->i_win9x_cv == 0 ) 
    385386    { 
    386387        /* Create an auto-reset event. */