1
mirror of https://code.videolan.org/videolan/vlc synced 2024-09-04 09:11:33 +02:00
Commit Graph

573 Commits

Author SHA1 Message Date
Sam Hocevar
0d691469a7 * ./configure.in: added --enable-intfwin to enable the win32 interface and
--with-bcbuilder to tell make where to find Borland C++ Builder.
2002-04-05 12:35:47 +00:00
Sam Hocevar
e98aae28c0 * ./plugins/win32/intfwin.bpr: we now build intfwin.so at the right place.
* ./plugins/win32/Makefile: intfwin.so can be built using commandline.
  * ./configure.in, ./include/threads.h, ./include/common.h: a custom defs.h
    file isn't needed for the intfwin plugin anymore.
  * ./INSTALL.win32: updated compilation instructions for the intfwin plugin.
2002-04-05 03:27:27 +00:00
Gildas Bazin
cf5b3832dc * introduced a memalign wrapper that will align the memory manually if
memalign doesn't exist.

  void *vlc_memalign( size_t align, size_t size, void **pp_orig )
  where the return value is the aligned pointer and *pp_orig is the pointer
  that has to be freed afterwards.

  the arithmetic I'm doing on the pointer to align it is not portable to
  64bits architectures. If someone knows how to something portable, please
  tell me ( and no I don't want to do if(sizeof(void *) == blabla) ).

  Other little problem, I was planning to use posix_memalign by default in
  the wrapper implementation but it doesn't work (someone can tell me what
  I'm doing wrong ?)

* re-enabled the sse plugins on win32 as we don't have anymore alignment
  issues.

* fixed typo in vout_directx.c
2002-04-05 01:05:22 +00:00
Christophe Massiot
054b90aa1d * Fixed intf_eject for iPAQ (untested)
* asm memcpyaltivec for Linux/PPC
2002-04-04 22:08:05 +00:00
Sam Hocevar
b29f85e06c * ./src/video_output/video_output.c: fixed a vout4 image starvation bug.
* ./plugins/dvd/dvd.c: we look for libdvdcss.so.2 as well as -.so.1.
  * ./configure.in: BSD/OS fixes thanks to Steven M. Schultz.
  * ./Makefile: renamed the `snapshot' rule to `dist'.
  * ./Makefile: removed the `snapshot-nocss' rule which isn't needed anymore.
2002-04-04 05:08:05 +00:00
Christophe Massiot
439f10a65c * Fix for iPAQ familiar Linux (untested)
* HTTP files now find the EOF (though HTTP input is still broken)
2002-04-03 23:24:42 +00:00
Sam Hocevar
5ba63c6664 * ./plugins/ogg/*: added preliminary files for an Ogg/Vorbis decoder a
contributor is currently working on.
2002-04-03 06:45:36 +00:00
Sam Hocevar
0beab2c2c8 * ALL: removed libdvdcss from the vlc tree.
* ALL: removed libdvdread from the vlc tree.
  * ./acconfig.h: removed this file.
  * ./plugins/dvd/dummy_dvdcss.c: merged this file into dvd.c.
  * ./AUTHORS: moved a few gentlemen to the libdvdcss AUTHORS file.
2002-04-03 06:23:08 +00:00
Gildas Bazin
4f08a70d21 * New pthread implementation for WinNT/2K/XP. This implementation shouldn't
be subject to race conditions as it is using SignalObjectAndWait() from the
  Win32 API.
  As this should be somehow slower than the old method (still used on Win9x),
  you can specify that you want to use the old method with the "fast_pthread"
  config option.

* Added a new p_main_sys global variable. This variable is a pointer to an
  OS specific structure which is defined in *_specific.h. This structure can
  be filled by the already existing System_Init() function and is a nice
  way to avoid too many #ifdefs.
2002-04-02 23:43:57 +00:00
Olivier Teulière
ad14a89d0f * ./include/config.h: fixed config directory name for windows
* ./plugins/win32: the network dialog now respects the preferences settings
2002-04-02 23:22:32 +00:00
Tony Castley
87b73190e1 Changed directory of the config file for BeOS to be consistant with
OS standard.
2002-04-02 10:43:55 +00:00
Gildas Bazin
f8cad0ac0f * Fixes for the Win32_msvc build 2002-04-01 21:54:26 +00:00
Gildas Bazin
112b3738b3 * don't try to stat() the dvd drive letter on win32
* disabled YUV overlay double buffering for now, as it seems to actually be
    slower.
* temporary fix in vlc_cond_signal() for win32 (I really should use
    SignalObjectAndWait() on WinNT so we can avoid race conditions in the
    pthread code). This fixes a problem noticed on WinXP where vlc would
    freeze regularly and eat-up all the CPU (fun no?)
2002-03-28 10:17:06 +00:00
Gildas Bazin
5322a29b72 * various little portability fixes 2002-03-26 23:08:40 +00:00
Olivier Teulière
8092e418ac * Added a win32 interface plugin, developed with Borland C++ Builder.
To build the plugin, follow the instructions in INSTALL-win32.txt

 * Known bugs:
        - subtitles don't work
        - a crash occurs when the user exits by pressing 'q' in the vout
        - when moving the slider, position in the stream updates even if
          the slider isn't released yet

 * TODO list:
        - clean code in menu.cpp
        - adapt lool's enhancements of the Gtk+ preferences box
        - write drag-and-drop stuff
        - and of course, fix known bugs :)

 * For those of you who can't wait till the next release to test the win32
   interface, binary files are available here:
   http://www.via.ecp.fr/~ipkiss/intfwin/vlc.zip
   Enjoy!
2002-03-25 23:36:57 +00:00
Gildas Bazin
c6f900e1a3 * the calculation for the initial video window dimensions is now done in
video_output.c and made available into p_vout->i_window_height/width.
    This allows to get rid of duplicated code and unify the behaviour of
    the video output plugins. (not all the plugins have been modified
    because I didn't want to break anything).

    As a side effect, the --width and --height options are now working, you
    can even use only --width or only --height the other dimension will adapt
    automatically to the video characteristics.
    Note that you need to remove the width/height options from the config file
    or set them to -1 if you want to use the actual video size.
2002-03-21 22:10:33 +00:00
Gildas Bazin
fb3f8ba53d * 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.
2002-03-21 07:11:57 +00:00
Johan Bilien
6d7c226153 *** empty log message *** 2002-03-21 02:27:04 +00:00
Sam Hocevar
e63156594e * ./src/misc/modules_plugin.h: kludge to allow the ALSA module to be
compiled as a plugin. Please test.
  * ./include/modules.h: fixed a C++ warning.
2002-03-20 03:43:51 +00:00
Olivier Teulière
e1634f8268 * ./include/common.h: fixed the compilation fix for Borland C++ :) 2002-03-19 04:22:02 +00:00
Sam Hocevar
1994728499 * ./include/common.h: compilation fix for Borland C++. 2002-03-19 03:42:31 +00:00
Sam Hocevar
ced4c0f627 * ./BUGS: updated bug list.
* ./configure.in: ./configure --help should be a lot clearer now.
2002-03-17 21:59:52 +00:00
Sam Hocevar
4c8afc762f * ./plugins/chroma/i420_rgb8.c: plain C 8 bpp transformation.
* ./plugins/chroma/i420_rgb16.c: plain C 24/32 bpp transformations.
  * ./plugins/ggi/ggi.c: support for 8 bpp displays.
  * ./plugins/sdl/vout_sdl.c: support for 8 bpp displays.
  * ./plugins/x11/xcommon.c: support for 8 bpp displays.
  * ./src/video_output/video_output.c: fixed a segfault.
2002-03-17 17:00:38 +00:00
Sam Hocevar
2f4af9df22 * ./configure.in: more modules are plugins.
* ./src/misc/configuration.c: changed ~/.VideoLan/vlc to ~/.videolan/vlcrc,
    and a few cosmetic changes (sorry Gildas for the butchery).
  * ./plugins/chroma/i420_rgb16.c: C version of the I420 to RV15/16 chroma.
2002-03-16 23:03:19 +00:00
Gildas Bazin
278bc72e03 * 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 :)
2002-03-16 01:40:58 +00:00
Sam Hocevar
0d972bf52f * ./Makefile: fixed OS X vlc.app compilation dependencies.
* ./configure.in: fixed the endianness check under Solaris.

  * ./src/input/input.c: strings are now initialized to "" instead of NULL.

  * ./plugins/spudec/spu_decoder.c: we now properly support the subtitle
    palette information we get from the DVD. Subtitles rox !
  * ./src/video_output/vout_subpictures.c: removed all DVD-specific routines
    and put them into spu_decoder.c.
2002-03-15 04:41:54 +00:00
Stéphane Borel
9c49d6f872 *p_es->p_demux_data is available in p_config->p_demux_data so that the input
can pass information directly to the decoder.

*First application: aspect ratio for DVD is read from the ifo (should fix
the buf with aspect ratio in anamorphic DVDs).

*The DVD plugin also copy the spu yuv palette in p_demux_data so that the
spudec can display subtitle with the right color (sam !).

*Removed duplicate code and useless lock in gtk.
2002-03-14 01:35:28 +00:00
Stéphane Borel
2ce7beda11 *New configuration option to choose audio output format at runtime.
It allows to select spdif pass-through decoder with --ac3_adec and to
remove the ugly b_ac3 in main.h

As a consequence --spdif doesn't work anymore: you should use --ac3_adec pass

*Fixed a typo in main.c

*Return the option name in error message for unknown option intead of the
argument.
2002-03-12 18:37:46 +00:00
Gildas Bazin
7f583e0549 * 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)
2002-03-11 07:23:10 +00:00
Stéphane Borel
ba9c75bf53 * Dvd angle is now handled through a program structure, so that the interface
needs nothing specific to change angle.

* Fixed a bug in clock management where ES without a program couldn't get
timestamped.

*Fixed program management in gnome/gtk. Program now also appears in popup.

*In interface, only display ES associated with the selected program, or with
no program at all.
2002-03-05 17:46:33 +00:00
Christophe Massiot
5658c1d960 * IPv6 network module, courtesy of Alexis Guillard <alexis.guillard@bt.com>,
for BT ;
* --6 and --4 options to force IPv6 or IPv4 (FIXME: it should be -6 and
-4 but I don't know how to do it with the new configuration module) ;
* Channel manager now uses a socket from the network plug-in and is more
portable (and probably broken, too :) ;
* input_ReadPS and input_ReadTS are now in mpeg_system.c to be more
easily reused by plug-ins other than mpeg_ps and mpeg_ts.

That's all for tonight.
2002-03-04 23:56:38 +00:00
Gildas Bazin
721c720702 * We now make sure the aout plugin buffers always contain between
AOUT_BUFFER_DURATION/2 and AOUT_BUFFER_DURATION*3/2 worth of audio.
This should solve the audio buffer underruns.

* fix for the bug in input when filename contains a '@' character.

* simplified the win32 specific changes to the input parser. ( I think
we can safely assume that no access plugin name will have a length of
one character)
2002-03-04 22:18:25 +00:00
Stéphane Borel
1eb6c8447e *** empty log message *** 2002-03-04 01:53:56 +00:00
Sam Hocevar
69ff2d310d * Got rid of int_types.h and did a few changes Ipkiss will need. Hope I
did not break other platforms.
2002-03-03 04:37:29 +00:00
Gildas Bazin
5402d8832d * fixed compilation problem related to ssize_t 2002-03-02 09:34:23 +00:00
Xavier Marchesini
e28bab1219 * Various Win32 compilation fixes.
* DVD compiles, but doesn't work yet.
 * Fixed some typos in my previous Win32 multicast commit
2002-03-02 03:53:55 +00:00
Sam Hocevar
b523100829 * ./plugins/dummy/input_dummy.c: fixed `vlc vlc:quit'.
* ./src/input/input.c: initialized uninitialized variables.
2002-03-02 03:51:23 +00:00
Christophe Massiot
d0bf23fa73 Input III (Episode 1).
- Major rewrite of the buffer core functions
- Modularity of access plugins (file, udp, http)
- Modularity of network stack (ipv4, soon ipv6)
- Autodetection of the type of stream

And a new killing feature : HTTP streams are now seekable.

Please note that dvd, dvdread and vcd plug-ins are broken and thus disabled.
2002-03-01 00:33:18 +00:00
Sam Hocevar
eba980c2bc * ./plugins/mpeg_vdec/vpar_headers.c: we no longer crash when the next
stream doesn't have the same image size as the previous one.
  * ./src/audio_output/aout_pcm.c: another overrun fix; please test.
2002-02-27 22:57:10 +00:00
Sam Hocevar
a701094db5 * ./plugins/dsp/aout_dsp.c: OpenBSD compilation fix.
* ./src/video_output/video_output.c: fixed a segfault on exit.
2002-02-27 18:19:21 +00:00
Sam Hocevar
07a8286a1a * ./include/common.h: BeOS compile fixes.
* ./plugins/beos/vout_beos.cpp: fixed BeOS video output.
2002-02-27 03:47:56 +00:00
Sam Hocevar
2935b3208e * ./include/threads.h: support for the State Threads Library, a userland
threads library (http://state-threads.sourceforge.net/). Useless to most
    people, but can be handy to debug stuff. Activate with `--enable-st'.
2002-02-25 23:59:07 +00:00
Sam Hocevar
d4243d5979 * Fixed a quite old bug in the audio output which made the sound stutter
when wrapping around the audio output fifo.
  * Lots of simplifications in the audio output, got rid of b_stereo.
2002-02-24 22:06:50 +00:00
Johan Bilien
0b16341623 Added a menu in the GTK and gnome interfaces to change the current program
in multi-program streams (such as ones provided by a DVB-S card).
2002-02-24 21:36:20 +00:00
Gildas Bazin
c40571df60 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 ;-)
2002-02-24 20:51:10 +00:00
Sam Hocevar
8cc8d9579d * ./configure.in: removed a bashism.
* ./plugins/x11/xcommon.c: support for systems without shm.h.
  * QNX compilation fixes here and there; the qnx plugin still doesn't work.
2002-02-20 23:23:53 +00:00
Sam Hocevar
730cc399c5 * Got rid of TRACE and intf_DbgMsg which were seldom used anyway.
* All intf_*Msg functions now write to stderr.
   * Implemented a message queue interface plugins can subscribe to.
   * Wrote the logger interface plugin. Usage:
      vlc -I logger:filename.log
   * Lots of fixes in the SPU renderer.
2002-02-19 00:50:20 +00:00
Sam Hocevar
48cbd8f360 * ALL: got rid of *_Probe functions because most of them were duplicates
of the real _Init or _Create functions. That's 1000 lines of code gained.
  * ./src/misc/modules.c: we try not to keep the global lock in module_Need,
    which should speed up output spawning.
  * ./plugins/dummy/input_dummy.c: fixed vlc:quit command.
  * ./plugins/gtk/gtk_playlist.c: compilation fix.
  * ./plugins/macosx/*: preliminary fixes for the vout4 port.

   Notes on the *_Probe eradication:
  o I probably broke the DirectX video output, because of the "must init and
    run in the same thread" issue. I'll fix this ASAP.
  o Subtitles are broken (or at least, pretty ugly) in RGB mode.
  o The input plugins still have *_Probe functions. This will disappear when
    meuuh is finished with the access plugins.
  o The decoder plugins still have *_Probe functions. This is probably not
    going to change, it looks OK to me.
2002-02-15 13:32:54 +00:00
Sam Hocevar
46a1caf287 * Grmbl. Forgot to commit those Win32 fixes last time, and they were
stuck on VTHR. Sorry xav, this probably explains why I couldn't
    find the commit log :-)
2002-02-14 23:29:17 +00:00
Sam Hocevar
e8bf7fa427 * ./plugins/beos/*: BeOS fixes from Rudolf Cornelissen.
* ./src/interface/main.c: --desync now really accepts a value in ms.
  * ./plugins/vcd/input_vcd.c: fixed a crash when not opening a VCD.
  * ./src/video_output/vout_subpictures.c: fixed subtitles under BeOS and
    other architectures which don't support overlay.
2002-02-13 22:10:40 +00:00