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

13 years agoUnneeded #include
Rémi Denis-Courmont [Sun, 5 Oct 2008 12:34:19 +0000 (15:34 +0300)]
Unneeded #include

13 years agoCleanup b_cache_delete
Rémi Denis-Courmont [Sun, 5 Oct 2008 12:25:54 +0000 (15:25 +0300)]
Cleanup b_cache_delete

13 years agoRemove b_cache_delete
Rémi Denis-Courmont [Sun, 5 Oct 2008 12:19:32 +0000 (15:19 +0300)]
Remove b_cache_delete

13 years agoRemove one core dependency upon the module bank
Rémi Denis-Courmont [Sun, 5 Oct 2008 12:18:50 +0000 (15:18 +0300)]
Remove one core dependency upon the module bank

13 years agoDangling code
Rémi Denis-Courmont [Sun, 5 Oct 2008 10:16:15 +0000 (13:16 +0300)]
Dangling code

13 years agoTentative link fix
Rémi Denis-Courmont [Sun, 5 Oct 2008 09:57:46 +0000 (12:57 +0300)]
Tentative link fix

13 years agoRemove slow and leaking var_AcquireMutex
Rémi Denis-Courmont [Sun, 5 Oct 2008 09:40:24 +0000 (12:40 +0300)]
Remove slow and leaking var_AcquireMutex

13 years agoUse static mutexes
Rémi Denis-Courmont [Sun, 5 Oct 2008 08:28:32 +0000 (11:28 +0300)]
Use static mutexes

13 years agoStatic mutexes
Rémi Denis-Courmont [Sun, 5 Oct 2008 08:19:00 +0000 (11:19 +0300)]
Static mutexes

13 years agoRemove vlc_threads_(init|end), fix thread-safety on Win32
Rémi Denis-Courmont [Sun, 5 Oct 2008 07:38:49 +0000 (10:38 +0300)]
Remove vlc_threads_(init|end), fix thread-safety on Win32

13 years agoFix vlc_thread_ready invalid use of object_wait
Rémi Denis-Courmont [Sat, 4 Oct 2008 20:21:35 +0000 (23:21 +0300)]
Fix vlc_thread_ready invalid use of object_wait

13 years agoffmpeg changed offset_t to int64_t in svn rev15533. Let's keep up with them.
Dominique Leuenberger [Sat, 4 Oct 2008 04:00:44 +0000 (06:00 +0200)]
ffmpeg changed offset_t to int64_t in svn rev15533. Let's keep up with them.

Signed-Off-By: Christophe Mutricy
13 years agoFix playlist use. Fix #2153
Christophe Mutricy [Sat, 4 Oct 2008 15:26:28 +0000 (16:26 +0100)]
Fix playlist use. Fix #2153

13 years agoQt4: Split the controllers from the rest of the interface widgets.
Jean-Baptiste Kempf [Fri, 3 Oct 2008 05:19:20 +0000 (22:19 -0700)]
Qt4: Split the controllers from the rest of the interface widgets.

13 years agoQt4: fix remaining preferences intempestive popups.
Jean-Baptiste Kempf [Thu, 2 Oct 2008 22:03:11 +0000 (15:03 -0700)]
Qt4: fix remaining preferences intempestive popups.

13 years agoCritical section are internally recursive
Rémi Denis-Courmont [Mon, 29 Sep 2008 18:18:20 +0000 (21:18 +0300)]
Critical section are internally recursive

Remove all this useless stuff of mine.

13 years agoHuman readable git versions
Rémi Denis-Courmont [Sat, 4 Oct 2008 15:03:02 +0000 (18:03 +0300)]
Human readable git versions

13 years agoensure compatibility with future versions of Darwin
Felix Kühne [Sat, 4 Oct 2008 12:38:42 +0000 (14:38 +0200)]
ensure compatibility with future versions of Darwin

13 years agoforward-port [4f51e27858885a78d4fc93a8312b8e96d92805ae]
Felix Paul Kühne [Fri, 3 Oct 2008 22:20:17 +0000 (00:20 +0200)]
forward-port [4f51e27858885a78d4fc93a8312b8e96d92805ae]

13 years agoFix regression in libvlc_video_set_spu() and libvlc_audio_set_track().
Jean-Paul Saman [Fri, 3 Oct 2008 11:56:45 +0000 (13:56 +0200)]
Fix regression in libvlc_video_set_spu() and libvlc_audio_set_track().

13 years agoFix regression in libvlc_video_set_teletext().
Jean-Paul Saman [Mon, 29 Sep 2008 10:56:21 +0000 (12:56 +0200)]
Fix regression in libvlc_video_set_teletext().

13 years agoUse the integer value for teletext page in test.html.
Jean-Paul Saman [Mon, 29 Sep 2008 10:54:50 +0000 (12:54 +0200)]
Use the integer value for teletext page in test.html.

13 years agoFix bug in libvlc_video_set_teletext()
Jean-Paul Saman [Sun, 28 Sep 2008 17:25:54 +0000 (19:25 +0200)]
Fix bug in libvlc_video_set_teletext()

13 years agoAdd subtitle and teletext JS API to test.html
Jean-Paul Saman [Sun, 28 Sep 2008 17:23:59 +0000 (19:23 +0200)]
Add subtitle and teletext JS API to test.html

13 years agomacosx: renamed getVoutView to voutView in order to make it conform to the cocoa...
Felix Paul Kühne [Fri, 3 Oct 2008 14:44:26 +0000 (16:44 +0200)]
macosx: renamed getVoutView to voutView in order to make it conform to the cocoa naming scheme

13 years agomacosx: ugly compilation fix as VLC_OBJECT_OPENGL was removed
Felix Paul Kühne [Fri, 3 Oct 2008 13:45:19 +0000 (15:45 +0200)]
macosx: ugly compilation fix as VLC_OBJECT_OPENGL was removed

Compatibility with the caca and x11 vouts needs to be checked

13 years agoCleanup PVR path parser
Rémi Denis-Courmont [Thu, 2 Oct 2008 16:26:27 +0000 (19:26 +0300)]
Cleanup PVR path parser

13 years agolibmpeg2: user_data has been available since 0.3.2
Derk-Jan Hartman [Thu, 2 Oct 2008 19:12:15 +0000 (21:12 +0200)]
libmpeg2: user_data has been available since 0.3.2

Since we require libmpeg > 0.3.2 there is no need for this check.

13 years agomacosx: allow to specify where you want the download to be save and how it should...
Derk-Jan Hartman [Thu, 2 Oct 2008 14:53:25 +0000 (16:53 +0200)]
macosx: allow to specify where you want the download to be save and how it should be called.

13 years agoupdate: don't free the temp pointer, but free the original instead.
Derk-Jan Hartman [Thu, 2 Oct 2008 14:41:22 +0000 (16:41 +0200)]
update: don't free the temp pointer, but free the original instead.

13 years agoupdate: rename the variables so that it matches their current purpose
Derk-Jan Hartman [Thu, 2 Oct 2008 14:38:39 +0000 (16:38 +0200)]
update: rename the variables so that it matches their current purpose

13 years agoupdate: allow update_Download to accept: directory, filename, NULL
Derk-Jan Hartman [Thu, 2 Oct 2008 14:32:14 +0000 (16:32 +0200)]
update: allow update_Download  to accept: directory, filename, NULL

directory: accepts any existing directory and will use the filename component of the update URL (old behaviour). This option no longer requires you to provide a string that ends with the pathsep.

filename: write directly to this filename. Existing files will be overwritten.

NULL: will write to filename component of the update URL. likely in the CWD.

13 years agofortunes: PWNtcha !!!
Derk-Jan Hartman [Thu, 2 Oct 2008 12:02:13 +0000 (14:02 +0200)]
fortunes: PWNtcha !!!

13 years agoWin32 Vout: after the previous fix of Win32 Vout, the fullscreen mode wasn't kept...
Jean-Baptiste Kempf [Thu, 2 Oct 2008 06:29:09 +0000 (23:29 -0700)]
Win32 Vout: after the previous fix of Win32 Vout, the fullscreen mode wasn't kept for the next item. This fixes that.

13 years agoFixed a stupid typo in swscale copy conditions.
Laurent Aimar [Wed, 1 Oct 2008 20:45:45 +0000 (22:45 +0200)]
Fixed a stupid typo in swscale copy conditions.

It closes at least #2119 (on any vertical scaled only subtitle).

13 years agoFixed annoying lates frame when slowing speed.
Laurent Aimar [Tue, 30 Sep 2008 21:49:46 +0000 (23:49 +0200)]
Fixed annoying lates frame when slowing speed.

13 years agoNo functionnal changes (clean up)
Laurent Aimar [Tue, 30 Sep 2008 21:30:00 +0000 (23:30 +0200)]
No functionnal changes (clean up)

13 years agoFix for p_input being now hidden.
Christophe Mutricy [Wed, 1 Oct 2008 20:40:30 +0000 (21:40 +0100)]
Fix for p_input being now hidden.

13 years agoDon' reinvete the wheel just for fun.
Rémi Duraffort [Wed, 1 Oct 2008 20:38:05 +0000 (22:38 +0200)]
Don' reinvete the wheel just for fun.

13 years agoCleaning and fix potential memleaks.
Rémi Duraffort [Wed, 1 Oct 2008 20:17:56 +0000 (22:17 +0200)]
Cleaning and fix potential memleaks.

13 years agoRemove xurl_(free|malloc)
Rémi Duraffort [Wed, 1 Oct 2008 20:05:36 +0000 (22:05 +0200)]
Remove xurl_(free|malloc)

13 years agosecond parameter of streallocat must be const.
Rémi Duraffort [Wed, 1 Oct 2008 19:56:52 +0000 (21:56 +0200)]
second parameter of streallocat must be const.

13 years agoxlist: last can't be NULL here (invalidate CID 50)
Rémi Duraffort [Wed, 1 Oct 2008 19:52:42 +0000 (21:52 +0200)]
xlist: last can't be NULL here (invalidate CID 50)

13 years agoFix potential memleaks (CID 222 and 221)
Rémi Duraffort [Wed, 1 Oct 2008 19:43:48 +0000 (21:43 +0200)]
Fix potential memleaks (CID 222 and 221)

13 years agoFix memleak (CID 225)
Rémi Duraffort [Wed, 1 Oct 2008 19:34:17 +0000 (21:34 +0200)]
Fix memleak (CID 225)

13 years agoFix memleak (CID 209)
Rémi Duraffort [Wed, 1 Oct 2008 19:20:11 +0000 (21:20 +0200)]
Fix memleak (CID 209)

13 years agoFix memleaks (CID 211)
Rémi Duraffort [Wed, 1 Oct 2008 19:17:48 +0000 (21:17 +0200)]
Fix memleaks (CID 211)

13 years agoFix memleak (CID 212)
Rémi Duraffort [Wed, 1 Oct 2008 19:13:54 +0000 (21:13 +0200)]
Fix memleak (CID 212)

13 years agoFix memleak (CID 213)
Rémi Duraffort [Wed, 1 Oct 2008 19:11:57 +0000 (21:11 +0200)]
Fix memleak (CID 213)

13 years agoUse asprintf instead of malloc/sprintf.
Rémi Duraffort [Wed, 1 Oct 2008 18:58:34 +0000 (20:58 +0200)]
Use asprintf instead of malloc/sprintf.

13 years agoHotkeys: remove unuseful test on p_playlist: If p_playlist is NULL here, you are...
Jean-Baptiste Kempf [Wed, 1 Oct 2008 18:51:33 +0000 (11:51 -0700)]
Hotkeys: remove unuseful test on p_playlist: If p_playlist is NULL here, you are dead just before.

Can pl_Hold return NULL ?

13 years agoMacro protection.
Rémi Duraffort [Wed, 1 Oct 2008 18:50:04 +0000 (20:50 +0200)]
Macro protection.

13 years agoBlend: Remove unuseful variable. CID 241
Jean-Baptiste Kempf [Wed, 1 Oct 2008 18:49:03 +0000 (11:49 -0700)]
Blend: Remove unuseful variable. CID 241

13 years agoAssert p_block.
Jean-Baptiste Kempf [Wed, 1 Oct 2008 18:47:04 +0000 (11:47 -0700)]
Assert p_block.

13 years agoRemove useless test.
Jean-Baptiste Kempf [Wed, 1 Oct 2008 18:45:58 +0000 (11:45 -0700)]
Remove useless test.

p_sys cannot be null here.

13 years agoRemove dummy vlc_thread_ready
Rémi Denis-Courmont [Wed, 1 Oct 2008 18:35:32 +0000 (21:35 +0300)]
Remove dummy vlc_thread_ready