vlc.git
7 years agoInitialize the configuration R/W lock statically
Rémi Denis-Courmont [Thu, 18 Aug 2011 15:19:24 +0000 (18:19 +0300)]
Initialize the configuration R/W lock statically

The lock is static anyway (and so is the data).

7 years agoWin32: emulate static condition variables
Rémi Denis-Courmont [Thu, 18 Aug 2011 15:14:41 +0000 (18:14 +0300)]
Win32: emulate static condition variables

This is really poor implementation, but it is not really used.

7 years agoWin32: use native Win32 functions directly for static mutexes
Rémi Denis-Courmont [Thu, 18 Aug 2011 14:37:31 +0000 (17:37 +0300)]
Win32: use native Win32 functions directly for static mutexes

 * No recursion within the VLC threading functions.
 * No need to care about VLC cancellation.

7 years agoWin32: support vlc_cond_wait() with a static mutex
Rémi Denis-Courmont [Thu, 18 Aug 2011 14:47:16 +0000 (17:47 +0300)]
Win32: support vlc_cond_wait() with a static mutex

7 years agoDefine VLC_STATIC_RWLOCK
Rémi Denis-Courmont [Thu, 18 Aug 2011 14:18:16 +0000 (17:18 +0300)]
Define VLC_STATIC_RWLOCK

7 years agomsg_VaGeneric: simplify error handling
Rémi Denis-Courmont [Thu, 18 Aug 2011 14:29:33 +0000 (17:29 +0300)]
msg_VaGeneric: simplify error handling

7 years agoCreate the C/POSIX locale on need-basis in message subsystem
Rémi Denis-Courmont [Thu, 18 Aug 2011 14:18:22 +0000 (17:18 +0300)]
Create the C/POSIX locale on need-basis in message subsystem

The overhead is negligible, and this avoids depending on the message
bank.

7 years agoRemove unused duplicate vlc_usage
Rémi Denis-Courmont [Thu, 18 Aug 2011 14:07:46 +0000 (17:07 +0300)]
Remove unused duplicate vlc_usage

This saves over 1kb in libvlccore. This object was found with:

 # readelf -a src/.libs/libvlccore.so | grep OBJECT

7 years agoRemove unused NODBG object flag
Rémi Denis-Courmont [Thu, 18 Aug 2011 14:04:15 +0000 (17:04 +0300)]
Remove unused NODBG object flag

7 years agoAvformat demux: don't add empty tracks in AVMEDIA_TYPE_DATA cases
Jean-Baptiste Kempf [Thu, 18 Aug 2011 12:26:39 +0000 (14:26 +0200)]
Avformat demux: don't add empty tracks in AVMEDIA_TYPE_DATA cases

Ref: #5204

7 years agoAvcodec: map teletext IDs
Jean-Baptiste Kempf [Thu, 18 Aug 2011 11:08:26 +0000 (13:08 +0200)]
Avcodec: map teletext IDs

Close #5204

7 years agoFix many ES_OUT_RESET_PCR problems
Denis Charmet [Wed, 17 Aug 2011 10:41:45 +0000 (12:41 +0200)]
Fix many ES_OUT_RESET_PCR problems

As blocks are in coding orders, calling ES_OUT_SET_PCR at each blocks increase to trigger ES_OUT_RESET_PCR.
The reference blocks should be in chronological order though.

Acked-by: robux4
Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
7 years agoFix block dropping at chapter change for non ordered editions
Denis Charmet [Wed, 17 Aug 2011 10:41:44 +0000 (12:41 +0200)]
Fix block dropping at chapter change for non ordered editions

The release of the block only makes sense if the edition is ordered.

Acked-by: robux4
Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
7 years agoFreetype: kill warnings about sign comparison
Jean-Baptiste Kempf [Thu, 18 Aug 2011 10:20:16 +0000 (12:20 +0200)]
Freetype: kill warnings about sign comparison

7 years agoRemoteOSD: Simplify, remove warning and remove headers
Jean-Baptiste Kempf [Thu, 18 Aug 2011 10:16:53 +0000 (12:16 +0200)]
RemoteOSD: Simplify, remove warning and remove headers

7 years agoSkins2: remove unused variable
Jean-Baptiste Kempf [Thu, 18 Aug 2011 10:00:15 +0000 (12:00 +0200)]
Skins2: remove unused variable

7 years agoKeep revision.c in source tarballs
Rémi Denis-Courmont [Wed, 17 Aug 2011 18:59:56 +0000 (21:59 +0300)]
Keep revision.c in source tarballs

7 years agoDecoder for IEC61119 DAT12 (VLC_CODEC_DAT12)
Rémi Denis-Courmont [Wed, 17 Aug 2011 17:22:05 +0000 (20:22 +0300)]
Decoder for IEC61119 DAT12 (VLC_CODEC_DAT12)

This is the 12-bits logarithmic found on digital magnetic tapes,
also known at MIME audio/DAT12 (IETF RFC3190).

7 years agoDecoder for PCM 20-bits (VLC_CODEC_S20B)
Rémi Denis-Courmont [Wed, 17 Aug 2011 16:39:42 +0000 (19:39 +0300)]
Decoder for PCM 20-bits (VLC_CODEC_S20B)

This is also known as MIME audio/L20 (IETF RFC3190)

7 years agoaraw: refactor decoder to support byte-unaligned formats
Rémi Denis-Courmont [Wed, 17 Aug 2011 16:35:18 +0000 (19:35 +0300)]
araw: refactor decoder to support byte-unaligned formats

7 years agoGenerate plugins cache during staged (native) installation
Rémi Denis-Courmont [Wed, 17 Aug 2011 16:25:25 +0000 (19:25 +0300)]
Generate plugins cache during staged (native) installation

7 years agoaudio format: use bswap*()
Rémi Denis-Courmont [Wed, 17 Aug 2011 16:08:54 +0000 (19:08 +0300)]
audio format: use bswap*()

7 years agoImprove byte order inline functions
Rémi Denis-Courmont [Wed, 17 Aug 2011 16:01:17 +0000 (19:01 +0300)]
Improve byte order inline functions

 * Use GCC built-ins for 32-bits and 64-bits byte swap where available.
 * Load/store with single memcpy() instead of many byte operations.
 * Do not use bits operations for the local byte order.
 * Do not use reserved C keywords with leading underscores.

7 years agoIntroduce VLC_NORETURN function attribute and use it
Rémi Denis-Courmont [Wed, 17 Aug 2011 15:42:04 +0000 (18:42 +0300)]
Introduce VLC_NORETURN function attribute and use it

Note that this attribute implies that the function never returns in
any circumstances (it exits, it aborts or it gets cancelled).
Do not use this attribute for function that do not return at the end
but may return from other branches.

7 years agoIntroduce VLC_GCC_VERSION macro, fix popcount and clz
Rémi Denis-Courmont [Wed, 17 Aug 2011 15:28:25 +0000 (18:28 +0300)]
Introduce VLC_GCC_VERSION macro, fix popcount and clz

This can be used as follows:

 #if VLC_GCC_VERSION(major,minor)
 ...
 #endif

There is nothing "VLC" about it. The prefix is only about namespacing.

7 years agoMKV: compilation with EGCS is not supported anymore
Rémi Denis-Courmont [Wed, 17 Aug 2011 15:31:25 +0000 (18:31 +0300)]
MKV: compilation with EGCS is not supported anymore

7 years agomacosx: cut 1 px from the black effects pngs to suit their gray counterparts
Felix Paul Kühne [Wed, 17 Aug 2011 14:54:15 +0000 (16:54 +0200)]
macosx: cut 1 px from the black effects pngs to suit their gray counterparts

7 years agoMosaic: remove unused variable
Jean-Baptiste Kempf [Wed, 17 Aug 2011 13:07:12 +0000 (15:07 +0200)]
Mosaic: remove unused variable

7 years agoauhal: fixed compilation against the 10.7 SDK
Felix Paul Kühne [Wed, 17 Aug 2011 10:50:39 +0000 (12:50 +0200)]
auhal: fixed compilation against the 10.7 SDK

7 years agoAuHal: try to fix compilation on SDK > 10.5
Jean-Baptiste Kempf [Wed, 17 Aug 2011 10:47:12 +0000 (12:47 +0200)]
AuHal: try to fix compilation on SDK > 10.5

7 years agoMacOS: fix compilation
Jean-Baptiste Kempf [Wed, 17 Aug 2011 10:33:40 +0000 (12:33 +0200)]
MacOS: fix compilation

7 years agomacosx: fix compilation with the 10.5 SDK
Felix Paul Kühne [Wed, 17 Aug 2011 10:21:36 +0000 (12:21 +0200)]
macosx: fix compilation with the 10.5 SDK

7 years agoAuhal: simplifications
Jean-Baptiste Kempf [Wed, 17 Aug 2011 10:04:09 +0000 (12:04 +0200)]
Auhal: simplifications

7 years agomacosx: remove the fullscreen button from the main window when running on Lion, since...
Felix Paul Kühne [Tue, 16 Aug 2011 18:28:05 +0000 (20:28 +0200)]
macosx: remove the fullscreen button from the main window when running on Lion, since NSWindowFullScreenButton is present in the window title

7 years agoskins2: remove weird stuff and hopefully fix Win32 build
Rémi Denis-Courmont [Tue, 16 Aug 2011 19:53:07 +0000 (22:53 +0300)]
skins2: remove weird stuff and hopefully fix Win32 build

7 years agoDisable the dangling callback warning for the time being
Rémi Denis-Courmont [Tue, 16 Aug 2011 19:15:27 +0000 (22:15 +0300)]
Disable the dangling callback warning for the time being

It might not always be a bug.

7 years agoRemove vlc_plugin_set from export list
Rémi Denis-Courmont [Tue, 16 Aug 2011 18:03:45 +0000 (21:03 +0300)]
Remove vlc_plugin_set from export list

7 years agoconfigure: remove flawed V4L2 detection logic
Rémi Denis-Courmont [Tue, 16 Aug 2011 18:03:06 +0000 (21:03 +0300)]
configure: remove flawed V4L2 detection logic

7 years agoAuhal: remove unnecessary variables
Jean-Baptiste Kempf [Fri, 12 Aug 2011 16:18:32 +0000 (18:18 +0200)]
Auhal: remove unnecessary variables

7 years agoAuhal: code cosmetics and warning
Jean-Baptiste Kempf [Fri, 12 Aug 2011 16:15:19 +0000 (18:15 +0200)]
Auhal: code cosmetics and warning

7 years agoQt4: retain newlines in config item long text
Rémi Denis-Courmont [Tue, 16 Aug 2011 17:20:21 +0000 (20:20 +0300)]
Qt4: retain newlines in config item long text

7 years agoQt: remove unneeded whitespace that blocks normalized signatures
Jean-Baptiste Kempf [Tue, 16 Aug 2011 16:33:28 +0000 (18:33 +0200)]
Qt: remove unneeded whitespace that blocks normalized signatures

7 years agoALSA: update to new audio output interface
Rémi Denis-Courmont [Wed, 10 Aug 2011 15:14:27 +0000 (18:14 +0300)]
ALSA: update to new audio output interface

 * Buffer push straight from input, no more repacketization.
 * Support for pause/resume.
 * Support for flush (and unused support for drain).
 * Larger buffers if available (as with HDA cards).
 * Reduced periods count to minimum (they are not normally required).

7 years agoDefine HAVE_V4L2 conditional
Rémi Denis-Courmont [Tue, 16 Aug 2011 16:15:57 +0000 (19:15 +0300)]
Define HAVE_V4L2 conditional

There should be more V4L2-based plugins later, e.g. FM RX, FM TX, VOUT.

7 years agoFix OSS input compilation
Rémi Denis-Courmont [Tue, 16 Aug 2011 16:15:46 +0000 (19:15 +0300)]
Fix OSS input compilation

7 years agoMake plugins cache relocatable
Rémi Denis-Courmont [Tue, 16 Aug 2011 14:25:09 +0000 (17:25 +0300)]
Make plugins cache relocatable

The plugins cache now contains plugins file path relative to the base
plugins directory (the directory that contains plugins.dat). The cache
can hence be generated from a different absolute directory than the one
it is later installed to.

For native or emulated native builds, this enables build-time cache
generation.

Note however that the relative paths are different in the build tree
(modules/*/.libs/lib*_plugin.*) and in standard installation
(plugins/*/lib*_plugin.*). The cache cannot be copied from the build
tree to the installation directory.

7 years agoInclude "modules.h" from libvlc-module.c
Rémi Denis-Courmont [Tue, 16 Aug 2011 12:55:02 +0000 (15:55 +0300)]
Include "modules.h" from libvlc-module.c

This ensures that the vlc_entry__main prototype matches.

7 years agoUse callback and opaque pointer for plugin descriptors
Rémi Denis-Courmont [Tue, 16 Aug 2011 12:54:31 +0000 (15:54 +0300)]
Use callback and opaque pointer for plugin descriptors

This is more flexible and extensible.

7 years agoSplit modules bank stuff from module (non-bank) stuff
Rémi Denis-Courmont [Tue, 16 Aug 2011 11:06:01 +0000 (14:06 +0300)]
Split modules bank stuff from module (non-bank) stuff

7 years agoSmall code factorization
Rémi Denis-Courmont [Tue, 16 Aug 2011 10:40:31 +0000 (13:40 +0300)]
Small code factorization

7 years agoInline DeleteModule() and simplify
Rémi Denis-Courmont [Tue, 16 Aug 2011 10:33:13 +0000 (13:33 +0300)]
Inline DeleteModule() and simplify

7 years agoUse vlc_module_destroy() instead of DeleteModule() where possible
Rémi Denis-Courmont [Tue, 16 Aug 2011 10:28:37 +0000 (13:28 +0300)]
Use vlc_module_destroy() instead of DeleteModule() where possible

This avoids going through the linked list of modules. This is fine so
long as the module structure is indeed not in the list.

7 years agoClean up config_Free()
Rémi Denis-Courmont [Tue, 16 Aug 2011 08:44:58 +0000 (11:44 +0300)]
Clean up config_Free()

7 years agoCreate primary module from plug-in descriptor and factor code
Rémi Denis-Courmont [Tue, 16 Aug 2011 07:28:36 +0000 (10:28 +0300)]
Create primary module from plug-in descriptor and factor code

This should ease later implementation of proper error handling.

7 years agoDestroy submodules from vlc_module_destroy()
Rémi Denis-Courmont [Tue, 16 Aug 2011 07:56:32 +0000 (10:56 +0300)]
Destroy submodules from vlc_module_destroy()

Again, this should help fix leaks in error paths.

7 years agoCorrect module descriptor indentation (no functional changes)
Rémi Denis-Courmont [Tue, 16 Aug 2011 06:55:30 +0000 (09:55 +0300)]
Correct module descriptor indentation (no functional changes)

7 years agoRemove never defined HAVE_DL_DYLD and HAVE_IMAGE_H cases
Rémi Denis-Courmont [Tue, 16 Aug 2011 11:27:54 +0000 (14:27 +0300)]
Remove never defined HAVE_DL_DYLD and HAVE_IMAGE_H cases

7 years agoRemove unused HAVE_DL_WINDOWS
Rémi Denis-Courmont [Tue, 16 Aug 2011 11:25:00 +0000 (14:25 +0300)]
Remove unused HAVE_DL_WINDOWS

7 years agoRC: fix parse_MRL prototype: unused parameter and const
Rémi Denis-Courmont [Tue, 16 Aug 2011 06:55:03 +0000 (09:55 +0300)]
RC: fix parse_MRL prototype: unused parameter and const

7 years agoRC: unused variable
Rémi Denis-Courmont [Tue, 16 Aug 2011 06:54:51 +0000 (09:54 +0300)]
RC: unused variable

7 years agovout_macosx: compilation fix for 10.6 and earlier
Felix Paul Kühne [Tue, 16 Aug 2011 16:09:51 +0000 (18:09 +0200)]
vout_macosx: compilation fix for 10.6 and earlier

7 years agoQt: use qDeleteAll on VLM dialog
Jean-Baptiste Kempf [Tue, 16 Aug 2011 16:06:16 +0000 (18:06 +0200)]
Qt: use qDeleteAll on VLM dialog

7 years agoQt: use QWidgetList when applicable
Jean-Baptiste Kempf [Tue, 16 Aug 2011 16:06:04 +0000 (18:06 +0200)]
Qt: use QWidgetList when applicable

7 years agomacosx: moved compatiblity fixes to a designated header
Felix Paul Kühne [Tue, 16 Aug 2011 16:03:51 +0000 (18:03 +0200)]
macosx: moved compatiblity fixes to a designated header

7 years agoQt: use QString iso std::string
Jean-Baptiste Kempf [Tue, 16 Aug 2011 15:31:28 +0000 (17:31 +0200)]
Qt: use QString iso std::string

7 years agoQt: use __MIN when applicable
Jean-Baptiste Kempf [Tue, 16 Aug 2011 15:23:15 +0000 (17:23 +0200)]
Qt: use __MIN when applicable

7 years agoQt: remove unnecessary header
Jean-Baptiste Kempf [Tue, 16 Aug 2011 15:23:06 +0000 (17:23 +0200)]
Qt: remove unnecessary header

7 years agoQt: use const_iterator when possible
Jean-Baptiste Kempf [Tue, 16 Aug 2011 15:15:29 +0000 (17:15 +0200)]
Qt: use const_iterator when possible

7 years agoQt: Use append iso push_*
Jean-Baptiste Kempf [Tue, 16 Aug 2011 15:11:37 +0000 (17:11 +0200)]
Qt: Use append iso push_*

7 years agoQt: use isEmpty() iso empty()
Jean-Baptiste Kempf [Tue, 16 Aug 2011 15:07:18 +0000 (17:07 +0200)]
Qt: use isEmpty() iso empty()

7 years agoQt: use count() iso size() on Qt Containers
Jean-Baptiste Kempf [Tue, 16 Aug 2011 15:05:02 +0000 (17:05 +0200)]
Qt: use count() iso size() on Qt Containers

7 years agoQt, menus: std::vector -> QVector
Jean-Baptiste Kempf [Tue, 16 Aug 2011 12:00:54 +0000 (14:00 +0200)]
Qt, menus: std::vector -> QVector

7 years agomacosx: don't let the vout resize the window if we are in Lion's fullscreen mode
Felix Paul Kühne [Tue, 16 Aug 2011 12:31:03 +0000 (14:31 +0200)]
macosx: don't let the vout resize the window if we are in Lion's fullscreen mode

7 years agomacosx: added native fullscreen support for OS X Lion
Felix Paul Kühne [Tue, 16 Aug 2011 12:09:30 +0000 (14:09 +0200)]
macosx: added native fullscreen support for OS X Lion

7 years agomacosx: use an updated API to set the behavior of menu bar and Dock in fullscreen...
Felix Paul Kühne [Tue, 16 Aug 2011 09:10:18 +0000 (11:10 +0200)]
macosx: use an updated API to set the behavior of menu bar and Dock in fullscreen mode on 10.6&later

this allows the user to access the Dock while in fullscreen mode in contrast to the previous implementation. behavior on 10.5 did not change.

7 years agoaout: fix crash if output restart fails
Rémi Denis-Courmont [Mon, 15 Aug 2011 21:05:38 +0000 (00:05 +0300)]
aout: fix crash if output restart fails

7 years agoaout: fix crash if input restart fails
Rémi Denis-Courmont [Mon, 15 Aug 2011 21:04:45 +0000 (00:04 +0300)]
aout: fix crash if input restart fails

7 years agoRemove module_t.b_builtin
Rémi Denis-Courmont [Mon, 15 Aug 2011 19:26:00 +0000 (22:26 +0300)]
Remove module_t.b_builtin

7 years agoRemove unused module bank parameters
Rémi Denis-Courmont [Mon, 15 Aug 2011 19:16:51 +0000 (22:16 +0300)]
Remove unused module bank parameters

7 years agoClean up registration of statically linked modules
Rémi Denis-Courmont [Mon, 15 Aug 2011 19:15:48 +0000 (22:15 +0300)]
Clean up registration of statically linked modules

7 years agoCopy strings from plugin descriptor, remove (D|Und)upModules()
Rémi Denis-Courmont [Mon, 15 Aug 2011 17:11:28 +0000 (20:11 +0300)]
Copy strings from plugin descriptor, remove (D|Und)upModules()

7 years agoRemove module_hold and module_release
Rémi Denis-Courmont [Mon, 15 Aug 2011 16:35:51 +0000 (19:35 +0300)]
Remove module_hold and module_release

Modules are created at initialization and destroyed at exit (after all
VLC threads are terminated) There is no need to count references.

7 years agoTypo
Rémi Denis-Courmont [Mon, 15 Aug 2011 16:28:30 +0000 (19:28 +0300)]
Typo

7 years agovlc_module_(start|stop): constify
Rémi Denis-Courmont [Mon, 15 Aug 2011 16:05:18 +0000 (19:05 +0300)]
vlc_module_(start|stop): constify

7 years agoDo not save unloadable flag for submodule
Rémi Denis-Courmont [Mon, 15 Aug 2011 16:53:01 +0000 (19:53 +0300)]
Do not save unloadable flag for submodule

This property is fundamentally per-plugin, not per-submodule.

7 years agoAlways use (get)text domain from primary module
Rémi Denis-Courmont [Mon, 15 Aug 2011 16:36:00 +0000 (19:36 +0300)]
Always use (get)text domain from primary module

7 years agoDo not store help for submodules in cache
Rémi Denis-Courmont [Mon, 15 Aug 2011 16:23:32 +0000 (19:23 +0300)]
Do not store help for submodules in cache

This field is never used for submodules, and in fact there would be no
way to show it in the (current) UI.

7 years agofile: show directory config items in a separate section
Rémi Denis-Courmont [Mon, 15 Aug 2011 16:17:39 +0000 (19:17 +0300)]
file: show directory config items in a separate section

7 years agoInitialize submodule explicitly
Rémi Denis-Courmont [Mon, 15 Aug 2011 16:15:59 +0000 (19:15 +0300)]
Initialize submodule explicitly

7 years agoRemove module_t.psz_object_name
Rémi Denis-Courmont [Mon, 15 Aug 2011 16:11:00 +0000 (19:11 +0300)]
Remove module_t.psz_object_name

This is the same as module_t.pp_shortcuts[0].

7 years agoUse module_get_object() where appropriate and improve error handling
Rémi Denis-Courmont [Mon, 15 Aug 2011 16:03:16 +0000 (19:03 +0300)]
Use module_get_object() where appropriate and improve error handling

Use NULL rather than a static string as the default.
module_get_object() deals with this situation.

7 years agoAllow NULL module capability
Rémi Denis-Courmont [Mon, 15 Aug 2011 15:57:31 +0000 (18:57 +0300)]
Allow NULL module capability

The module will never be proved. This applies to the "main" module
and the playlist demux (which only has submodules).

7 years agocompilation fix
Felix Paul Kühne [Mon, 15 Aug 2011 00:18:55 +0000 (02:18 +0200)]
compilation fix

7 years agomacosx: saved various objc selector dispatches when iterating, additionally fixes...
Felix Paul Kühne [Mon, 15 Aug 2011 00:11:56 +0000 (02:11 +0200)]
macosx: saved various objc selector dispatches when iterating, additionally fixes #5113

7 years agomacosx: fixed crash when opening multiple files using the simple open dialog
Felix Paul Kühne [Sun, 14 Aug 2011 23:37:42 +0000 (01:37 +0200)]
macosx: fixed crash when opening multiple files using the simple open dialog

7 years agomacosx: make sure that the left end of the black progression bar is round
Felix Paul Kühne [Sun, 14 Aug 2011 22:34:21 +0000 (00:34 +0200)]
macosx: make sure that the left end of the black progression bar is round

7 years agomacosx: fixed some ui bugs, which sneaked in recently
Felix Paul Kühne [Sun, 14 Aug 2011 22:20:29 +0000 (00:20 +0200)]
macosx: fixed some ui bugs, which sneaked in recently

7 years agomacosx: re-implemented a non-embedded video window
Felix Paul Kühne [Sun, 14 Aug 2011 18:08:04 +0000 (20:08 +0200)]
macosx: re-implemented a non-embedded video window

7 years agomacosx: simplified the way we set the window's title
Felix Paul Kühne [Sun, 14 Aug 2011 15:29:10 +0000 (17:29 +0200)]
macosx: simplified the way we set the window's title

7 years agomacosx: fixed spu announcements for playback controls
Felix Paul Kühne [Sun, 14 Aug 2011 14:48:42 +0000 (16:48 +0200)]
macosx: fixed spu announcements for playback controls