vlc.git
13 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

13 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).

13 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).

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

13 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/...

13 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)

13 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

13 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)

13 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)

13 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)

13 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)

13 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

13 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

13 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.

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

13 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.

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

13 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.

13 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.

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

13 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.

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

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

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

13 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.

13 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.

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

13 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...

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

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

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

13 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.

13 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.

13 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)

13 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)

13 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)

13 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)

13 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)

13 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)

13 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.

13 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.

13 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>
13 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>

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

13 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."

13 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

13 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.

13 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.

13 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.

13 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

13 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.

13 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)

13 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.

13 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.

13 years agoChange LIST of modules.
Rémi Duraffort [Mon, 6 Oct 2008 18:28:54 +0000 (20:28 +0200)]
Change LIST of modules.

13 years agoFix potential memleak (CID 227)
Rémi Duraffort [Mon, 6 Oct 2008 18:28:22 +0000 (20:28 +0200)]
Fix potential memleak (CID 227)

13 years agoFix logic.
Rémi Denis-Courmont [Mon, 6 Oct 2008 15:46:56 +0000 (18:46 +0300)]
Fix logic.

We don't need an explicit barrier when setting initialized from
vlc_mutex_init(). The caller shall synchronize memory after
vlc_mutex_init() from any thread calling vlc_mutex_lock() anyway,
since locking an unitialized non-static mutex is undefined.

13 years agops.c: add a safety net to this while loop.
Derk-Jan Hartman [Mon, 6 Oct 2008 12:59:32 +0000 (14:59 +0200)]
ps.c: add a safety net to this while loop.

13 years agodvdread: minimum value for ps_pkt_size is 6
Derk-Jan Hartman [Thu, 2 Oct 2008 20:10:52 +0000 (22:10 +0200)]
dvdread: minimum value for ps_pkt_size is 6
(cherry picked from commit b1aa0a1a872627bb6bf6d94fea8145f4b6c3fccd)

13 years agoWinCE: factorize the file access code (and make it work)
Geoffroy Couprie [Mon, 6 Oct 2008 10:40:19 +0000 (12:40 +0200)]
WinCE: factorize the file access code (and make it work)

13 years agoWinCE: do an ugly thread cancellation without using QueueUserAPC
Geoffroy Couprie [Mon, 6 Oct 2008 09:12:59 +0000 (11:12 +0200)]
WinCE: do an ugly thread cancellation without using QueueUserAPC

13 years agoWinCE: compile vlm
Geoffroy Couprie [Mon, 6 Oct 2008 09:10:16 +0000 (11:10 +0200)]
WinCE: compile vlm

13 years agoRepair GnuTLS/win32
Jean-Baptiste Kempf [Mon, 6 Oct 2008 08:45:46 +0000 (10:45 +0200)]
Repair GnuTLS/win32

13 years agoAvoid segfault
Christophe Mutricy [Sun, 5 Oct 2008 16:03:37 +0000 (17:03 +0100)]
Avoid segfault

Fix #2159

13 years agofix automagic dependency on vcdinfo
Daniel Mierswa [Sun, 14 Sep 2008 23:11:02 +0000 (01:11 +0200)]
fix automagic dependency on vcdinfo

when --enable-libcdio was passed to configure, vcdinfo was searched and
linked against if found (only do that when vcdinfo wasn't disabled)

Signed-off-by: Christophe Mutricy <xtophe@videolan.org>
13 years agoPrint some warnings when liveMedia is not found
Christophe Mutricy [Sat, 4 Oct 2008 23:18:37 +0000 (00:18 +0100)]
Print some warnings when liveMedia is not found

13 years agolet the configure --docdir pass through
Daniel Mierswa [Sun, 14 Sep 2008 23:09:01 +0000 (01:09 +0200)]
let the configure --docdir pass through

Signed-off-by: Christophe Mutricy <xtophe@videolan.org>
13 years agoRedefine vlc_dictionary_clear() and vlc_dictionary_remove_value_for_key() Allow passi...
Adrien Maglo [Tue, 30 Sep 2008 07:10:25 +0000 (09:10 +0200)]
Redefine vlc_dictionary_clear() and vlc_dictionary_remove_value_for_key() Allow passing a pointer to a function and an opaque pointer in order to free the memory if the values of the dictionary contain allocated memory.

Signed-off-by: Rémi Duraffort <ivoire@videolan.org>
13 years agoFix potential memleak (CID 69)
Rémi Duraffort [Sun, 5 Oct 2008 17:44:33 +0000 (19:44 +0200)]
Fix potential memleak (CID 69)

13 years agoFIx potential memleak (CID 217)
Rémi Duraffort [Sun, 5 Oct 2008 17:28:52 +0000 (19:28 +0200)]
FIx potential memleak (CID 217)

13 years agoFix memleak (CID 210)
Rémi Duraffort [Sun, 5 Oct 2008 17:25:28 +0000 (19:25 +0200)]
Fix memleak (CID 210)

13 years agoFix potential memleaks (CID 208)
Rémi Duraffort [Sun, 5 Oct 2008 17:18:29 +0000 (19:18 +0200)]
Fix potential memleaks (CID 208)

13 years agoFix memleak (CID 202, 203, 204 and 205)
Rémi Duraffort [Sun, 5 Oct 2008 17:12:31 +0000 (19:12 +0200)]
Fix memleak (CID 202, 203, 204 and 205)

13 years agoRemove unuse variable (and one memleak in the same time) (CID 201)
Rémi Duraffort [Sun, 5 Oct 2008 17:01:25 +0000 (19:01 +0200)]
Remove unuse variable (and one memleak in the same time) (CID 201)

13 years agoFix resource leak when loadsave fail (CID 94)
Rémi Duraffort [Sun, 5 Oct 2008 16:11:50 +0000 (18:11 +0200)]
Fix resource leak when loadsave fail (CID 94)

13 years agoQT4 wineventfilter for Win32, allows WM_APPCOMMAND stuff
Kaarlo Raiha [Sun, 5 Oct 2008 14:35:00 +0000 (17:35 +0300)]
QT4 wineventfilter for Win32, allows WM_APPCOMMAND stuff

Signed-off-by: Rémi Denis-Courmont <rdenis@simphalempin.com>
13 years agoDo not check for the same error twice (CID#147)
Rémi Denis-Courmont [Sun, 5 Oct 2008 14:22:46 +0000 (17:22 +0300)]
Do not check for the same error twice (CID#147)

13 years agoFix crash on RTSP error with TS muxing (CID#179)
Rémi Denis-Courmont [Sun, 5 Oct 2008 14:18:42 +0000 (17:18 +0300)]
Fix crash on RTSP error with TS muxing (CID#179)

13 years agoifdef out dead "future" code (CID#148)
Rémi Denis-Courmont [Sun, 5 Oct 2008 14:16:52 +0000 (17:16 +0300)]
ifdef out dead "future" code (CID#148)

13 years agoFix NULL dereference (CID#236)
Rémi Denis-Courmont [Sun, 5 Oct 2008 14:15:00 +0000 (17:15 +0300)]
Fix NULL dereference (CID#236)

13 years agoFix NULL dereference (CID#181)
Rémi Denis-Courmont [Sun, 5 Oct 2008 14:12:41 +0000 (17:12 +0300)]
Fix NULL dereference (CID#181)

13 years agoFix NULL dereference (CID#149)
Rémi Denis-Courmont [Sun, 5 Oct 2008 14:10:28 +0000 (17:10 +0300)]
Fix NULL dereference (CID#149)

This bug can never happen, as we never call with pppsz_longname == NULL
at the moment.

13 years agoClarify code (FALSE CID#244)
Rémi Denis-Courmont [Sun, 5 Oct 2008 14:05:56 +0000 (17:05 +0300)]
Clarify code (FALSE CID#244)

13 years agoTimeshift: fix crash on I/O error (CID#157)
Rémi Denis-Courmont [Sun, 5 Oct 2008 13:54:40 +0000 (16:54 +0300)]
Timeshift: fix crash on I/O error (CID#157)

13 years agoFix memory leak (CID#206)
Rémi Denis-Courmont [Sun, 5 Oct 2008 13:53:21 +0000 (16:53 +0300)]
Fix memory leak (CID#206)

13 years agoHandle error (?) from config_GetInt (CID#180)
Rémi Denis-Courmont [Sun, 5 Oct 2008 13:51:19 +0000 (16:51 +0300)]
Handle error (?) from config_GetInt (CID#180)

13 years agoFix NULL dereference (CID#167)
Rémi Denis-Courmont [Sun, 5 Oct 2008 13:51:00 +0000 (16:51 +0300)]
Fix NULL dereference (CID#167)

13 years agoFix dangling pointer use when shrinking a non-standard block
Rémi Denis-Courmont [Sun, 5 Oct 2008 13:42:01 +0000 (16:42 +0300)]
Fix dangling pointer use when shrinking a non-standard block

I believe this path cannot be triggered at the moment however, as
there quite few block_Realloc users. Fixes CID#197.

13 years agoMake the instance lock static
Rémi Denis-Courmont [Sun, 5 Oct 2008 13:41:00 +0000 (16:41 +0300)]
Make the instance lock static

(it's not distinct from the module bank lock)

13 years agoFix some race conditions in the module bank
Rémi Denis-Courmont [Sun, 5 Oct 2008 13:33:28 +0000 (16:33 +0300)]
Fix some race conditions in the module bank

Unfortunately(?), these only occur in multi-instances scenarii...

13 years agoAnother useless parameter
Rémi Denis-Courmont [Sun, 5 Oct 2008 13:18:35 +0000 (16:18 +0300)]
Another useless parameter

13 years agoFix warning
Rémi Denis-Courmont [Sun, 5 Oct 2008 13:14:54 +0000 (16:14 +0300)]
Fix warning

13 years agomodule_find, module_exists, module_get_main: remove useless paramter
Rémi Denis-Courmont [Sun, 5 Oct 2008 13:11:34 +0000 (16:11 +0300)]
module_find, module_exists, module_get_main: remove useless paramter

13 years agoFix missing declaration (supposedly crash on amd64)
Rémi Denis-Courmont [Sun, 5 Oct 2008 13:11:00 +0000 (16:11 +0300)]
Fix missing declaration (supposedly crash on amd64)

13 years agoFix warning
Rémi Denis-Courmont [Sun, 5 Oct 2008 12:59:50 +0000 (15:59 +0300)]
Fix warning

13 years agoFix potential memleak (CID 198)
Rémi Duraffort [Sun, 5 Oct 2008 13:37:09 +0000 (15:37 +0200)]
Fix potential memleak (CID 198)

13 years agoFix one potential memleak (CID 195)
Rémi Duraffort [Sun, 5 Oct 2008 13:31:06 +0000 (15:31 +0200)]
Fix one potential memleak (CID 195)

13 years agoUse vasprintf instead of some malloc+vsnprintf and fix CID 194.
Rémi Duraffort [Sun, 5 Oct 2008 13:10:24 +0000 (15:10 +0200)]
Use vasprintf instead of some malloc+vsnprintf and fix CID 194.

13 years agoCleaning xurl code (CID 193 and CID 51 are now fixed)
Rémi Duraffort [Sun, 5 Oct 2008 12:56:20 +0000 (14:56 +0200)]
Cleaning xurl code (CID 193 and CID 51 are now fixed)

13 years agoBury the module pointer inside modules.c
Rémi Denis-Courmont [Sun, 5 Oct 2008 12:36:50 +0000 (15:36 +0300)]
Bury the module pointer inside modules.c