1. 14 Oct, 2002 3 commits
    • Sam Hocevar's avatar
      * ./modules/misc/testsuite/test4.c: made the 4th test less CPU intensive · 2f278849
      Sam Hocevar authored
          by making the spawned threads wait a bit longer.
        * ./src/misc/variables.c: added a usage count to the variables; trying to
          create a variable with the same name only increments its refcount.
      2f278849
    • Sam Hocevar's avatar
      * ./include/vlc/vlc.h, ./src/libvlc.c: added VLC_Error() to the libvlc API. · bf7985b7
      Sam Hocevar authored
        * ./include/main.h: removed p_vlc->i_status because it was not sufficient
          to represent all the possible states of p_vlc; each part should be tested
          separately upon destruction.
        * ./src/misc/objects.c: fixed a signed/unsigned bug that prevented creation
          of VLC_OBJECT_GENERIC objects.
      
        * ./src/misc/variables.c: added the VLC_VAR_COMMAND type which is simply a
          variable that stores a function pointer, and calls it when var_Get is
          called for it. The function argument is taken in val.psz_string.
        * ./src/misc/objects.c: vlc_dumpstructure and vlc_liststructure are no longer
          exported to the rest of the program; instead, they're VLC_VAR_COMMAND vars
          ("tree" and "list").
        * ./modules/control/rc/rc.c: moved a few commands to VLC_VAR_COMMAND vars.
      bf7985b7
    • Sam Hocevar's avatar
  2. 11 Oct, 2002 3 commits
    • Sam Hocevar's avatar
      Changes to the libvlc API: · 464bd2e5
      Sam Hocevar authored
        * ./include/vlc/vlc.h: changed the naming conventions for libvlc. Now
          exported functions start with VLC_ instead of vlc_ to avoid conflicts.
        * ./include/vlc/vlc.h: removed the vlc_object_t, vlc_list_t, vlc_error_t
          and vlc_t types; they are now internal types only.
        * ./include/vlc/vlc.h: merged the reentrant and non-reentrant libvlc
          calls. In non-reentrant mode, we just use 0 as the first argument. In
          reentrant mode, we use an object's ID. (see below)
      
      Internal changes:
        * ./src/libvlc.c, ./src/misc/objects.c: instead of manipulating vlc_object_t
          pointers, we manipulate their i_object_id. When needed, an object is
          retrieved using vlc_object_get (I hope the lookup isn't too expensive,
          that's why I designed the pp_objects layout to allow log2(n) seeks).
        * ./src/misc/objects.c: activated the per-object variable storage. Unused
          yet, unless you want to try "getfoo" and "setfoo blablah" in vlc -I rc.
        * ./include/vlc_objects.h: moved the vlc_object_t and vlc_list_t definitions
          here.
      
      Misc:
        * ./src/vlc.c, ./mozilla/vlcshell.cpp: removed inclusion of config.h in
          code portions not part of libvlc; it was just required for the
          COPYRIGHT_MESSAGE string which is now available from VLC_Version().
      464bd2e5
    • Sam Hocevar's avatar
      * ./src/misc/variables.c, ./include/variables.h: a few functions for · f78e5583
      Sam Hocevar authored
          in-object variable storage. Unused yet (not even compiled).
      f78e5583
    • gbazin's avatar
      · cc5919ad
      gbazin authored
      * src/misc/modules.c: fixed a memory leak with the "plugin-path" config option.
      * modules/audio_output/directx.c, modules/audio_output/waveout.c: ported the directx
         and waveout audio plugins to the new changes in the audio output layer.
      * configure.ac.in: fixes for cygwin compilation, and the gtk plugin under mingw32.
      cc5919ad
  3. 10 Oct, 2002 1 commit
  4. 09 Oct, 2002 2 commits
  5. 08 Oct, 2002 2 commits
  6. 05 Oct, 2002 1 commit
  7. 04 Oct, 2002 2 commits
    • Sam Hocevar's avatar
      * ./configure.ac.in: removed now unnecessary --force-exe-suffix flag. · 89987e11
      Sam Hocevar authored
        * ./src/misc/objects.c: structure_lock is now local.
        * ./src/misc/threads.c: implemented named mutexes which provide a handy
          way to protect data across plugins which might be sharing the same
          resources. Thread-unsafe libraries come to mind, but we can imagine
          using a named mutex for configuration files, or special devices.
        * ./include/main.h: removed global_lock because of vlc_mutex_need, removed
          p_global_data because it was never used, removed structure_lock because
          it did not belong here.
      89987e11
    • gbazin's avatar
      · 80b15699
      gbazin authored
      * src/misc/threads.c, src/misc/win32_specific.c, include/interface.h: fixed typos.
      * configure.ac.in, modules/gui/gtk/gtk.c: Added a NEED_GTK_MAIN macro to the compiler
         flags for the gtk module. When this macro isn't defined, then the gtk module
         doesn't make use of the gtk_main module. I had to do this change because the
         gtk_main trick can't work on win32 and render the whole gtk interface unusable.
      80b15699
  8. 03 Oct, 2002 3 commits
    • Sam Hocevar's avatar
      * ./configure.ac.in: duplicated arguments to AM_INIT_AUTOMAKE to fix · f501554a
      Sam Hocevar authored
          locales breakage.
        * ./src/libvlc.c: libvlc understands the VLC_VERBOSE environment variable,
          to be set between 0 and 4. Default value is 0 for a program using libvlc,
          but vlc sets it to 1 by default.
        * ./src/misc/configuration.c: -v now works the old way (-v, -vv, -vvv) as
          well as the new way (-v0, -v1, -v4). -v1 is the same as -v, and -v0 is
          the same as -q (quiet). Hope it's all understandable.
      f501554a
    • gbazin's avatar
      · 6dafa419
      gbazin authored
      * 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.
      6dafa419
    • Sam Hocevar's avatar
      * ./src/libvlc.c, ./include/main.h: the root of all objects is now · 145b1961
      Sam Hocevar authored
          p_libvlc, and each p_vlc is a child of p_libvlc. Reasons for this are:
      
           o the module bank and the message bank only need to be initialized once,
             which gives faster loads when multiple instances of libvlc are used,
           o we allow the possibility of different p_vlc sharing objects, for
             instance the audio output,
           o the CPU detection is only done once.
      
          This patch is not polished yet, but I cannot do any intensive tests for
          the moment because of a bug somewhere that leaves audio output objects
          lying here and there which needs to be investigated first. The current
          major issue is that the module bank is no longer freed.
      145b1961
  9. 01 Oct, 2002 1 commit
  10. 30 Sep, 2002 6 commits
  11. 29 Sep, 2002 2 commits
  12. 28 Sep, 2002 1 commit
  13. 27 Sep, 2002 1 commit
  14. 26 Sep, 2002 1 commit
  15. 23 Sep, 2002 1 commit
  16. 22 Sep, 2002 1 commit
  17. 20 Sep, 2002 1 commit
  18. 19 Sep, 2002 1 commit
  19. 18 Sep, 2002 1 commit
  20. 17 Sep, 2002 1 commit
  21. 16 Sep, 2002 1 commit
  22. 02 Sep, 2002 1 commit
    • Christophe Massiot's avatar
      The liba52 "codec" is now an audio filter. It means we are now able to · 34c71967
      Christophe Massiot authored
      autodetect S/PDIF hardware support and the audio output plug-in chooses
      the best one. Of course it probably breaks existing output modules, see
      oss.c for hints :).
      
      Also include minor tweaks which will entitle us to decode and output 5.1
      audio. It may break existing plug-ins, too. See
      audio_output.c:aout_FormatNbChannels for hints.
      34c71967
  23. 01 Sep, 2002 1 commit
  24. 30 Aug, 2002 2 commits