vlc.git
10 years agoDecomp: vmsplice support
Rémi Denis-Courmont [Sat, 11 Oct 2008 17:34:41 +0000 (20:34 +0300)]
Decomp: vmsplice support

10 years agoTypos
Rémi Denis-Courmont [Sat, 11 Oct 2008 17:23:54 +0000 (20:23 +0300)]
Typos

10 years agoSet close-on-exec file for file inputs
Rémi Denis-Courmont [Sat, 11 Oct 2008 17:11:08 +0000 (20:11 +0300)]
Set close-on-exec file for file inputs

We don't want to leak descriptors to child PROCESSES (!= threads) such
as the pseudo-CGI interface. The socket wrappers ahve already been doing
that for a while. Unfortunately, there are still many "leaks", through
underlying libraries, opendir(), fopen(), etc. And then, this is not
thread-safe (we leak if another thread calls fork() between open() and
fcntl()). This is a well-known limitation in POSIX anyway.

10 years agoDecomp: partially fix error handling
Rémi Denis-Courmont [Sat, 11 Oct 2008 17:07:01 +0000 (20:07 +0300)]
Decomp: partially fix error handling

10 years agoDecompression demuxer. Supports gzip and bzip2 at this point.
Rémi Denis-Courmont [Sat, 11 Oct 2008 15:16:29 +0000 (18:16 +0300)]
Decompression demuxer. Supports gzip and bzip2 at this point.

There seems to be pretty awful bugs in stream_Demux or input or
something though. Sometimes, the input is killed almost immediately.
Other times (e.g. when trying to STOP), Close() never gets called.

10 years agoAllow unspecified demux with stream_DemuxNew().
Rémi Denis-Courmont [Sat, 11 Oct 2008 15:18:12 +0000 (18:18 +0300)]
Allow unspecified demux with stream_DemuxNew().

10 years agoFix crash
Rémi Denis-Courmont [Sat, 11 Oct 2008 14:44:10 +0000 (17:44 +0300)]
Fix crash

10 years agolibvlc: better title/chapter handling
Lukas Durfina [Sat, 4 Oct 2008 20:00:52 +0000 (22:00 +0200)]
libvlc: better title/chapter handling

Signed-off-by: Pierre d'Herbemont <pdherbemont@videolan.org>
10 years agoty demux: simplify and fix potential memleak (CID 214)
Derk-Jan Hartman [Sat, 11 Oct 2008 02:57:19 +0000 (04:57 +0200)]
ty demux: simplify and fix potential memleak (CID 214)

10 years agocontrib: Fix dvdread patch
Derk-Jan Hartman [Sat, 11 Oct 2008 02:44:52 +0000 (04:44 +0200)]
contrib: Fix dvdread patch

10 years agovobsub: Resource leak (CID 215)
Derk-Jan Hartman [Sat, 11 Oct 2008 02:31:01 +0000 (04:31 +0200)]
vobsub: Resource leak (CID 215)

10 years agoFix potential static array overflow (CID 40 and 192)
Derk-Jan Hartman [Fri, 10 Oct 2008 21:39:11 +0000 (23:39 +0200)]
Fix potential static array overflow (CID 40 and 192)

10 years agoFix potential segfault and move code (CID 178)
Rémi Duraffort [Fri, 10 Oct 2008 21:36:12 +0000 (23:36 +0200)]
Fix potential segfault and move code (CID 178)

10 years agoThis case can't happen so assert.
Rémi Duraffort [Fri, 10 Oct 2008 21:29:30 +0000 (23:29 +0200)]
This case can't happen so assert.

10 years agoClarification (the last case can't happend) (CID 174)
Rémi Duraffort [Fri, 10 Oct 2008 21:14:51 +0000 (23:14 +0200)]
Clarification (the last case can't happend) (CID 174)

10 years agoFIx potential segfault (CID 168)
Rémi Duraffort [Fri, 10 Oct 2008 21:06:09 +0000 (23:06 +0200)]
FIx potential segfault (CID 168)

10 years agoFix potential segfault (CID 158)
Rémi Duraffort [Fri, 10 Oct 2008 20:54:45 +0000 (22:54 +0200)]
Fix potential segfault (CID 158)

10 years agoFix potential segfault (CID 252)
Rémi Duraffort [Fri, 10 Oct 2008 20:49:36 +0000 (22:49 +0200)]
Fix potential segfault (CID 252)

10 years agoPlaylist: Simplification and fix CID 151
Rémi Duraffort [Fri, 10 Oct 2008 20:43:36 +0000 (22:43 +0200)]
Playlist: Simplification and fix CID 151

10 years agoRemove unused variable.
Rémi Duraffort [Fri, 10 Oct 2008 20:12:53 +0000 (22:12 +0200)]
Remove unused variable.

10 years agoRemove stupid test before a free.
Rémi Duraffort [Fri, 10 Oct 2008 20:07:14 +0000 (22:07 +0200)]
Remove stupid test before a free.

10 years agoFix potential buffer overflow (CID 191)
Rémi Duraffort [Fri, 10 Oct 2008 19:41:54 +0000 (21:41 +0200)]
Fix potential buffer overflow (CID 191)

10 years agoDon't dereference strrchr without check (CID 185)
Rémi Duraffort [Fri, 10 Oct 2008 19:27:43 +0000 (21:27 +0200)]
Don't dereference strrchr without check (CID 185)

10 years agoFixed invalid/useless usage of ES_OUT_RESET_PCR.
Laurent Aimar [Fri, 10 Oct 2008 19:24:32 +0000 (21:24 +0200)]
Fixed invalid/useless usage of ES_OUT_RESET_PCR.

10 years agoChange ES_OUT_SET_NEXT_DISPLAY_TIME parameters.
Laurent Aimar [Fri, 10 Oct 2008 19:05:38 +0000 (21:05 +0200)]
Change ES_OUT_SET_NEXT_DISPLAY_TIME parameters.

It is cleaner but break the ABI.

10 years agoPartially fixed preroll support.
Laurent Aimar [Fri, 10 Oct 2008 18:39:24 +0000 (20:39 +0200)]
Partially fixed preroll support.

10 years agoDo not assert on non 0 divider in aout_DateInit.
Laurent Aimar [Fri, 10 Oct 2008 17:45:53 +0000 (19:45 +0200)]
Do not assert on non 0 divider in aout_DateInit.

A lot of codecs do init it to 0 and fix it later.

10 years agoDisplay first frame after a seek as soon as possible.
Laurent Aimar [Thu, 9 Oct 2008 22:36:49 +0000 (00:36 +0200)]
Display first frame after a seek as soon as possible.

It works while paused too.

10 years agoPrefer new frames over flushed one (vout).
Laurent Aimar [Thu, 9 Oct 2008 22:33:40 +0000 (00:33 +0200)]
Prefer new frames over flushed one (vout).

10 years agoFix potential memleaks.
Rémi Duraffort [Fri, 10 Oct 2008 19:17:11 +0000 (21:17 +0200)]
Fix potential memleaks.

10 years agoFix potential segfault (don't dereference strrchr directly) CID 35.
Rémi Duraffort [Fri, 10 Oct 2008 19:08:33 +0000 (21:08 +0200)]
Fix potential segfault (don't dereference strrchr directly) CID 35.

10 years agoWe use git now...
Rémi Duraffort [Fri, 10 Oct 2008 18:43:14 +0000 (20:43 +0200)]
We use git now...

10 years agoFix buffer overflow (CID 188)
Rémi Duraffort [Fri, 10 Oct 2008 18:41:25 +0000 (20:41 +0200)]
Fix buffer overflow (CID 188)

10 years agowin32 package: German translation by Michi T. with minor changes by myself
Felix Paul Kühne [Fri, 10 Oct 2008 18:05:44 +0000 (20:05 +0200)]
win32 package: German translation by Michi T. with minor changes by myself

10 years agoTS demux: Clarify a for() loop.
Derk-Jan Hartman [Fri, 10 Oct 2008 15:20:01 +0000 (17:20 +0200)]
TS demux: Clarify a for() loop.

This will likely fix CID 247, which seems like a false.
I don't see how PIDClean is called twice here, I think it's a limitation in the Coverity scan logic.

10 years agommap: Correct [cbc1122ac4551505181ea048ca14a5f87041090f]
Derk-Jan Hartman [Fri, 10 Oct 2008 12:55:49 +0000 (14:55 +0200)]
mmap: Correct [cbc1122ac4551505181ea048ca14a5f87041090f]

I accidently change the probe, not the actual mmap() usage.

10 years agommap: Only use MAP_NOCACHE on platforms that support it.
Derk-Jan Hartman [Fri, 10 Oct 2008 12:15:37 +0000 (14:15 +0200)]
mmap: Only use MAP_NOCACHE on platforms that support it.

That would be Darwin and some BSDs apparently

10 years agommap: open with MAP_NOCACHE
Derk-Jan Hartman [Fri, 10 Oct 2008 12:02:59 +0000 (14:02 +0200)]
mmap: open with MAP_NOCACHE

This means that when the machine gets low on memory, this mmap'ed 4GB movie file is the first to be thrown out of the memory again.

10 years agommap: backport fcntl defined fix from [47a7e913b9c0dc31ba931bfac154d109cdb7e924]
Derk-Jan Hartman [Fri, 10 Oct 2008 12:01:29 +0000 (14:01 +0200)]
mmap: backport fcntl defined fix from [47a7e913b9c0dc31ba931bfac154d109cdb7e924]

10 years agofile: Big bug... typo in the define.
Derk-Jan Hartman [Fri, 10 Oct 2008 11:53:08 +0000 (13:53 +0200)]
file: Big bug... typo in the define.

The code was never enabled.

10 years agoAdded vout_Flush .
Laurent Aimar [Thu, 9 Oct 2008 22:18:44 +0000 (00:18 +0200)]
Added vout_Flush .

10 years agoFixed spu destruction order.
Laurent Aimar [Thu, 9 Oct 2008 22:17:45 +0000 (00:17 +0200)]
Fixed spu destruction order.

It should fix a potential segfault when the vout is closed.

10 years agoRead frame rate from asf container if presents.
Laurent Aimar [Thu, 9 Oct 2008 21:34:34 +0000 (23:34 +0200)]
Read frame rate from asf container if presents.

It helps when reconstructing the video pts as asf does not have them :(

10 years agoEnable embedded video with Qt >= 4.3 - hopefully fixes #2136
Rémi Denis-Courmont [Thu, 9 Oct 2008 20:06:21 +0000 (23:06 +0300)]
Enable embedded video with Qt >= 4.3 - hopefully fixes #2136

10 years agoassert that audio date divider is non-nul, refs #2169
Rémi Denis-Courmont [Thu, 9 Oct 2008 18:01:29 +0000 (21:01 +0300)]
assert that audio date divider is non-nul, refs #2169

10 years agoRemoved dead code in spu core (CID 249).
Laurent Aimar [Thu, 9 Oct 2008 17:51:32 +0000 (19:51 +0200)]
Removed dead code in spu core (CID 249).

10 years agoProvide replacement for CMSG_LEN and CMSG_SPACE
Rémi Denis-Courmont [Thu, 9 Oct 2008 17:49:49 +0000 (20:49 +0300)]
Provide replacement for CMSG_LEN and CMSG_SPACE

10 years agoAdded an assert in record module (invalid CID 169).
Laurent Aimar [Thu, 9 Oct 2008 17:43:27 +0000 (19:43 +0200)]
Added an assert in record module (invalid CID 169).

10 years agoFixed possible NULL deference in teletext path (CID 265).
Laurent Aimar [Thu, 9 Oct 2008 17:32:47 +0000 (19:32 +0200)]
Fixed possible NULL deference in teletext path (CID 265).

10 years agoRemoved debug leftover (avcodec).
Laurent Aimar [Thu, 9 Oct 2008 17:23:40 +0000 (19:23 +0200)]
Removed debug leftover (avcodec).

10 years agoIncluded arpa/inet.h for htons/...
Laurent Aimar [Wed, 8 Oct 2008 23:28:08 +0000 (01:28 +0200)]
Included arpa/inet.h for htons/...

10 years agopotential NULL deref (CID 150)
Derk-Jan Hartman [Thu, 9 Oct 2008 16:33:52 +0000 (18:33 +0200)]
potential NULL deref (CID 150)

10 years agots demux: some cosmetics cleanup
Derk-Jan Hartman [Thu, 9 Oct 2008 16:24:02 +0000 (18:24 +0200)]
ts demux: some cosmetics cleanup

10 years agots: double free (CID 245)
Derk-Jan Hartman [Thu, 9 Oct 2008 16:00:29 +0000 (18:00 +0200)]
ts: double free (CID 245)

10 years agonuv demux: typo in post-malloc check. (CID 144)
Derk-Jan Hartman [Thu, 9 Oct 2008 14:36:54 +0000 (16:36 +0200)]
nuv demux: typo in post-malloc check. (CID 144)

10 years agonuv demux: NULL dereferencing (CID 37)
Derk-Jan Hartman [Thu, 9 Oct 2008 11:44:17 +0000 (13:44 +0200)]
nuv demux: NULL dereferencing (CID 37)

10 years agoAnother typo: SPU_ES mixed up with AUDIO_ES. (CID 250)
Derk-Jan Hartman [Thu, 9 Oct 2008 01:14:08 +0000 (03:14 +0200)]
Another typo: SPU_ES mixed up with AUDIO_ES. (CID 250)

10 years agoFix NULL dereference (CID 254)
Derk-Jan Hartman [Thu, 9 Oct 2008 00:56:49 +0000 (02:56 +0200)]
Fix NULL dereference (CID 254)

A typo/copypaste error confusing p_es->p_dec with p_es->p_dec_record

10 years agoFix potential memleak (CID 196)
Derk-Jan Hartman [Thu, 9 Oct 2008 00:44:14 +0000 (02:44 +0200)]
Fix potential memleak (CID 196)

w00t, my first CID fix :D

10 years agoFixed a segfault in access directory.
Laurent Aimar [Wed, 8 Oct 2008 23:23:54 +0000 (01:23 +0200)]
Fixed a segfault in access directory.

10 years agoCosmetics + A calloc check.
Laurent Aimar [Wed, 8 Oct 2008 23:22:02 +0000 (01:22 +0200)]
Cosmetics + A calloc check.

10 years agoFixed vlc_meta_Merge.
Laurent Aimar [Wed, 8 Oct 2008 23:21:04 +0000 (01:21 +0200)]
Fixed vlc_meta_Merge.

The extra_tags values were not duplicated.

10 years agoFixed decoder_GetDisplayDate while buffering.
Laurent Aimar [Wed, 8 Oct 2008 20:58:23 +0000 (22:58 +0200)]
Fixed decoder_GetDisplayDate while buffering.

10 years agoImproved a bit PCR in asf.
Laurent Aimar [Wed, 8 Oct 2008 20:57:25 +0000 (22:57 +0200)]
Improved a bit PCR in asf.

10 years agoObsoleted minimize-threads option.
Laurent Aimar [Wed, 8 Oct 2008 20:13:30 +0000 (22:13 +0200)]
Obsoleted minimize-threads option.

It is not really needed and was complicating too much decoder code.

10 years agoFixed a potential deadlock.
Laurent Aimar [Wed, 8 Oct 2008 19:38:55 +0000 (21:38 +0200)]
Fixed a potential deadlock.

10 years agoImplemented buffering manipulation at the es_out level.
Laurent Aimar [Wed, 8 Oct 2008 19:20:05 +0000 (21:20 +0200)]
Implemented buffering manipulation at the es_out level.

It allows faster seek and start up time when the access pace can be controlled.

10 years agoFactorize (decoder).
Laurent Aimar [Tue, 7 Oct 2008 20:54:35 +0000 (22:54 +0200)]
Factorize (decoder).

10 years agoNo functional changes (decoder).
Laurent Aimar [Tue, 7 Oct 2008 20:08:32 +0000 (22:08 +0200)]
No functional changes (decoder).

10 years agoCosmetics.
Laurent Aimar [Tue, 7 Oct 2008 18:04:26 +0000 (20:04 +0200)]
Cosmetics.

10 years agoProtect a few whiles againts possible broken decoder.
Laurent Aimar [Tue, 7 Oct 2008 18:00:15 +0000 (20:00 +0200)]
Protect a few whiles againts possible broken decoder.

10 years agoObsolete auto-adjust-pts-delay.
Laurent Aimar [Tue, 7 Oct 2008 17:45:45 +0000 (19:45 +0200)]
Obsolete auto-adjust-pts-delay.

The implementation design was broken. I will fix it once clock/decoder
API is more stable.

10 years agoCosmetics (decoder)
Laurent Aimar [Tue, 7 Oct 2008 17:27:28 +0000 (19:27 +0200)]
Cosmetics (decoder)

10 years agoImplemented audio flushing.
Laurent Aimar [Tue, 7 Oct 2008 17:02:52 +0000 (19:02 +0200)]
Implemented audio flushing.

It is not perfect as the aout mixer buffers some data too but it is too
late...

10 years agoMore accurate decoder flush.
Laurent Aimar [Mon, 6 Oct 2008 18:13:24 +0000 (20:13 +0200)]
More accurate decoder flush.

10 years agoCosmetics (decoder)
Laurent Aimar [Mon, 6 Oct 2008 17:55:55 +0000 (19:55 +0200)]
Cosmetics (decoder)

10 years agoAdded vout flush.
Laurent Aimar [Thu, 2 Oct 2008 19:34:16 +0000 (21:34 +0200)]
Added vout flush.

10 years agoFactorize preroll code and prepare for correct flush.
Laurent Aimar [Thu, 2 Oct 2008 19:14:37 +0000 (21:14 +0200)]
Factorize preroll code and prepare for correct flush.

10 years agoSplit up DecoderDecode function.
Laurent Aimar [Thu, 2 Oct 2008 19:02:06 +0000 (21:02 +0200)]
Split up DecoderDecode function.

No functionnal changes.

10 years agoFix potential memleaks (CID 255)
Rémi Duraffort [Wed, 8 Oct 2008 20:36:17 +0000 (22:36 +0200)]
Fix potential memleaks (CID 255)

10 years agoFix potential memleaks (CID 58 and 59)
Rémi Duraffort [Wed, 8 Oct 2008 20:26:44 +0000 (22:26 +0200)]
Fix potential memleaks (CID 58 and 59)

10 years agoFix potential memleaks (CID 200)
Rémi Duraffort [Wed, 8 Oct 2008 20:19:30 +0000 (22:19 +0200)]
Fix potential memleaks (CID 200)

10 years agoFix potential memleak (CID 260)
Rémi Duraffort [Wed, 8 Oct 2008 20:05:46 +0000 (22:05 +0200)]
Fix potential memleak (CID 260)

10 years agoFix use of unitialised value (CID 262)
Rémi Duraffort [Wed, 8 Oct 2008 19:54:28 +0000 (21:54 +0200)]
Fix use of unitialised value (CID 262)

10 years agoFix potential segfault introduced by myself (CID 263)
Rémi Duraffort [Wed, 8 Oct 2008 19:51:30 +0000 (21:51 +0200)]
Fix potential segfault introduced by myself (CID 263)

10 years agoFixed support for negative module priority.
Laurent Aimar [Wed, 8 Oct 2008 19:15:06 +0000 (21:15 +0200)]
Fixed support for negative module priority.

10 years agotaglib: Check if a tablig string is !null and !empty before we try to use it.
Derk-Jan Hartman [Wed, 8 Oct 2008 18:37:26 +0000 (20:37 +0200)]
taglib: Check if a tablig string is !null and !empty before we try to use it.

10 years agoOpening files without extension
Sebastien Escudier [Fri, 3 Oct 2008 13:05:57 +0000 (15:05 +0200)]
Opening files without extension

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
10 years agowin32 installer: fix some registry entries for win32
Derk-Jan Hartman [Tue, 7 Oct 2008 23:16:21 +0000 (01:16 +0200)]
win32 installer: fix some registry entries for win32

Have a look at the path
  HKEY_CLASSES_ROOT\Applications\vlc.exe\shell\Play\command
in the registry.

In my registry under Vista 32 EN Business the value is
  C:\Program Files\VideoLAN\VLC\vlc.exe --started-from-file "%1"

Normally, it should read
  "C:\Program Files\VideoLAN\VLC\vlc.exe" --started-from-file "%1"

Windows Explorer accepts both variants but the first one causes problems
when trying to call that command from self-written programs.

Reported by Stefan <vbtricks  gmx.net>

10 years agoWinCE: reintroduce parse_cmdline
Geoffroy Couprie [Tue, 7 Oct 2008 17:41:55 +0000 (19:41 +0200)]
WinCE: reintroduce parse_cmdline

10 years agommap: Don't use mmap by default on OS X.
Derk-Jan Hartman [Tue, 7 Oct 2008 14:06:06 +0000 (16:06 +0200)]
mmap: Don't use mmap by default on OS X.

It has little benefits in general, (esp. in our usecase) and huge disadvantages for files on network mounts.
"Basically, IOKit should be so fast and efficient, that there are few usecases left for mmap() on Darwin."

10 years agosync NEWS with 0.9-bugfix
Derk-Jan Hartman [Mon, 6 Oct 2008 22:42:31 +0000 (00:42 +0200)]
sync NEWS with 0.9-bugfix

10 years agocontrib also needs share/libtool when using the binary package.
Derk-Jan Hartman [Mon, 6 Oct 2008 22:11:23 +0000 (00:11 +0200)]
contrib also needs share/libtool when using the binary package.

10 years agoFix build with x264 build 65
Alexis Ballier [Mon, 6 Oct 2008 21:47:20 +0000 (23:47 +0200)]
Fix build with x264 build 65

See http://git.videolan.org/gitweb.cgi/x264.git/?a=commit;h=c89bc900a3bf0d4c4c728ad378703970b4f14e18 for more details.

10 years agoUse NULL instead of 0 for pointers.
Rémi Duraffort [Mon, 6 Oct 2008 19:10:04 +0000 (21:10 +0200)]
Use NULL instead of 0 for pointers.

10 years agoFix memleak (CID 67) and don't use 0 instead of NULL
Rémi Duraffort [Mon, 6 Oct 2008 19:01:54 +0000 (21:01 +0200)]
Fix memleak (CID 67) and don't use 0 instead of NULL

10 years agoFix a lot of memleaks (and CID 68 in the same time).
Rémi Duraffort [Mon, 6 Oct 2008 18:56:01 +0000 (20:56 +0200)]
Fix a lot of memleaks (and CID 68 in the same time).
Also #undef some local macros.
Still a lot of potential memleaks.

10 years agoFix potential segfault (CID 224)
Rémi Duraffort [Mon, 6 Oct 2008 18:36:20 +0000 (20:36 +0200)]
Fix potential segfault (CID 224)

10 years agodbus: include config.h before anything and remove duplicated #define.
Rémi Duraffort [Mon, 6 Oct 2008 18:29:53 +0000 (20:29 +0200)]
dbus: include config.h before anything and remove duplicated #define.

10 years agoDon't redefine true and false.
Rémi Duraffort [Mon, 6 Oct 2008 18:29:28 +0000 (20:29 +0200)]
Don't redefine true and false.