vlc.git
12 years agotranscode: When failing also print the fourcc we were looking for instead of just...
Pierre d'Herbemont [Sat, 24 May 2008 00:36:14 +0000 (02:36 +0200)]
transcode: When failing also print the fourcc we were looking for instead of just "(null)" if no explicit module was selected.

12 years agotranscode: Put more details in error messages.
Pierre d'Herbemont [Sat, 24 May 2008 00:23:51 +0000 (02:23 +0200)]
transcode: Put more details in error messages.

12 years agoRevert "stats: Don't crash if there is no timer to dump."
Pierre d'Herbemont [Fri, 23 May 2008 22:57:17 +0000 (00:57 +0200)]
Revert "stats: Don't crash if there is no timer to dump."

This reverts commit 8fe54e490872687b20e52581d84a94ffa7f443b0.

No need for that one, now that Rafael handles it in DumpTimer directly.

12 years agotranscode: One more occurence of pf_encode_video() that needs a timer.
Pierre d'Herbemont [Fri, 23 May 2008 22:54:11 +0000 (00:54 +0200)]
transcode: One more occurence of pf_encode_video() that needs a timer.

12 years agoThanks.
Jean-Baptiste Kempf [Fri, 23 May 2008 22:42:09 +0000 (15:42 -0700)]
Thanks.

12 years agoCosmetic et metadata fixes.
Jean-Baptiste Kempf [Fri, 23 May 2008 22:36:10 +0000 (15:36 -0700)]
Cosmetic et metadata fixes.

12 years agoreal file index and seek
Wang Bo [Fri, 23 May 2008 12:38:26 +0000 (20:38 +0800)]
real file index and seek

Signed-off-by: Jean-Baptiste Kempf <jb@ambre.(none)>
12 years agoconfig: Clean up for the -psn cmd line argument case on Mac OS X.
Pierre d'Herbemont [Fri, 23 May 2008 22:16:06 +0000 (00:16 +0200)]
config: Clean up for the -psn cmd line argument case on Mac OS X.

12 years agotranscode: Measure the time taken to encode one audio or video frame.
Pierre d'Herbemont [Fri, 23 May 2008 20:47:44 +0000 (22:47 +0200)]
transcode: Measure the time taken to encode one audio or video frame.

12 years agostats: Don't crash if there is no timer to dump.
Pierre d'Herbemont [Fri, 23 May 2008 20:46:03 +0000 (22:46 +0200)]
stats: Don't crash if there is no timer to dump.

12 years agoVLC: remove win32 stuff
Rémi Denis-Courmont [Fri, 23 May 2008 15:43:57 +0000 (18:43 +0300)]
VLC: remove win32 stuff

12 years agoSeparate and refactor the win32 main code
Rémi Denis-Courmont [Fri, 23 May 2008 15:42:11 +0000 (18:42 +0300)]
Separate and refactor the win32 main code

It has almost nothing in common with the Unix main code anyway.

12 years agoCode factorization
Rémi Denis-Courmont [Fri, 23 May 2008 15:26:16 +0000 (18:26 +0300)]
Code factorization

12 years agoBe lazy : let modules do what they want with stats - without crashing
Rafaël Carré [Fri, 23 May 2008 15:06:51 +0000 (17:06 +0200)]
Be lazy : let modules do what they want with stats - without crashing

12 years agomms/tcp: send requested media file path to the server without leading / character
bl4 [Fri, 23 May 2008 13:50:27 +0000 (15:50 +0200)]
mms/tcp: send requested media file path to the server without leading / character

Signed-off-by: Rémi Denis-Courmont <rem@videolan.org>
12 years agoDon't do pts changes to telx blocks if we're not runing real time.
Antoine Cellerier [Fri, 23 May 2008 14:40:19 +0000 (16:40 +0200)]
Don't do pts changes to telx blocks if we're not runing real time.

12 years agoHelp to fight NULL pointer dereference in stats
Rafaël Carré [Fri, 23 May 2008 13:52:20 +0000 (15:52 +0200)]
Help to fight NULL pointer dereference in stats

12 years agoAdd gtk2 cflags/libs to gtk2_main
Rafaël Carré [Fri, 23 May 2008 13:51:08 +0000 (15:51 +0200)]
Add gtk2 cflags/libs to gtk2_main

12 years agoFix linking when compiling with enabled update checker
Felix Paul Kühne [Fri, 23 May 2008 13:27:37 +0000 (15:27 +0200)]
Fix linking when compiling with enabled update checker

12 years agoWe need xlocale.h here too
Felix Paul Kühne [Fri, 23 May 2008 12:54:30 +0000 (14:54 +0200)]
We need xlocale.h here too

12 years agoInclude xlocale.h on OS X for locale_t
Felix Paul Kühne [Fri, 23 May 2008 12:48:04 +0000 (14:48 +0200)]
Include xlocale.h on OS X for locale_t

12 years agoKeep a good rendering quality when rendering zvbi subs as text.
Antoine Cellerier [Fri, 23 May 2008 12:12:26 +0000 (14:12 +0200)]
Keep a good rendering quality when rendering zvbi subs as text.

12 years agoFix the display date in zvbi.
Antoine Cellerier [Fri, 23 May 2008 08:18:34 +0000 (10:18 +0200)]
Fix the display date in zvbi.

12 years agoOnly keep the full pes packet if using the zvbi teletext decoder. (zvbi should be...
Antoine Cellerier [Fri, 23 May 2008 07:50:23 +0000 (09:50 +0200)]
Only keep the full pes packet if using the zvbi teletext decoder. (zvbi should be fixed to be able to use the vbi data directly without all the pes stuff)

12 years agoFix wx build
Alexis Ballier [Thu, 22 May 2008 21:26:46 +0000 (23:26 +0200)]
Fix wx build

The ugly casting is correct wrt the vlc_object_t inheritance
Signed-off-by: Rafaël Carré <funman@videolan.org>
12 years agoCheck malloc return value when needed and don't print an error when such error happend.
Rémi Duraffort [Thu, 22 May 2008 19:58:28 +0000 (21:58 +0200)]
Check malloc return value when needed and don't print an error when such error happend.
Fix a potential segfault.

12 years agoUse netinet macros instead of pointer access
Rémi Denis-Courmont [Thu, 22 May 2008 20:46:34 +0000 (23:46 +0300)]
Use netinet macros instead of pointer access

12 years agoFix vlc_threadvar_delete
Rémi Denis-Courmont [Thu, 22 May 2008 20:03:16 +0000 (23:03 +0300)]
Fix vlc_threadvar_delete

12 years agoRemove (hopefully) unused #include
Rémi Denis-Courmont [Thu, 22 May 2008 20:03:00 +0000 (23:03 +0300)]
Remove (hopefully) unused #include

We don't want config.h stuff in vlc_common.h

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