Sam Hocevar [Sun, 25 Aug 2002 23:18:05 +0000 (23:18 +0000)]
* ALL: started the slow move to automake. For the moment, the changes are
unnoticeable apart from the extra dependency on autoconf, automake and
gettextize. See the new HACKING file for some information, especially if
you don't run Linux.
The current strategy is to have the configure script generate a nice
automake Makefile from Makefile.am, and then clobber it with our good
old dirty Makefile. Muahaha :-)
Sam Hocevar [Sun, 25 Aug 2002 16:55:55 +0000 (16:55 +0000)]
* ./modules/audio_output/oss.c, ./modules/audio_output/sdl.c: improved
sound synchronization.
* ./src/audio_output/output.c: reverted another change I previously did :-)
Sam Hocevar [Sun, 25 Aug 2002 09:40:00 +0000 (09:40 +0000)]
* ./src/audio_output/output.c: reverted my previous aout_OutputNextBuffer
prototype change; it looks like we won't need it after all.
* ./src/audio_output/output.c: if audio output is too slow, but we
know there is no next packet, then we play it anyway. Rationale behind
this is: better play a slightly wrongly dated packet than play silence,
because it might be wrongly dated but there are chances it won't break
audio continuity.
* ./modules/audio_output/sdl.c: workaround for SDL's crap audio output
system (callback gets called at random times, and no way to know the
latency of the samples being played). Audio output is now rather good
here, but please give feedback.
* ./modules/audio_output/oss.c: we delay a bit before asking for a new
buffer to avoid starvation.
Gildas Bazin [Sat, 24 Aug 2002 17:04:36 +0000 (17:04 +0000)]
* modules/misc/logger/logger.c: fixed initialization bugs.
* src/misc/objects.c: in vlc_object_destroy() there's no need to lock structure_lock if
we are the root object (structure_lock has already been destroyed anyway).
Sam Hocevar [Sat, 24 Aug 2002 10:19:43 +0000 (10:19 +0000)]
* ./src/audio_output/output.c: added an argument to aout_OutputNextBuffer
which lets the audio output module give a timeout value for buffer
delivery. This fixes a few issues with aout modules which were calling
aout_OutputNextBuffer way too early.
Sam Hocevar [Thu, 22 Aug 2002 17:14:52 +0000 (17:14 +0000)]
* ./modules/audio_filter/converter/fixed32tofloat32.c: fixed conversion.
* ./modules/codec/mad/libmad.c: ported to the latest aout changes. Still
doesn't work here, though.
Big round of fixes in the aout3.
* Audio and video should now _always_ be perfectly in sync.
* Changes in a52.c (end_date management) must be ported to other codecs,
otherwise mixer errors will appear.
* Audio output plug-in can now tell whether they can handle a little
clock drift (for instance, inserting zeroes after a pause).
Sam Hocevar [Wed, 21 Aug 2002 17:31:58 +0000 (17:31 +0000)]
* ./src/misc/modules.c: if a plugin requested not to be unloaded, then we
won't unload it. This makes us more fault-tolerant with crap libraries
that are making use of atexit().
* ./configure.in: svgalib can now be a plugin.
* ./modules/misc/gtk_main.c: gtk_main doesn't need g_atexit anymore.
Sam Hocevar [Wed, 21 Aug 2002 15:10:33 +0000 (15:10 +0000)]
* ./modules/video_output/svgalib.c: SVGAlib video output module.
Currently only supports 256 color output, and defaults to 320x200. You need to be root to use it, it may leave your console in an unusable state, lock
up your video card, it will segfault at exit if you compile it as a plugin
because of SVGAlib's ludicrous use of atexit() and signal().
Apart from these few glitches, it's rather OK, use "-I dummy -V svgalib"
to activate. Q or Esc to quit (press for a long time if it doesn't work).
Sam Hocevar [Wed, 21 Aug 2002 09:27:40 +0000 (09:27 +0000)]
* ./modules/codec/a52old/a52old.c: ported the old A52 decoder to aout3.
* ./modules/audio_filter/converter/s16tofloat32.c: converter needed for
a52old, includes the walken trick and b_in_place = true.
* libvlc.c : Win32 compilation fix.
* modules.c : we now check the directory plugins/ to find some plugins.
(this will allow us to use the packager / installer which wasn't aware
of plugins -> modules :)
Sam Hocevar [Tue, 20 Aug 2002 21:10:48 +0000 (21:10 +0000)]
* ./modules/gui/gtk/display.c: changed the configuration callbacks so that
all instances of a module get changed when options such as gtk-tooltips
or gnome-toolbartext are toggled.
Sam Hocevar [Tue, 20 Aug 2002 18:08:51 +0000 (18:08 +0000)]
* ./modules/misc/gtk_main.c: created the gtk_main module, which simply runs
gtk_main() in its own thread, and does nothing on subsequent calls. This
ensures that gtk_main is only running once.
* ./modules/gui/familiar/*, modules/gui/gtk/*: the familiar, gtk and gnome
modules are now fully reentrant thanks to their use of the gtk_main module.
* ./src/libvlc.c: implemented vlc_set(), a wrapper for config_Put* available
to external programs.
* ./src/libvlc.c: removed vlc_stop() and vlc_end(), everything is now done
by vlc_destroy().
* ./modules/control/rc/rc.c: implemented a few new functions. For instance,
run "vlc -I rc" and then type "intf gtk" or "intf gnome". You can even
launch several of them. "segfault" works, too.
* ./configure: Fixed double detection of gethostbyname.
* Major changes in the handling of dates in the audio output ; still buggy,
but differently.
* Fixed a major bug in the aout pre-filters, preventing to run any other
decoder than liba52.
* p_aout->output.pf_play now has only one argument.
* modules/audio_output/alsa.c: we now open the device in SetFormat because
it depends on the audio format. Cosmetic changes. The S/PDIF output may
work.
Sam Hocevar [Mon, 19 Aug 2002 11:13:45 +0000 (11:13 +0000)]
* ./src/misc/cpu.c: libvlc now plays nice with SIGILL and restores the
signal handler to its previous value after use.
* ./src/libvlc.c: moved signal handling to vlc.c.
Gildas Bazin [Mon, 19 Aug 2002 08:19:31 +0000 (08:19 +0000)]
* modules/video_output/x11/xcommon.c: fixed a bug related to the size of the
fullscreen window. We also unmap the current window when switching to fullscreen.
Sam Hocevar [Sun, 18 Aug 2002 13:49:20 +0000 (13:49 +0000)]
* ./src/libvlc.c: removed the simple signal handler because it's not
really needed, and we were calling pthread_mutex_lock from it.
* ./src/libvlc.c: released a vlc_list_t that caused vlc --list to hang.
modules/gui/kde/interface.cpp: made the kde interface look for the rc
file in DATA_PATH
modules/gui/kde/kde.cpp and interface.h: removed a stupid class, moved
stuff from open() to run() to make the kde interface start without
segfaults.
Sam Hocevar [Fri, 16 Aug 2002 03:07:56 +0000 (03:07 +0000)]
* ./modules/codec/spudec/*: split spudec into the parsing and the rendering
functions.
* ./modules/demux/mpeg/audio.c: at least three PS startcodes are required
before we abort the parsing and consider the input as PS instead of MP3.
Sam Hocevar [Thu, 15 Aug 2002 12:11:15 +0000 (12:11 +0000)]
* ./src/misc/modules.c: the module linked list is going bye bye. We now use
the vlc_object_* and vlc_list_* functions to manage modules. The Win32
interface doesn't build, but I'll fix this.
Jean-Paul Saman [Wed, 14 Aug 2002 21:50:01 +0000 (21:50 +0000)]
Changes in familiar interface:
- added GtkCList instead of GtkList.
- added first column sorting order by clicking on column header
- selecting item from list works
- reading entire directory list is displayed in GtkCList widget
Sam Hocevar [Wed, 14 Aug 2002 17:06:53 +0000 (17:06 +0000)]
* ./src/misc/objects.c: implemented vlc_list_find() which works like
vlc_object_find() but returns a list of _all_ the matching objects. Only
works with FIND_ANYWHERE at the moment.
* ./modules/gui/gtk/preferences.c, ./modules/gui/kde/preferences.cpp,
./modules/gui/win32/preferences.cpp: the module lists in the preferences
menus work again.
* ./src/misc/objects.c: added a missing sizeof that caused crashes because
the reindexing of the global object array was incomplete.
* ./include/modules_inner.h: propagated the module long description to its
submodules.
Sam Hocevar [Wed, 14 Aug 2002 13:10:44 +0000 (13:10 +0000)]
* ./modules/audio_output/esd.c: compilation fix (aout_FormatTo is obsolete).
* ./src/audio_output/audio_output.c, ./src/audio_output/mixer.c: fixed a
horrible sound issue by making sure internal buffers have a size multiple
of 4 bytes. Waiting for a real fix made in Meuuh, of course.
Sam Hocevar [Wed, 14 Aug 2002 08:17:24 +0000 (08:17 +0000)]
* ./modules/control/rc/rc.c: 'l' outputs a list of all allocated objects,
just as 'd' displayed a tree of attached objects.
* ./src/misc/modules.c: added a missing header.
* Added a third argument to aout_OutputNextBuffer. In case the buffer
received does not start exactly at the given date, it indicates if the
output plug-in is able to compensate for the drift (for instance on
startup, or with S/PDIF packets), or if we need the aout core to
resample the coming buffers. It is currently unimplemented.
* Changed aout_FormatTo* ; aout_FormatToSize does no longer exist.
p_buffer now has a i_nb_bytes member. It is possible to indicate for a
format its byterate (necessary for AC3 and SPDIF).
* S/PDIF output seems to be working at last (tested with the file output).
* New float32to* converter modules, courtesy of Xavier Maillard
<zedek@fxgsproject.org>.
* Fixed a bug in float32tos16, where gcc over-optimized a little and
caused problems on some platforms (eg. solaris).
Laurent Aimar [Tue, 13 Aug 2002 20:28:56 +0000 (20:28 +0000)]
* clean up some code, add "mp3" short cut.
And now if this demux has been forced it will (try) to play the whole
file even if the stream is heavily corrupted (like PS demux).
But now, it makes less assumptions on the stream, so report any
problem if it mis-recognizes others files as mpeg audio (specially PS file).
Sam Hocevar [Tue, 13 Aug 2002 16:11:15 +0000 (16:11 +0000)]
* ./modules/audio_output/arts.c: ported the aRts module to aout3.
* ./modules/audio_filter/converter/*: fixed a bug in all the converters
test routines (thx Meuuh).
Sam Hocevar [Tue, 13 Aug 2002 14:53:46 +0000 (14:53 +0000)]
* ./modules/audio_output/esd.c: we now properly use the esd_get_latency()
return value to avoid audio starvation.
* ./modules/audio_filter/converter/*: a little loop optimization trick.
* ./src/audio_output/aout_ext-dec.c: removed this deprecated file.
Sam Hocevar [Tue, 13 Aug 2002 11:59:36 +0000 (11:59 +0000)]
* ./modules/audio_output/oss.c: we spare a variable by using p_aout->b_die
instead of our own variable.
* ./modules/audio_filter/converter/a52tospdif.c, ./modules/codec/a52.c: added
<unistd.h>, required for bswap.
* ./modules/demux/mp4/libmp4.c: removed an unneccessary semicolon in a
macro definition.
* ./modules/audio_output/esd.c: first attempt at getting esd to work.
* ./modules/video_output/*: split sdl.so into a video and an audio plugin,
and removed useless subdirectories.
* ./modules/audio_output/sdl.c: compilation fix.
* Fixed a variable overflow bug in the audio output.
* Prepared for some advances in the aout3 clock management.
* Added the first stone of the forthcoming stream output.
Jean-Paul Saman [Mon, 12 Aug 2002 20:43:27 +0000 (20:43 +0000)]
- Updated configure to build fixed32tos16 and fixed32tofloat32.
Desperately need a fixed32 mixer for testing the conversions.
- Uncommented unused functions in libmad.
Laurent Aimar [Mon, 12 Aug 2002 16:59:15 +0000 (16:59 +0000)]
* all : a demux for aac stream ( raw aac with adts headers ). For now
it has a capability equal to 0 because it conflicts with PS, so you need
to force it.
Sam Hocevar [Mon, 12 Aug 2002 09:34:15 +0000 (09:34 +0000)]
* ./src/misc/objects.c: two big changes in the object API: now objects can
only have one parent, because I don't want to deal with cycles, and each
created object is indexed in a global array. This feature is unused yet,
but it will speed up vlc_object_find(FIND_ANYWHERE).
* ./debian/rules: activated the faad codec.
* ./doc/fortunes.txt: new fortune cookies.
* ./modules/codec/mpeg_video/headers.c: reduced the use of attach/detach.
* ./modules/audio_output/oss.c: fixed two compilation warnings.