vlc.git
12 years agoRemove THREAD_COND_TIMEOUT
Rémi Denis-Courmont [Thu, 22 May 2008 19:59:49 +0000 (22:59 +0300)]
Remove THREAD_COND_TIMEOUT

12 years agoProvide vlc_gettext on all platforms
Rémi Denis-Courmont [Thu, 22 May 2008 19:46:11 +0000 (22:46 +0300)]
Provide vlc_gettext on all platforms

This avoids having to link a few plugins with libintl on platforms where
it's not built-in libc. This also factors the internal use of
dgettext("vlc", ...).

12 years agoMove _ and N_ to the right header
Rémi Denis-Courmont [Thu, 22 May 2008 19:32:30 +0000 (22:32 +0300)]
Move _ and N_ to the right header

12 years agoRemove libvlc->psz_homedir and use config_GetHomeDir() instead
Rémi Denis-Courmont [Thu, 22 May 2008 18:28:54 +0000 (21:28 +0300)]
Remove libvlc->psz_homedir and use config_GetHomeDir() instead

12 years agoMake config_GetHomeDir return a const string too
Rémi Denis-Courmont [Thu, 22 May 2008 17:32:25 +0000 (20:32 +0300)]
Make config_GetHomeDir return a const string too

12 years agoStore the home directory statically, as it cannot change
Rémi Denis-Courmont [Thu, 22 May 2008 17:18:12 +0000 (20:18 +0300)]
Store the home directory statically, as it cannot change

12 years agoWorkaround f*cked up iTunes
Rafaël Carré [Thu, 22 May 2008 18:24:36 +0000 (20:24 +0200)]
Workaround f*cked up iTunes

12 years agoIf uselocale() is absent, assume libc does no localization
Rémi Denis-Courmont [Thu, 22 May 2008 16:42:46 +0000 (19:42 +0300)]
If uselocale() is absent, assume libc does no localization

Otherwise, the user is screwed anyway

12 years agoPut the _same_ _platform-independent_ stuff in the same place
Rémi Denis-Courmont [Thu, 22 May 2008 16:39:53 +0000 (19:39 +0300)]
Put the _same_ _platform-independent_ stuff in the same place

12 years agoUse the same directory layout on all platforms.
Rémi Denis-Courmont [Thu, 22 May 2008 16:32:05 +0000 (19:32 +0300)]
Use the same directory layout on all platforms.

It was an artificially-created mess. Besides, many other Windows
applications also have a data, datadir or share directory.

12 years agoNo need for huge automake if's
Rémi Denis-Courmont [Thu, 22 May 2008 16:10:10 +0000 (19:10 +0300)]
No need for huge automake if's

12 years agoSplit directory handling and core configuration
Rémi Denis-Courmont [Thu, 22 May 2008 16:04:15 +0000 (19:04 +0300)]
Split directory handling and core configuration

12 years agoCosmetic
Rémi Denis-Courmont [Thu, 22 May 2008 15:52:50 +0000 (18:52 +0300)]
Cosmetic

12 years agoGnuTLS and libgcrypt bump from 2.2.2 to 2.2.5 and 1.4.0 to 1.4.1
Jean-Baptiste Kempf [Thu, 22 May 2008 06:50:00 +0000 (08:50 +0200)]
GnuTLS and libgcrypt bump from 2.2.2 to 2.2.5 and 1.4.0 to 1.4.1

12 years agoUpdate NEWS and interface string about the latest parsing for the subtitles.
Jean-Baptiste Kempf [Wed, 21 May 2008 21:18:17 +0000 (14:18 -0700)]
Update NEWS and interface string about the latest parsing for the subtitles.
Some comments about the naming of the subtitles (mplayer doesn't name as gnome-subtitles does, and none of them respect the main conventions)
Most of the subtitles format are now parsed. However, some styles are still discarded.

12 years agous_strtod: do not make any kludgy assumptions about number formats
Rémi Denis-Courmont [Wed, 21 May 2008 19:12:11 +0000 (22:12 +0300)]
us_strtod: do not make any kludgy assumptions about number formats

12 years agoDon't rely on scanf when parsing floats from files
Rémi Denis-Courmont [Wed, 21 May 2008 19:07:22 +0000 (22:07 +0300)]
Don't rely on scanf when parsing floats from files

(well, you _can_ but you'd need to use uselocale() then)

12 years agoWin32 also has and needs fcntl.h
Christophe Mutricy [Wed, 21 May 2008 19:02:22 +0000 (20:02 +0100)]
Win32 also has and needs fcntl.h

12 years agoRemove unused i18n_atof
Rémi Denis-Courmont [Wed, 21 May 2008 18:59:03 +0000 (21:59 +0300)]
Remove unused i18n_atof

12 years agoVLM: use american numbers too here
Rémi Denis-Courmont [Wed, 21 May 2008 18:58:01 +0000 (21:58 +0300)]
VLM: use american numbers too here

(we don't want sample scripts to break in certain countries)

12 years agoParse vlcrc following American standards for numbers
Rémi Denis-Courmont [Wed, 21 May 2008 18:55:15 +0000 (21:55 +0300)]
Parse vlcrc following American standards for numbers

12 years agoUse cmake 2.6.0 release
Rafaël Carré [Wed, 21 May 2008 18:45:24 +0000 (20:45 +0200)]
Use cmake 2.6.0 release

12 years agomake.pl: matches gcc-xx and g++-xx
Rafaël Carré [Wed, 21 May 2008 18:37:19 +0000 (20:37 +0200)]
make.pl: matches gcc-xx and g++-xx

12 years agoAlways print numbers (floats) in American format in vlcrc
Rémi Denis-Courmont [Wed, 21 May 2008 18:41:52 +0000 (21:41 +0300)]
Always print numbers (floats) in American format in vlcrc

12 years agoFrench uses comma as a decimal separator
Rémi Denis-Courmont [Wed, 21 May 2008 18:39:25 +0000 (21:39 +0300)]
French uses comma as a decimal separator

(and at least the Qt interface uses commas for preferences formatting)

12 years agoRemove i18n_strtod - nobody uses it and it's an ugly hack
Rémi Denis-Courmont [Wed, 21 May 2008 18:05:11 +0000 (21:05 +0300)]
Remove i18n_strtod - nobody uses it and it's an ugly hack

12 years agoFix previous commit
Rémi Denis-Courmont [Wed, 21 May 2008 17:49:38 +0000 (20:49 +0300)]
Fix previous commit

12 years agoRemove internal Python build support
Rémi Denis-Courmont [Wed, 21 May 2008 17:48:11 +0000 (20:48 +0300)]
Remove internal Python build support

12 years agoFail loudly if --enable-java-bindings is used
Rémi Denis-Courmont [Wed, 21 May 2008 17:39:41 +0000 (20:39 +0300)]
Fail loudly if --enable-java-bindings is used

as it does not work anymore

12 years agoAdd mx4n and mx4p FourCC
Jean-Baptiste Kempf [Wed, 21 May 2008 17:32:45 +0000 (10:32 -0700)]
Add mx4n and mx4p FourCC

12 years agoUse gettext_noop() consistently
Rémi Denis-Courmont [Wed, 21 May 2008 17:19:25 +0000 (20:19 +0300)]
Use gettext_noop() consistently

12 years agoTranslate help, short name and description
Rémi Denis-Courmont [Wed, 21 May 2008 17:18:56 +0000 (20:18 +0300)]
Translate help, short name and description

12 years agovlc_config_set: use dgettext() explicitly
Rémi Denis-Courmont [Wed, 21 May 2008 15:55:16 +0000 (18:55 +0300)]
vlc_config_set: use dgettext() explicitly

This is a cosmetic change at this point as _() invokes dgettext(). This
is just a small step toward supporting out-of-tree plugins. These will
need to use their own text domain.

12 years agoAdd support for MPEG2 FOURCCs in mp4 demuxer
Rafaël Carré [Wed, 21 May 2008 15:50:49 +0000 (17:50 +0200)]
Add support for MPEG2 FOURCCs in mp4 demuxer

Fix #1590 - patch by jj

12 years agoMore updates, partially Mac-specific
Felix Paul Kühne [Tue, 20 May 2008 20:37:32 +0000 (22:37 +0200)]
More updates, partially Mac-specific

12 years agoGnuTLS: proper location for ca-certificates
Rémi Denis-Courmont [Tue, 20 May 2008 20:19:35 +0000 (23:19 +0300)]
GnuTLS: proper location for ca-certificates

12 years agoGnuTLS: read key material from memory - fixes #1108
Rémi Denis-Courmont [Tue, 20 May 2008 20:18:02 +0000 (23:18 +0300)]
GnuTLS: read key material from memory - fixes #1108

12 years agoblock_File: test case
Rémi Denis-Courmont [Tue, 20 May 2008 19:26:45 +0000 (22:26 +0300)]
block_File: test case

12 years agoblock_File: loads a file into a block_t
Rémi Denis-Courmont [Tue, 20 May 2008 19:15:12 +0000 (22:15 +0300)]
block_File: loads a file into a block_t

12 years ago(Almost) pread() for Win32
Rémi Denis-Courmont [Tue, 20 May 2008 19:57:54 +0000 (22:57 +0300)]
(Almost) pread() for Win32

12 years agoCMake : don't try to link unused targets
Rafaël Carré [Tue, 20 May 2008 20:10:21 +0000 (22:10 +0200)]
CMake : don't try to link unused targets

12 years agoCmake : disable samples downloading & related tests
Rafaël Carré [Tue, 20 May 2008 20:09:25 +0000 (22:09 +0200)]
Cmake : disable samples downloading & related tests

12 years agoCmake : fix libvlc* versionning and naming
Rafaël Carré [Tue, 20 May 2008 19:57:59 +0000 (21:57 +0200)]
Cmake : fix libvlc* versionning and naming

12 years agoUpdates
Rémi Denis-Courmont [Tue, 20 May 2008 18:20:32 +0000 (21:20 +0300)]
Updates

12 years agoDon't use stat() before opendir()
Rémi Denis-Courmont [Tue, 20 May 2008 15:59:28 +0000 (18:59 +0300)]
Don't use stat() before opendir()

12 years agoFix handle leak
Rémi Denis-Courmont [Tue, 20 May 2008 15:55:50 +0000 (18:55 +0300)]
Fix handle leak

12 years agoDon't waste stat() right before opendir().
Rémi Denis-Courmont [Tue, 20 May 2008 15:54:59 +0000 (18:54 +0300)]
Don't waste stat() right before opendir().

12 years agoDon't test if a directory exists twice in a row
Rémi Denis-Courmont [Tue, 20 May 2008 15:52:22 +0000 (18:52 +0300)]
Don't test if a directory exists twice in a row

Better yet try to parse it directly...

12 years agoNo need to do stat() before opendir()!
Rémi Denis-Courmont [Tue, 20 May 2008 15:50:42 +0000 (18:50 +0300)]
No need to do stat() before opendir()!

12 years agoUse fstat()!
Rémi Denis-Courmont [Tue, 20 May 2008 15:47:25 +0000 (18:47 +0300)]
Use fstat()!

12 years agoDirectsound 7.1 support and some debug messages...
Kaarlo Raiha [Tue, 20 May 2008 08:36:44 +0000 (11:36 +0300)]
Directsound 7.1 support and some debug messages...

...to help identify possible issues

Signed-off-by: Rémi Denis-Courmont <rem@videolan.org>
Squashed with VLC boolean updates.

12 years agoUntested attempt to DirectAudio support for 7.1 system
Kaarlo Raiha [Tue, 25 Mar 2008 21:07:14 +0000 (23:07 +0200)]
Untested attempt to DirectAudio support for 7.1 system

(See also http://forum.videolan.org/viewtopic.php?f=7&t=42590).

Signed-off-by: Rémi Denis-Courmont <rem@videolan.org>
Squashed VLC_TRUE fix

12 years agoFix decoding of teletext in ps files (the zvbi decoder expects the full PES packet...
Antoine Cellerier [Tue, 20 May 2008 14:10:47 +0000 (16:10 +0200)]
Fix decoding of teletext in ps files (the zvbi decoder expects the full PES packet, I haven't been able to test the telx.c decoder yet as I don't have any ps file with teletext subtitles available).

12 years agoFix the reference counting of pictures stored in the mosaic_bridge ring
Rafaël Carré [Tue, 20 May 2008 13:15:40 +0000 (15:15 +0200)]
Fix the reference counting of pictures stored in the mosaic_bridge ring

Code cleanup without semantics changes
Resets the reference count when returning a previously allocated picture
Check error path

12 years agoCheck allocation and initialise memory
Rafaël Carré [Tue, 20 May 2008 13:06:24 +0000 (15:06 +0200)]
Check allocation and initialise memory

12 years agoFix memleak
Rafaël Carré [Tue, 20 May 2008 13:05:40 +0000 (15:05 +0200)]
Fix memleak

12 years agoUse reference counting for pictures
Rafaël Carré [Tue, 20 May 2008 13:05:16 +0000 (15:05 +0200)]
Use reference counting for pictures

12 years agoFix memleak
Rafaël Carré [Tue, 20 May 2008 11:48:10 +0000 (13:48 +0200)]
Fix memleak

12 years agoRemove not used allocation added in [bc650c59ca6d2edbf555dc0cec11091f274b42f5]
Rafaël Carré [Tue, 20 May 2008 11:46:52 +0000 (13:46 +0200)]
Remove not used allocation added in [bc650c59ca6d2edbf555dc0cec11091f274b42f5]

12 years agoDon't change pf_release() to a dummy function
Rafaël Carré [Tue, 20 May 2008 10:40:10 +0000 (12:40 +0200)]
Don't change pf_release() to a dummy function

In the meantime, another module (like the mosaic_bridge hack) could call it.
Instead, increase the reference count to be sure it won't be destroyed.

12 years agoFormatting cleaning
Jean-Baptiste Kempf [Mon, 19 May 2008 20:34:34 +0000 (13:34 -0700)]
Formatting cleaning

12 years agoAdd options for preferences.
Jean-Baptiste Kempf [Mon, 19 May 2008 22:49:45 +0000 (15:49 -0700)]
Add options for preferences.

12 years agoDKS and Subviewer1 parsing support.
Jean-Baptiste Kempf [Mon, 19 May 2008 22:44:14 +0000 (15:44 -0700)]
DKS and Subviewer1 parsing support.
Some cleaning too.

12 years agoMulti-line support for JacoSub.
Jean-Baptiste Kempf [Mon, 19 May 2008 15:09:20 +0000 (08:09 -0700)]
Multi-line support for JacoSub.

12 years agoFix bash syntax in rrd doc.
Antoine Cellerier [Tue, 20 May 2008 08:22:52 +0000 (10:22 +0200)]
Fix bash syntax in rrd doc.

12 years agoVideo bitrate tolerance is advertised as kbits/sec in the help (not bits/sec).
Antoine Cellerier [Tue, 20 May 2008 08:05:33 +0000 (10:05 +0200)]
Video bitrate tolerance is advertised as kbits/sec in the help (not bits/sec).

12 years agoCosmetics.
Antoine Cellerier [Mon, 19 May 2008 07:52:43 +0000 (09:52 +0200)]
Cosmetics.

12 years agoRemove incorrect if BUILD_VLC
Rémi Denis-Courmont [Mon, 19 May 2008 18:11:45 +0000 (21:11 +0300)]
Remove incorrect if BUILD_VLC

12 years agoUse TIMER_ABSTIME when it's available
Rémi Denis-Courmont [Mon, 19 May 2008 17:53:56 +0000 (20:53 +0300)]
Use TIMER_ABSTIME when it's available

12 years agomwait/mdate: remove cached_time - not thread-safe
Rémi Denis-Courmont [Mon, 19 May 2008 17:42:48 +0000 (20:42 +0300)]
mwait/mdate: remove cached_time - not thread-safe

Could go badly wrong on platforms without atomic 64-bits access

12 years agomprec: thread-safety
Rémi Denis-Courmont [Mon, 19 May 2008 17:35:41 +0000 (20:35 +0300)]
mprec: thread-safety

12 years agoRemove useless volatile keyword
Rémi Denis-Courmont [Mon, 19 May 2008 15:23:56 +0000 (18:23 +0300)]
Remove useless volatile keyword

In this case, volatile was both incorrect (volatile does nothing about
thread synchronization) and not required (there is an explicit lock).

12 years agoDestroy the playlist AFTER looking for a sout attached to it
Rafaël Carré [Mon, 19 May 2008 11:40:56 +0000 (13:40 +0200)]
Destroy the playlist AFTER looking for a sout attached to it

12 years agoReturn VLC_ENOMEM when malloc fails.
Jean-Paul Saman [Sun, 18 May 2008 11:34:49 +0000 (13:34 +0200)]
Return VLC_ENOMEM when malloc fails.

12 years agoFix blinking on redraw in ncurses interface... if anyone has an idea about why that...
Antoine Cellerier [Sun, 18 May 2008 22:08:59 +0000 (00:08 +0200)]
Fix blinking on redraw in ncurses interface... if anyone has an idea about why that call to clear() was needed ... (And remove a bunch of trailing spaces)

12 years agoFix glade search path - thanks to dionoea
Rafaël Carré [Sun, 18 May 2008 19:54:58 +0000 (21:54 +0200)]
Fix glade search path - thanks to dionoea

12 years agoCmake : Fix test/ linking
Rafaël Carré [Sun, 18 May 2008 15:18:23 +0000 (17:18 +0200)]
Cmake : Fix test/ linking

12 years agoCmake: Fix modules/ building
Rafaël Carré [Sun, 18 May 2008 15:16:58 +0000 (17:16 +0200)]
Cmake: Fix modules/ building

12 years agocmake: fix src/ building
Rafaël Carré [Sun, 18 May 2008 14:20:29 +0000 (16:20 +0200)]
cmake: fix src/ building

12 years agoAdd a comment about RIPEMD/160
Rafaël Carré [Sun, 18 May 2008 13:24:52 +0000 (15:24 +0200)]
Add a comment about RIPEMD/160

12 years agoRemove trailing whitespace, add checks for malloc return value.
Jean-Paul Saman [Sun, 18 May 2008 11:09:26 +0000 (13:09 +0200)]
Remove trailing whitespace, add checks for malloc return value.

12 years agolibvlc: when calling libvlc_media_player_stop() check for playing or paused state...
Tanguy Krotoff [Fri, 30 May 2008 03:12:38 +0000 (03:12 +0000)]
libvlc: when calling libvlc_media_player_stop() check for playing or paused state before to send a stopped event

Signed-off-by: Jean-Paul Saman <jpsaman@videolan.org>
12 years agoUpdate: supports file v4 signatures
Rafaël Carré [Sat, 17 May 2008 23:39:28 +0000 (01:39 +0200)]
Update: supports file v4 signatures

Note: public key v3 signatures are not supported
Fix various bugs and potentials buffer overflows

12 years agoSmall cleanup
Jean-Paul Saman [Sat, 17 May 2008 13:20:54 +0000 (15:20 +0200)]
Small cleanup

12 years agoUse the same default values for i_frame_rate everywhere.
Jean-Paul Saman [Sat, 17 May 2008 12:48:08 +0000 (14:48 +0200)]
Use the same default values for i_frame_rate everywhere.

12 years agoRemove "out of memory" message
Jean-Paul Saman [Sat, 17 May 2008 09:34:59 +0000 (11:34 +0200)]
Remove "out of memory" message

12 years agoCheck malloc/recalloc return values.
Jean-Paul Saman [Sat, 17 May 2008 09:18:47 +0000 (11:18 +0200)]
Check malloc/recalloc return values.

12 years agoAdded the minimal-OSX class files and a couple of more related files to the project...
Felix Paul Kühne [Sat, 17 May 2008 16:29:46 +0000 (18:29 +0200)]
Added the minimal-OSX class files and a couple of more related files to the project list for easier lookup

12 years agoRemove the children leak detection which is not working anymore
Rémi Denis-Courmont [Sat, 17 May 2008 16:25:19 +0000 (19:25 +0300)]
Remove the children leak detection which is not working anymore

If you have a better idea, you are welcome, but I am very doutful.

12 years agoAlso remove the link fromn dead objects toward their children
Rémi Denis-Courmont [Sat, 17 May 2008 16:22:54 +0000 (19:22 +0300)]
Also remove the link fromn dead objects toward their children

Previously, we only removed links from children to dead parents.
This patch is semantically the same as Funman's earlier
vlc_object_detach_unlocked() patch. It is merely faster and less clean.

Unfortunately, this means it is impossible to detect leaked children.
That being noted, leaving dead parents "semi-attached" in objects tree
is not thread-safe anyhow. Basically, we either automatically detach
objects (and miss leaks), or require children to be detached/destroyed
before their parent is destroyed (and get leaks detection, but more
coding pain).

12 years agovlc_object_get sucks, document it
Rémi Denis-Courmont [Sat, 17 May 2008 15:58:36 +0000 (18:58 +0300)]
vlc_object_get sucks, document it

12 years agoQt4: do not use vlc_object_get
Rémi Denis-Courmont [Sat, 17 May 2008 15:53:31 +0000 (18:53 +0300)]
Qt4: do not use vlc_object_get

12 years agoIgnore X11 errors on Maemo
Rémi Denis-Courmont [Sat, 17 May 2008 12:12:33 +0000 (15:12 +0300)]
Ignore X11 errors on Maemo

12 years agoEnable the Nokia OSSO hacks on all X11 plugins
Rémi Denis-Courmont [Sat, 17 May 2008 12:07:46 +0000 (15:07 +0300)]
Enable the Nokia OSSO hacks on all X11 plugins

12 years agotranscode: Fix a typo about scale.
Pierre d'Herbemont [Fri, 16 May 2008 15:42:40 +0000 (17:42 +0200)]
transcode: Fix a typo about scale.

Signed-off-by: Jean-Paul Saman <jpsaman@videolan.org>
12 years agoContrib: fix libvorbis CVEs: 2008-1419, 2008-1420, 2008-1423.
Pavlov Konstantin [Fri, 16 May 2008 22:56:00 +0000 (02:56 +0400)]
Contrib: fix libvorbis CVEs: 2008-1419, 2008-1420, 2008-1423.

12 years agoContrib: fix CVE-2008-2109 for libid3tag.
Pavlov Konstantin [Fri, 16 May 2008 22:23:51 +0000 (02:23 +0400)]
Contrib: fix CVE-2008-2109 for libid3tag.

12 years agoSimplification
Rémi Denis-Courmont [Fri, 16 May 2008 16:13:37 +0000 (19:13 +0300)]
Simplification

12 years agoMake vlc_object_detach a no-op if the object is not attached
Rémi Denis-Courmont [Fri, 16 May 2008 16:06:25 +0000 (19:06 +0300)]
Make vlc_object_detach a no-op if the object is not attached

12 years agoHide i_children and pp_children away
Rémi Denis-Courmont [Fri, 16 May 2008 14:59:03 +0000 (17:59 +0300)]
Hide i_children and pp_children away

They can only be read safely under the Big Structure Lock in
src/misc/objects.c, so it makes no sense for them to be public.

By the way, making i_children volatile wouldn't magically solve
thread-safety issues. The only correct use of volatile is in dealing
with asynchronous changes _within_ the same thread, such as signal
handling.

P.S.: I wish modules were not objects, and I wonder why they are
(they don't don't use threads, nor plugins, nor variables)