1. 29 Jan, 2004 1 commit
    • gbazin's avatar
      * src/misc/configuration.c, include/configuration.h: added a... · f5c7fd83
      gbazin authored
      * src/misc/configuration.c, include/configuration.h: added a change_action_add()method to associate an action (that can be triggered through a gui) to a config var.
      * modules/gui/wxwindows/preferences_widgets.*: implemented partial support for change_action_add().
      * modules/access/dshow/dshow.cpp: use change_action_add() to refresh the list of devices and to add an option to configure a device.
      
      f5c7fd83
  2. 25 Jan, 2004 1 commit
  3. 13 Dec, 2003 1 commit
    • gbazin's avatar
      · d3de6466
      gbazin authored
      * src/playlist/*: when deleting the currently playing item, skip it instead of stopping the playlist.
      * include/modules_inner.h, include/configuration.h: don't use a static array anymore during the initialization of the plugins, malloc it instead. This fixes regular overflow problems we have when we increase the number of options in the main module.
      d3de6466
  4. 05 Nov, 2003 1 commit
  5. 14 Aug, 2003 1 commit
    • sigmunau's avatar
      First part of code to allow configurable hotkeys. · 1b9c64b1
      sigmunau authored
      include/configuration.h, src/misc/configuration.h:
       * added a CONFIG_ITEM_KEY
      include/vlc_keys.h:
       * constants to identify keys
      src/libvlc.h:
       * provide a set of hotkey config options
      modules/gui/wxwindows/interface.cpp, wxwindows.h:
       * set the configured hotkeys as accelerator for the appropriate menus
      modules/gui/wxwindows/preferences.cpp:
       * start to support CONFIG_ITEM_KEY. Options are showed with the right value
         but any changes made have no effect yet.
      1b9c64b1
  6. 10 Aug, 2003 1 commit
    • gbazin's avatar
      · 49d00069
      gbazin authored
      * include/configuration.h: bug fix for add_string_from_list()
      * modules/gui/wxwindows/*: added a subtitles encoding combobox in the subtitles dialog.
      49d00069
  7. 03 Aug, 2003 1 commit
    • gbazin's avatar
      · e1aabc8f
      gbazin authored
      * src/misc/configuration.c, include/configuration.h, src/audio_output/intf.c, include/audio_output.h, modules/gui/gtk/display.[ch]: configuration variables now use vlc_callback_t callbacks (same as the object variables).
      * modules/video_output/x11/*: support for the _NET_WM_STATE_FULLSCREEN hint from the Extended Window Manager Hints spec.
      * modules/audio_output/alsa.c: support for 4.0 and 5.1 audio channels. This time it has been tested ;)
      e1aabc8f
  8. 23 Jul, 2003 1 commit
    • gbazin's avatar
      · eb505a2f
      gbazin authored
      * ALL: changes to the playlist_Add() and VLC_AddTarget() proto to include a list of options associated with the input.
      * src/input/input.c: parses the input options list before spawning the input and create object variables for these options. Options are of the form "[no[-]]foo[=bar]" where foo is the option name and bar is its value.
      * src/input/input.c, src/input/input_dec.c: use the object var api to get the value of the "sout", "sout-video" and "sout-audio" options.
      * src/libvlc.c: extended the command line parser to parse input options. Input options must always follow the input they apply to and begin with a ':'.
      
      All these changes allow you to specify input specific options.
      eg: ./vlc --no-sout-audio yourvideo.mpeg :sout=udp/http::8080 :sout-audio yourvideo2.mpeg
      Here the ":sout" option will only apply to yourvideo.mpeg.
      "--no-sout-audio" will be a global option so will apply to yourvideo2.mpeg but the global behaviour is overriden by ":sout-audio" for yourvideo.mpeg.
      
      TODO: - the interfaces need to be modified to benefit from the new playlist_Add() api.
            - only "sout", "sout-video", "sout-audio" implemented for now. To make it work with other options, we need to get rid of all the config_GetFoo() and replace them with var_Create()/var_Change()/var_Get().
      eb505a2f
  9. 12 May, 2003 1 commit
    • gbazin's avatar
      · 0e7b380a
      gbazin authored
      * modules/gui/skins/*: got rid of wxdialogs.h, the skins plugin is now sharing wxwindows.h with the wxwindows plugin.
      * modules/video_output/directx/events.c: fixed non-initialized variable.
      * modules/gui/wxwindows/*: misc improvements to the playlist window (added an "Open MRL" menu as well as menus to load and save a playlist, we also make use of the "intf-change" playlist object variable now).
      * src/playlist/playlist.c: the playlist file is opened in text mode, no win32 eol hack is needed.
      * src/misc/configuration.c, include/configuration.h: new config_ResetAll() function to reset all config options to their original values (you still need to config_SaveConfigFile()).
      * modules/gui/wxwindows/preferences.cpp: new "Reset All" button in the preferences panel.
      0e7b380a
  10. 30 Mar, 2003 2 commits
    • gbazin's avatar
      · 17a31fd8
      gbazin authored
      * include/configuration.h: added the add_directory() config macro.
      * modules/gui/wxwindows/preferences.cpp: support for add_string_from_list().
      * ALL: changed some add_string() config options to add_file().
      17a31fd8
    • gbazin's avatar
      · 7587d7ef
      gbazin authored
      * configure.ac.in: removed the -fno-exceptions gcc option from the compilation of the skins plugin as it might be needed after all.
      * modules/demux/m3u.c: upped the priority of the m3u demux as some m3u files were mistaken for ts files.
      * include/configuration.h: added a CONFIG_ITEM_DIRECTORY config type.
      * modules/gui/wxwindows/*: the preferences dialog should be fully useable now.
      7587d7ef
  11. 20 Feb, 2003 1 commit
    • sigmunau's avatar
      * include/configuration.h: added a new flag to the configuration stucture to · 5a13b475
      sigmunau authored
      indicate wether it is an "advanced" option or not. The goal with this is to
      hide the user from all the strange options that very seldom needs to be
      changed. added an extra argument to all the add_* macros to indicate wether
      the item is advanced or not.
      * src/libvlc.h: added an "show advanced options" config option default
      disabled
      * src/libvlc.c: the advanced options are not listed by vlc --help and
      friends unless --advanced is used
      * modules/gtk/preferences.c: the gtk/gnome preferences dialog don't show
      advanced options unless advanced is set
      all: set the advanced flag to VLC_FALSE or VLC_TRUE for all options, by
      using some common sense. Please check and correct
      
      note: All interfaces should still work like they used to, see the change in
      modules/gtk/preferences.c to find out how to "hide" options.
      
      second note: I think I've changed all the modules, but I could not test
      everyone for compilation, expect some broken modules (the fix is to add ",
      VLC_TRUE" as last argument to the add_* I forgot)
      5a13b475
  12. 06 Jan, 2003 1 commit
  13. 10 Dec, 2002 2 commits
  14. 09 Dec, 2002 1 commit
    • gbazin's avatar
      · 0c091c92
      gbazin authored
      * include/configuration.h: rolled back the last changes made to this file. There is no
      sense in manually initializing all the fields of module_config_t as it will be done by the
      compiler anyway. Furthermore mingw32 gcc seems to have problems optimizing code
      that manually initializes structures to 0.
      0c091c92
  15. 06 Dec, 2002 1 commit
  16. 31 Jul, 2002 2 commits
  17. 20 Jul, 2002 1 commit
  18. 03 Jul, 2002 1 commit
  19. 11 Jun, 2002 1 commit
    • gbazin's avatar
      · cecb7e86
      gbazin authored
      * ./include/configuration.h: renamed MODULE_CONFIG_* macros into
      CONFIG_*.
      * ./include/configuration.h, ./plugins/gtk/gtk_preferences.c,
      ./plugins/filter/transform.c, ./plugins/filter/distort.c,
      ./plugins/filter/deinterlace.c: added an ADD_STRING_FROM_LIST()
      configuration macro.
      * ./include/modules.h, ./include/video_output.h,
      ./src/video_output/video_output.c, ./plugins/filters/*: added a
      VOUT_FILTER capability. Having a clear distinction between VOUTs and
      VOUT_FILTERs allows us to get rid of ugly hacks. The filters are also
      stackable now (use --filter=foo:bar:foo etc..).
      * ./include/configuration.h, ./src/libvlc.h, ./src/libvlc.c: clean-up +
      added an ADD_USAGE_HINT() configuration macro.
      cecb7e86
  20. 01 Jun, 2002 2 commits
    • Sam Hocevar's avatar
    • Sam Hocevar's avatar
      * ALL: the first libvlc commit. · 9e3ab283
      Sam Hocevar authored
         As for video output 4, this breaks almost everything, but I'll slowly
        do what remains to be fixed during the weekend.
      
         Changes in vlc:
         ===============
      
        * vlc is now a very small program (20 lines) which uses the libvlc API;
         it is quite simple for the moment but can be extended in the future.
      
        * interfaces, decoders, video outputs, etc. are now almost the same
         objects (yes, I know, this is C++ redone in C) and are structured in
         a tree. More about this later, but basically it allows the following
         nice features:
          - several interfaces
          - several playlists with several outputs
          - input plugins spawning helper interfaces (will be used for DVD menus)
          - anything spawning anything; I swear there are useful uses for this!
      
        * libvlc can be used in other programs; I'm currently writing a Mozilla
         plugin for my employer.
      
         Things currently broken:
         ========================
      
        * most interfaces, most ports
        * the playlist handling (almost finished rewriting this though). This means
         no file can be played from the GUI, you need to use the commandline. This
         also means it segfaults at EOF, when exiting the program, and it sometimes
         refuses to open a file when asked to.
      9e3ab283
  21. 30 May, 2002 1 commit
    • gbazin's avatar
      · 0170377d
      gbazin authored
      * changed ADD_BOOL and ADD_BOOL_WITH_SHORT config macros to accept a
      default value as an argument.
      * modified the command line parsing to accept --foo and --no-foo when a
      "foo" boolean config option is defined.
      * modified the help menu to indicate if the option is enabled or
      disabled by default.
      0170377d
  22. 03 May, 2002 1 commit
    • Sam Hocevar's avatar
      * ./include/modules_inner.h, ./src/misc/configuration.c: support for config · 71865b97
      Sam Hocevar authored
          options callbacks.
      
          They don't take any argument for the moment, but this will change when
          I'm finished with my other vlc changes. There is a little problem: the
          Gtk+ interface keeps calling Put***Variable each time we click on "Apply"
          or "Save". I think it should only call it once. Is there a way to fix
          this? Gildas? lool? :-)
      71865b97
  23. 24 Apr, 2002 1 commit
  24. 23 Apr, 2002 1 commit
    • Sam Hocevar's avatar
      * ./src/interface/main.c: tidied the help output code. · a6bccb1c
      Sam Hocevar authored
        * ALL: removed underscores from option names and made a few options more
          self-explanatory, for instance --input_channel becomes --audio-channel;
          run vlc -H to see what has changed.
        * ALL: replaced many occurences of "plugin" with the word "module".
        * ./src/interface/main.c: moved all satellite-specific configuration options
          to the satellite plugin.
        * ./po/*: updated translations.
      a6bccb1c
  25. 21 Apr, 2002 2 commits
    • Sam Hocevar's avatar
      · 497e82b1
      Sam Hocevar authored
        * ./src/misc/configuration.c: support for short options. -V, -A, -I
          are back, and we also have -4 and -6 for IPv4/IPv6.
      497e82b1
    • gbazin's avatar
      · ce25f1e8
      gbazin authored
      * added config_GetFloatVariable() and config_PutFloatVariable() to the config
        module.
      * added a --zoom <float> config option.
      * added a call to RestoreCPUState() in InitIDCT() in idct_sparse.h so that the
        FPU is still available after a call to InitIDCT().
      * deactivate stream buffering when logging to a file.
      ce25f1e8
  26. 19 Apr, 2002 1 commit
    • Sam Hocevar's avatar
      · 4f6c862b
      Sam Hocevar authored
        * ALL: internationalized all configuration strings.
        * ./src/interface/main.c: we now set LC_CTYPE to get the right charset.
        * ./src/misc/configuration.c: lots of simplifications in the code.
        * ./po/vlc/pot: updated translations.
      4f6c862b
  27. 21 Mar, 2002 1 commit
    • gbazin's avatar
      · fb3f8ba5
      gbazin authored
      * moved GetConfigurationFromCmdLine() into configuration.c and renamed it
         into config_LoadCmdLine()
      * config_GetHomeDir doesn't use getpwuid_r anymore as this was creating
         some problems on solaris. This function now uses getpwuid and is called
         only once to store the home directory into the p_main structure.
      fb3f8ba5
  28. 16 Mar, 2002 1 commit
    • gbazin's avatar
      · 278bc72e
      gbazin authored
      * This the last piece of the new configuration module. You can now save your
      configuration options (only from the gtk/gnome interface for now). The config
      file will be saved as ~/.VideoLan/vlc
      
      It's not quite yet finished (well there are a few small details to sort out),
      but I'm going away for the week-end and I wanted to commit this before so you
      can all have a play with it :)
      278bc72e
  29. 11 Mar, 2002 1 commit
    • gbazin's avatar
      · 7f583e05
      gbazin authored
      
      * New GTK configuration interface. This interface is generated dynamically
        at run-time from the configuration data contained in each plugin.
      * config_PutPszVariable and config_GetPszVariable are now thread safe.
      * Few modifications/optimizations to the config module.
      * Got rid of all the _VAR macros in config.h
      
      This is the first version of the GTK configuration interface. There are still
      a few raw corners and a fews things left to do, but it basically does what
      I wanted.
      Constructive comments like it sucks or it smells rotten fish are of course
      very welcome. And if there are GTK gurus out there, please don't hesitate to
      add your touch.
      
      I also started to add usefull comments to the configuration options but I'm not
      really good at this kind of thing so if people want to help, they can finish
      the job. For this look at all the *_LONGTEXT macros at the top of main.c
      
      (PS: Translations will also be appreciated but not right now as the interface
      will likely change again in the few coming days)
      7f583e05
  30. 24 Feb, 2002 1 commit
    • gbazin's avatar
      · c40571df
      gbazin authored
      This is the first part of the new configuration architecture for vlc.
      Two other parts will follow soon:
      - config file implementation
      - gtk configuration interface.
      
      This part won't change much for end-users as these changes are mostly
      internal, you will however notice that the command line interface has
      changed. It will maybe be less user-friendly as I almost removed the
      short options but it shouldn't a big problem when the config file is
      implemented.
      
      What as changed is that it is really easy now to add configuration
      options to vlc. Plugins can also implement configuration options. All
      you have to do is to declare a MODULE_CONFIG section in your plugin.
      If you want to know more about this look at configuration.h and for some
      example: main.c, dsp.c or xvideo.c
      
      It would be nice if every developper could now start using configuration
      options in there plugins and also enhance old plugins.
      
      That's it, now let's hope I didn't break too many things ;-)
      c40571df