]>
git.sesse.net Git - vlc/log
Rémi Denis-Courmont [Fri, 11 May 2012 17:43:32 +0000 (20:43 +0300)]
Rewrite vlc_atomic_* using the new atomic operations
This way, the official atomic functions will be used when available,
rather than VLC's own implementation.
This commit also enables proper atomic operations on some platforms
or with some toolchains. __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4 is not
defined on some platforms such as ARM Linux, nor by other compilers
than GCC such as LLVM/clang. Then atomic operations wrongly fell
back to the lame mutex-based implementation.
This will break support for some old compilers and old or irrelevant
instruction set architectures. They would need to provide replacement
for the Intel-originated __sync_* builtin functions.
Rémi Denis-Courmont [Fri, 11 May 2012 17:24:04 +0000 (20:24 +0300)]
Provide C11-like atomics in <vlc_atomic.h>
Since this constitutes mostly of macros and type definitions, it would
not fit too well in compat/. Most of the code would end up in
<vlc_fixups.h> rather than compat/. Moreover, I doubt that those
functions would be detected properly with AC_CHECK_FUNCS or
AC_REPLACE_FUNCS.
Anyway, VLC already has a separate header, and it will need to keep it
until <stdatomic.h> can be relied upon... many years from now.
Mark Lee [Wed, 9 May 2012 16:29:34 +0000 (17:29 +0100)]
In libvlc_media_list_player_play_item_at_index() set the media descriptor on the NextItemSet event.
This is now the same as was already implemented in the
set_relative_playlist_position_and_play() method.
KO Myung-Hun [Thu, 22 Mar 2012 04:41:47 +0000 (13:41 +0900)]
Implement filesystem.c and plugin.c for OS/2
Signed-off-by: Rémi Denis-Courmont <remi@remlab.net>
Felix Paul Kühne [Fri, 11 May 2012 11:05:03 +0000 (13:05 +0200)]
macosx: improve the handling of broken prefs and make sure that the user is unable to re-break them without using the command-line or a text editor
Jean-Paul Saman [Fri, 11 May 2012 07:51:26 +0000 (09:51 +0200)]
Revert "video_filter/scene.c: write pictures in a separate thread."
This reverts commit
8bc285bddde1e47a6df1ddf1ae35acf3432b6478 .
David Fuhrmann [Fri, 11 May 2012 07:16:22 +0000 (09:16 +0200)]
macosx: fix menu support in detached video window
David Fuhrmann [Fri, 11 May 2012 07:11:51 +0000 (09:11 +0200)]
macosx: avoid some focus problems when doing playlistish stuff
The original purpose for this code is fixed somewhere else today.
close #6769
Rémi Denis-Courmont [Thu, 10 May 2012 20:53:00 +0000 (23:53 +0300)]
Add SNR and signal level for access_demux
In particular, V4L is (usually) an access_demux rather than an access.
Rémi Denis-Courmont [Thu, 10 May 2012 20:34:14 +0000 (23:34 +0300)]
subsdec: add CP850 as a character encoding (fix #6732)
Rémi Denis-Courmont [Thu, 10 May 2012 20:05:48 +0000 (23:05 +0300)]
marq: avoid name conflict with Win32 API
Rémi Denis-Courmont [Thu, 10 May 2012 17:04:03 +0000 (20:04 +0300)]
marq: use vlc_fopen()
Rémi Denis-Courmont [Thu, 10 May 2012 16:49:01 +0000 (19:49 +0300)]
marq: add --marq-file to read/update the text from a file
Rémi Denis-Courmont [Thu, 10 May 2012 16:30:08 +0000 (19:30 +0300)]
marq: cleanly check if a SPU update is required
Format the text. If it is identical and all parameters are unchanged,
there is no need to update - even if the format contains a $ sign.
Rémi Denis-Courmont [Thu, 10 May 2012 15:36:10 +0000 (18:36 +0300)]
dc1394: remove implict alias
Rémi Denis-Courmont [Thu, 10 May 2012 15:33:51 +0000 (18:33 +0300)]
dc1394: remove OSS support
A slave input should be used for audio, probably ALSA or Pulse.
Rémi Denis-Courmont [Thu, 10 May 2012 15:15:00 +0000 (18:15 +0300)]
dc1394: no need to link raw1394 directly
Rémi Denis-Courmont [Thu, 10 May 2012 15:09:00 +0000 (18:09 +0300)]
dc1394: clarify what this module is about
Rémi Denis-Courmont [Thu, 10 May 2012 15:05:26 +0000 (18:05 +0300)]
dc1394: unused struct member
Rémi Denis-Courmont [Thu, 10 May 2012 15:03:35 +0000 (18:03 +0300)]
Rename access_dv to dv1394
Francois Cartegnie [Thu, 10 May 2012 14:01:17 +0000 (16:01 +0200)]
Qt: playlist dialog: remove unneeded layer
Jean-Paul Saman [Thu, 10 May 2012 12:02:50 +0000 (14:02 +0200)]
video_filter/scene.c: write pictures in a separate thread.
Improve scene video filter to write pictures in a separate thread.
Felix Paul Kühne [Wed, 9 May 2012 23:54:56 +0000 (01:54 +0200)]
macosx: trust the user that s/he knows what s/he's doing when opening a VIDEO_TS folder (close #6108)
in other words, accept folders which aren't named 'VIDEO_TS'
Rémi Denis-Courmont [Wed, 9 May 2012 20:16:52 +0000 (23:16 +0300)]
gestures: follow playlist, input, vout events and remove pollign thread
It probably wouldn't hurt to provide helpers for mouse events.
Rémi Denis-Courmont [Wed, 9 May 2012 19:37:04 +0000 (22:37 +0300)]
gestures: process gestures directly from event and clean up
This is similar to hotkeys. There is no need for a hand-over thread.
Felix Paul Kühne [Wed, 9 May 2012 18:39:23 +0000 (20:39 +0200)]
macosx: remove another hack, since it isn't needed
Felix Paul Kühne [Wed, 9 May 2012 18:11:22 +0000 (20:11 +0200)]
macosx: replaced dated threading hacks with the latest season stuff
Thanks to Rémi for the help
Rémi Denis-Courmont [Wed, 9 May 2012 17:11:38 +0000 (20:11 +0300)]
Privatize vlc_object_kill()
Rémi Denis-Courmont [Wed, 9 May 2012 17:09:51 +0000 (20:09 +0300)]
update: syntax error
Felix Paul Kühne [Wed, 9 May 2012 17:11:39 +0000 (19:11 +0200)]
src/interface: compilation fix
Rémi Denis-Courmont [Wed, 9 May 2012 16:49:41 +0000 (19:49 +0300)]
Remove non-sensical condition
If a thread can be cancelled, it can be joined.
Regression introduced in
55c6f68897a18e906edebc596c84c2ad43f78f3f .
Rémi Denis-Courmont [Wed, 9 May 2012 16:49:22 +0000 (19:49 +0300)]
Stray declaration
Rémi Denis-Courmont [Wed, 9 May 2012 16:21:19 +0000 (19:21 +0300)]
xosd: do not use pf_run
Rémi Denis-Courmont [Wed, 9 May 2012 15:58:01 +0000 (18:58 +0300)]
Add test case for the VLC binary
Rémi Denis-Courmont [Wed, 9 May 2012 15:44:58 +0000 (18:44 +0300)]
playlist: use proper boolean instead of vlc_object_(kill|alive)
Rémi Denis-Courmont [Wed, 9 May 2012 15:36:24 +0000 (18:36 +0300)]
VLM: remove dummy vlc_object_kill()
There is no matching vlc_object_alive() or vlc_object_waitpipe().
Rémi Denis-Courmont [Wed, 9 May 2012 15:34:45 +0000 (18:34 +0300)]
update: use vlc_atomic_* instead of vlc_object_(kill|alive)
Rémi Denis-Courmont [Wed, 9 May 2012 15:23:41 +0000 (18:23 +0300)]
update: fix memory error handling
Rémi Denis-Courmont [Wed, 9 May 2012 15:16:58 +0000 (18:16 +0300)]
httpd: use thread cancellation instead of wakeup pipe
Rémi Denis-Courmont [Wed, 9 May 2012 15:00:06 +0000 (18:00 +0300)]
oldrc: avoid vlc_object_kill()
Rémi Denis-Courmont [Wed, 9 May 2012 14:58:20 +0000 (17:58 +0300)]
remoteosd: no need for vlc_object_kill()
vlc_cancel() terminates the thread. There is a massive leak though.
Rémi Denis-Courmont [Wed, 9 May 2012 14:56:52 +0000 (17:56 +0300)]
avi: do not use vlc_object_kill()
Rémi Denis-Courmont [Wed, 9 May 2012 14:52:38 +0000 (17:52 +0300)]
Revert "macosx: run on first thread directly, like already done by Qt4"
This reverts commit
a11c642f29bf4f163551d2aece30ff01b329321c .
Rémi Denis-Courmont [Wed, 9 May 2012 14:52:25 +0000 (17:52 +0300)]
Revert "Remove b_should_run_on_first_thread"
This reverts commit
4dc0b22b3371235fc1295a52d26562c979e87c5a .
David Fuhrmann [Tue, 8 May 2012 18:38:47 +0000 (20:38 +0200)]
macosx: remove unneeded headers from videoview.m
Rémi Denis-Courmont [Tue, 8 May 2012 19:32:16 +0000 (22:32 +0300)]
a52: remove redumdant data
The channels count can trivially be computed with popcount().
Rémi Denis-Courmont [Tue, 8 May 2012 18:59:46 +0000 (21:59 +0300)]
libvlc_log_*: document version requirement
Francois Cartegnie [Tue, 8 May 2012 13:09:37 +0000 (15:09 +0200)]
lua: icecast: can fix radionomy's station names
Francois Cartegnie [Tue, 8 May 2012 10:43:45 +0000 (12:43 +0200)]
lua: icecast: fix icecast meta import
Francois Cartegnie [Tue, 8 May 2012 10:29:26 +0000 (12:29 +0200)]
lua: icecast: show url as alternative for unknown stations
Rémi Denis-Courmont [Mon, 7 May 2012 16:57:49 +0000 (19:57 +0300)]
Remove b_should_run_on_first_thread
Rémi Denis-Courmont [Mon, 7 May 2012 16:57:10 +0000 (19:57 +0300)]
macosx: run on first thread directly, like already done by Qt4
Rémi Denis-Courmont [Mon, 7 May 2012 16:48:57 +0000 (19:48 +0300)]
Remove now useless vlc_exit_t.killed
Rémi Denis-Courmont [Mon, 7 May 2012 16:36:20 +0000 (19:36 +0300)]
Deprecate libvlc_wait() and improve documentation
Rémi Denis-Courmont [Mon, 7 May 2012 16:29:55 +0000 (19:29 +0300)]
Call libvlc_set_exit_handler() first
It should be called before exit can happen.
This restores reverted commit
4d636fa3a74924691b0bb1e26e600f7657e0af5c .
Rémi Denis-Courmont [Mon, 7 May 2012 16:24:05 +0000 (19:24 +0300)]
Remove libvlc_InternalWait() and simplify
Rémi Denis-Courmont [Mon, 7 May 2012 16:26:55 +0000 (19:26 +0300)]
Remove useless MonitorLibVLCDeath() contorsion
Rémi Denis-Courmont [Sun, 6 May 2012 12:17:30 +0000 (15:17 +0300)]
file aout: do not apply volume (refs #6262)
In my opinion, amplifying the audio that gets recorded to a file may do
more harm than good. Indeed, there is no direct feedback to detect and
correct saturation or distortion.
David Fuhrmann [Mon, 7 May 2012 15:09:06 +0000 (17:09 +0200)]
macosx: only show fullscreen when mouse moves inside window
Rémi Denis-Courmont [Sun, 6 May 2012 13:27:51 +0000 (16:27 +0300)]
aout: add option to initialize hardware volume
Felix Paul Kühne [Sun, 6 May 2012 12:52:42 +0000 (14:52 +0200)]
ios/build.sh: don't compile SDL_image
Rémi Denis-Courmont [Sun, 6 May 2012 12:38:12 +0000 (15:38 +0300)]
waveout: fix volume initialization
Rémi Denis-Courmont [Sun, 6 May 2012 12:09:51 +0000 (15:09 +0300)]
PulseAudio: correct volume reporting from PA to VLC (fix #6759)
The proper reciprocal formula to that of VLC to PA conversion must be
used. Otherwise, we get an inconsistent value in the "volume" variable.
Felix Paul Kühne [Sun, 6 May 2012 12:07:10 +0000 (14:07 +0200)]
vout_ios: fixed getProcAddress
David Fuhrmann [Sun, 6 May 2012 09:13:24 +0000 (11:13 +0200)]
macosx vout: public getter for vd should not be needed anymore
David Fuhrmann [Sun, 6 May 2012 09:04:49 +0000 (11:04 +0200)]
macosx vout: syncronize access to sys->place
David Fuhrmann [Sun, 6 May 2012 08:50:34 +0000 (10:50 +0200)]
macosx: remove unneeded p_vouts in videoview
David Fuhrmann [Sun, 6 May 2012 08:49:22 +0000 (10:49 +0200)]
macosx: avoid index out of bound exceptions in some cases
Rémi Denis-Courmont [Sat, 5 May 2012 20:27:05 +0000 (23:27 +0300)]
EGL: update and unify the platforms list
David Fuhrmann [Sat, 5 May 2012 20:10:53 +0000 (22:10 +0200)]
macosx vout: avoid place_picture call for every mouse move event
David Fuhrmann [Sat, 5 May 2012 19:54:59 +0000 (21:54 +0200)]
macosx: move mouse vout event code to vout module
Now it should be usable within own libvlc applications
Rémi Denis-Courmont [Sat, 5 May 2012 17:21:42 +0000 (20:21 +0300)]
mp4: use strndup() where applicable
As a side note, this fixes a valgrind heap read overflow, but I do not
see why. I suspect a conflict between valgrind and some optimization in
libc or gcc here.
Casian Andrei [Sat, 5 May 2012 16:42:54 +0000 (19:42 +0300)]
block: Fix buffer total size in block_Alloc()
The total size of the buffer (i_size) was initialized with the whole
allocated size for the block. This fooled block_Realloc() in the case of
resizing to slightly larger, with the extra size in range from
32 to 32 + 80 bytes. block_Realloc() assumed it had enough space left in
the buffer padding to avoid reallocating memory.
Consequently, the block ended up with a i_buffer field with a value
larger than the allocated memory around p_buffer.
In the end, this could cause memory corruptions in all sorts of cases.
In my case, vlc was crashing while encoutering a corrupted mp3 file.
Signed-off-by: Rémi Denis-Courmont <remi@remlab.net>
David Fuhrmann [Sat, 5 May 2012 17:02:21 +0000 (19:02 +0200)]
macosx: fix mouse position sent to vlc core for menus
Rémi Denis-Courmont [Fri, 4 May 2012 17:32:40 +0000 (20:32 +0300)]
Do not include RPM spec files in tarball
This makes no sense. RPM needs the package specification as a separate
file, where the source tarballs are indicated. Chicken-and-egg...
Besides those files are out-of-date.
Felix Paul Kühne [Fri, 4 May 2012 17:27:11 +0000 (19:27 +0200)]
Makefile.am: added more missing files to make dist (refs #6743)
left out for now: cmake, ipkg and most of win32/UAC
Rémi Denis-Courmont [Fri, 4 May 2012 17:24:57 +0000 (20:24 +0300)]
Add missing events (fix #6750)
Rémi Denis-Courmont [Fri, 4 May 2012 16:40:15 +0000 (19:40 +0300)]
JACK: fix sampling rate (regression in VLC 2.0)
The format must be initialized before aout_PacketInit().
Fix Debian #664279 and LP#987231.
Pointed-out-by: Walter Ösch
Rémi Denis-Courmont [Fri, 4 May 2012 16:13:24 +0000 (19:13 +0300)]
GnuTLS: print certificate error flags (refs #6708)
Rémi Denis-Courmont [Fri, 4 May 2012 16:13:13 +0000 (19:13 +0300)]
GnuTLS: add new certificate error messages
Rémi Denis-Courmont [Fri, 4 May 2012 16:10:01 +0000 (19:10 +0300)]
GnuTLS: do not bother checking certificate dates
Newer GnuTLS versions do it internally and in a more correct fashion.
Rémi Denis-Courmont [Fri, 4 May 2012 16:03:42 +0000 (19:03 +0300)]
configure: require GnuTLS >= 2.6.6 (over 3 years old)
Certificate date verification has changed. To get proper errors,
we need to depend on the newer versions.
Rémi Denis-Courmont [Fri, 4 May 2012 16:14:13 +0000 (19:14 +0300)]
GnuTLS: fix warnings
Felix Paul Kühne [Fri, 4 May 2012 15:56:05 +0000 (17:56 +0200)]
vout_ios: implement gl.getProcAddress
Felix Paul Kühne [Fri, 4 May 2012 15:50:24 +0000 (17:50 +0200)]
vout_macosx: implement gl.getProcAddress
Hugo Beauzée-Luyssen [Fri, 4 May 2012 13:15:40 +0000 (15:15 +0200)]
faad: Fix a crash when channel info are invalids.
Fix #5433
Hugo Beauzée-Luyssen [Wed, 2 May 2012 14:17:29 +0000 (16:17 +0200)]
faad: Remove useless assignment.
These variables are overwritten a few lines later.
Hugo Beauzée-Luyssen [Wed, 2 May 2012 13:37:31 +0000 (15:37 +0200)]
faad: Fix channel reordering loop.
David Fuhrmann [Thu, 3 May 2012 22:26:06 +0000 (00:26 +0200)]
macosx: fix another crash on exit
(for whatever reason this was only observable on snow leopard for me)
Rémi Denis-Courmont [Wed, 25 Apr 2012 15:45:37 +0000 (18:45 +0300)]
Fix one typo
Rémi Denis-Courmont [Tue, 24 Apr 2012 15:36:59 +0000 (18:36 +0300)]
Make resampler configurable with --audio-resampler
Rémi Denis-Courmont [Tue, 24 Apr 2012 15:17:13 +0000 (18:17 +0300)]
Add "audio resampler" capability to resamplers
Rémi Denis-Courmont [Mon, 23 Apr 2012 19:45:23 +0000 (22:45 +0300)]
decoder: work around race whereby pause kicks during lip-sync
DecoderWaitDate() releases the lock and thus state can change.
In particular, the aout can be destroyed, or paused or resumed.
So those checks must be done after DecoderWaitDate().
There may be a cleaner way to do this, but it will likely be more
invasive. This patch fixes #5825 and probably #6369 too.
Rémi Denis-Courmont [Mon, 23 Apr 2012 19:38:04 +0000 (22:38 +0300)]
decoder: demote incorrect warning
A discarded buffer is not necessarily in the future. It might simply be
that there is no output or that the playback rate is out of range.
Rémi Denis-Courmont [Mon, 23 Apr 2012 19:22:46 +0000 (22:22 +0300)]
decoder: keep the lock around DecoderWaitDate() and aout_DecPlay()
DecoderWaitDate() needs to return with the lock held to fix #5825.
Anyway, there was not much point in releasing the lock after
DecoderWaitUnblock() and acquire it again without sleeping.
aout_DecPlay() needs the lock, since the aout is not reentrant.
Rémi Denis-Courmont [Mon, 23 Apr 2012 18:26:21 +0000 (21:26 +0300)]
PulseAudio: add an assertion (refs #5825)
Felix Paul Kühne [Thu, 3 May 2012 16:30:42 +0000 (18:30 +0200)]
macosx: VLC.app shouldn't rely on a script included within VLCKit
Therefore, add a copy to extras to prepare the VLCKit split
Rafaël Carré [Wed, 2 May 2012 17:59:09 +0000 (13:59 -0400)]
contrib: ffmpeg: enable thumb
Depends on --enable-small and HAVE_NEON
If we use NEON, we assume at least cortex-a8 CPU which means thumb2 is supported
Jean-Paul Saman [Thu, 3 May 2012 11:16:00 +0000 (13:16 +0200)]
include/vlc_arrays.h: use unlikely()
David Fuhrmann [Thu, 3 May 2012 07:42:24 +0000 (09:42 +0200)]
macosx vout: unify code style to the most widely used one