Francois Cartegnie [Wed, 21 Jun 2017 16:18:27 +0000 (18:18 +0200)]
vlc_arrays: add vlc_dictionary_is_empty
avoids walking every key/entry
Francois Cartegnie [Thu, 22 Jun 2017 08:23:39 +0000 (10:23 +0200)]
input: decoder: hide missing codec dialog for sout
because sout enables every es
Victorien Le Couviour--Tuffet [Thu, 22 Jun 2017 07:24:38 +0000 (09:24 +0200)]
adjust: don't create variables if invalid chroma
Signed-off-by: Thomas Guillem <thomas@gllm.fr>
Steve Lhomme [Wed, 21 Jun 2017 13:05:30 +0000 (15:05 +0200)]
core: add aligned_free to match the aligned_alloc used in the code
On Windows if you allocate aligned memory you need to free it with an aligned
version of free.
This is similar to the old vlc_memalign() + vlc_free()
Signed-off-by: Thomas Guillem <thomas@gllm.fr>
Victorien Le Couviour--Tuffet [Wed, 21 Jun 2017 14:12:00 +0000 (16:12 +0200)]
variables: correct minimum float value
FLT_MIN is the minimum normalized positive floating-point value not the minimum
negative value a float can contain. This is very different. This fixes the
issue with the adjust's hue variable, which has a range of [-180;180]. When the
variable was set lower than 0, it was clipped back to zero.
Signed-off-by: Thomas Guillem <thomas@gllm.fr>
Francois Cartegnie [Tue, 20 Jun 2017 13:26:12 +0000 (15:26 +0200)]
demux: ts: add support for ARIB channels logos
Francois Cartegnie [Wed, 21 Jun 2017 16:20:57 +0000 (18:20 +0200)]
demux: ts: add support for attachments
Francois Cartegnie [Wed, 21 Jun 2017 15:16:45 +0000 (17:16 +0200)]
demux: ts: fix default decoder sections assembling
dvbpsi bug of course
Francois Cartegnie [Wed, 21 Jun 2017 10:29:35 +0000 (12:29 +0200)]
input: es_out: fix program meta override on GET_META
On GET_META update, program meta was ignored.
(no possible attachment for programs)
Francois Cartegnie [Wed, 21 Jun 2017 10:28:29 +0000 (12:28 +0200)]
input: decoder: fix erroneous codec failure errors
Francois Cartegnie [Wed, 21 Jun 2017 17:27:18 +0000 (19:27 +0200)]
demux: ts: psip: parse every section on callback
Francois Cartegnie [Tue, 20 Jun 2017 13:43:51 +0000 (15:43 +0200)]
demux: ts: refactor SDT decoder setup
Francois Cartegnie [Tue, 20 Jun 2017 09:13:30 +0000 (11:13 +0200)]
demux: ts: convert metadata handler to stream processor
Francois Cartegnie [Tue, 20 Jun 2017 09:00:32 +0000 (11:00 +0200)]
demux: ts: convert mpeg4-sl handler to stream processor
Francois Cartegnie [Tue, 20 Jun 2017 08:22:46 +0000 (10:22 +0200)]
demux: ts: add stream_processor
Francois Cartegnie [Mon, 19 Jun 2017 16:03:30 +0000 (18:03 +0200)]
demux: ts: rename pes structs as stream
Francois Cartegnie [Mon, 19 Jun 2017 15:56:39 +0000 (17:56 +0200)]
mux: ts: prefix structs with mux
Francois Cartegnie [Mon, 19 Jun 2017 14:35:50 +0000 (16:35 +0200)]
demux: ts: split SL specific code
Francois Cartegnie [Mon, 19 Jun 2017 14:34:49 +0000 (16:34 +0200)]
demux: ts: move all packet conversions in same place
Francois Cartegnie [Mon, 19 Jun 2017 13:20:57 +0000 (15:20 +0200)]
demux: ts: split sending block/fanout
Rémi Denis-Courmont [Wed, 21 Jun 2017 18:12:07 +0000 (21:12 +0300)]
input: fix iconv handle leak
This occurred if a UTF-16 text stream was rewound to the beginning and
read again.
Rémi Denis-Courmont [Wed, 21 Jun 2017 18:08:56 +0000 (21:08 +0300)]
input: handle error in stream_ReadLine()
Rémi Denis-Courmont [Wed, 21 Jun 2017 18:03:05 +0000 (21:03 +0300)]
vlc_iconv: avoid invalid casts
Rémi Denis-Courmont [Wed, 21 Jun 2017 17:55:13 +0000 (20:55 +0300)]
iso6937: avoid invalid cast
Hugo Beauzée-Luyssen [Wed, 21 Jun 2017 12:59:32 +0000 (14:59 +0200)]
chromecast: Fix potential deletion of uninitialized value
Hugo Beauzée-Luyssen [Wed, 21 Jun 2017 12:06:51 +0000 (14:06 +0200)]
resource: Don't call DestroySout with a NULL sout_instance_t
Doing so would be a no-op
Thomas Guillem [Wed, 21 Jun 2017 12:44:44 +0000 (14:44 +0200)]
gl: vaapi: fix clean-up in case of error
Thomas Guillem [Wed, 21 Jun 2017 08:18:43 +0000 (10:18 +0200)]
gl: vaapi: fix the ugly way to get the X11 Display
Thomas Guillem [Wed, 21 Jun 2017 07:40:56 +0000 (09:40 +0200)]
hw: vaapi: fix linking
Marvin Scholz [Tue, 20 Jun 2017 22:40:01 +0000 (00:40 +0200)]
macOS: Minor code style adjustments for VLCHUD classes
Marvin Scholz [Tue, 20 Jun 2017 22:25:29 +0000 (00:25 +0200)]
macOS: Correct target to 10.7 for AudioEffects xib
Marvin Scholz [Tue, 20 Jun 2017 22:25:00 +0000 (00:25 +0200)]
macOS: Use more of the custom HUD classes
This commit makes the Audio and Video effect panels make more use of the
VLCHUD classes for checkboxes and label.
Marvin Scholz [Tue, 20 Jun 2017 22:23:20 +0000 (00:23 +0200)]
macOS: Draw focus ring for VLCHUDRadiobuttonCell
Marvin Scholz [Tue, 20 Jun 2017 22:23:01 +0000 (00:23 +0200)]
macOS: Draw focus ring for VLCHUDSegmentedCell
Marvin Scholz [Tue, 20 Jun 2017 22:22:21 +0000 (00:22 +0200)]
macOS: Adjust stroke color of VLCHUDTextFieldCell
Marvin Scholz [Tue, 20 Jun 2017 22:21:49 +0000 (00:21 +0200)]
macOS: Simplify copying of VLCHUDRadiobuttonCell title
Marvin Scholz [Tue, 20 Jun 2017 22:20:40 +0000 (00:20 +0200)]
macOS: Draw focus ring for VLCHUDCheckboxCell
Marvin Scholz [Tue, 20 Jun 2017 22:18:12 +0000 (00:18 +0200)]
macOS: Correct colors of VLCHUDCheckboxCell
Marvin Scholz [Tue, 20 Jun 2017 22:16:21 +0000 (00:16 +0200)]
macOS: Change license of some VLCHUD classes
Changing license to the BGHUDAppKit license to be able to use
code from BGHUDAppKit easily.
Marvin Scholz [Tue, 20 Jun 2017 15:32:32 +0000 (17:32 +0200)]
macOS: Remove unused variable
Tristan Matthews [Tue, 20 Jun 2017 19:56:24 +0000 (15:56 -0400)]
contrib: opus: update to 1.2
Rémi Denis-Courmont [Tue, 20 Jun 2017 16:24:57 +0000 (19:24 +0300)]
vdpau: fix potential double free
Thomas Guillem [Tue, 20 Jun 2017 14:19:46 +0000 (16:19 +0200)]
pulse: remove leftovers of PCM fallbacks
We try to load only one format since
a76fd9382cc946b33f03fabd5e4be6d215fe8517
Thomas Guillem [Tue, 20 Jun 2017 11:40:10 +0000 (13:40 +0200)]
aout: remove extra non linear conversion
The non linear conversion is now done from aout_FiltersNew(), before this
function is called.
Thomas Guillem [Tue, 20 Jun 2017 11:39:11 +0000 (13:39 +0200)]
aout: fix comment place
Hugo Beauzée-Luyssen [Tue, 20 Jun 2017 09:29:16 +0000 (11:29 +0200)]
avformat: mux: Fix GetFfmpegCodec parameters
Thomas Guillem [Tue, 20 Jun 2017 10:13:20 +0000 (12:13 +0200)]
avcodec: fix wrong vlc_va_Delete argument
Regression from
41f17efeb747e767bc4fd36e5b0ac2c7a77ab755
This led to a crash with vdpau when va context could not be re-used.
Jean-Baptiste Kempf [Tue, 20 Jun 2017 08:03:07 +0000 (10:03 +0200)]
POSIX specific: fix compilation without DBus
Rémi Denis-Courmont [Mon, 19 Jun 2017 21:02:30 +0000 (00:02 +0300)]
win32: fix build
Tristan Matthews [Mon, 19 Jun 2017 20:27:49 +0000 (16:27 -0400)]
access: bluray: fix build
Regression from
740dd861a4b2e5780e48720af50935aa57a677b7
Rémi Denis-Courmont [Mon, 19 Jun 2017 20:01:18 +0000 (23:01 +0300)]
Win32: fix mismatched alloc/free
Rémi Denis-Courmont [Mon, 19 Jun 2017 20:01:10 +0000 (23:01 +0300)]
evas: use aligned_alloc() directly
Rémi Denis-Courmont [Sat, 17 Jun 2017 19:31:20 +0000 (22:31 +0300)]
access: allocate p_sys vlc_malloc/vlc_calloc
Rémi Denis-Courmont [Wed, 14 Jun 2017 17:17:24 +0000 (20:17 +0300)]
objres: add simple memory allocation
Rémi Denis-Courmont [Wed, 14 Jun 2017 16:49:22 +0000 (19:49 +0300)]
objres: introduce object resources tracking
This very simplistic system (inspired by Linux kernel "devres") tracks a
list of allocated resources. It is intended to automatically release
resources allocated by a module instance when either activation fails,
or upon deactivation. That is meant to simplify error and cleanup code
paths.
Rémi Denis-Courmont [Wed, 14 Jun 2017 17:00:50 +0000 (20:00 +0300)]
module: pass VLC object to vlc_module_unload()
Rémi Denis-Courmont [Mon, 19 Jun 2017 19:39:47 +0000 (22:39 +0300)]
Remove vlc_free()
free() is required by ISO C (hosted) and C++ anyway.
Rémi Denis-Courmont [Mon, 19 Jun 2017 18:08:15 +0000 (21:08 +0300)]
rootwrap: use fputs() where applicable
Rémi Denis-Courmont [Mon, 19 Jun 2017 17:50:34 +0000 (20:50 +0300)]
decoder: use "spu decoder" capability for SPU decoders
Rémi Denis-Courmont [Mon, 19 Jun 2017 17:50:34 +0000 (20:50 +0300)]
decoder: use "video decoder" capability for video decoders
Rémi Denis-Courmont [Mon, 19 Jun 2017 17:40:18 +0000 (20:40 +0300)]
decoder: use "audio decoder" capability for audio decoders
This avoids probing video or SPU decoders for audio format and vice-
versa.
Rémi Denis-Courmont [Mon, 19 Jun 2017 17:22:53 +0000 (20:22 +0300)]
input: make provision for different codec capability types
Rémi Denis-Courmont [Mon, 19 Jun 2017 17:16:13 +0000 (20:16 +0300)]
avcodec: split decoder in submodules per ES type
Rémi Denis-Courmont [Mon, 19 Jun 2017 17:09:53 +0000 (20:09 +0300)]
avcodec: revector, no functional changes
Rémi Denis-Courmont [Mon, 19 Jun 2017 16:55:20 +0000 (19:55 +0300)]
avcodec: revector, no functional changes
Rémi Denis-Courmont [Mon, 19 Jun 2017 16:03:43 +0000 (19:03 +0300)]
avcodec: remove AVCODEC_COMMON_MEMBERS
Rémi Denis-Courmont [Mon, 19 Jun 2017 15:41:57 +0000 (18:41 +0300)]
avcodec: pass explicit parameters to ffmpeg_OpenCodec()
This avoids relying on p_sys.
Rémi Denis-Courmont [Mon, 19 Jun 2017 16:46:04 +0000 (19:46 +0300)]
avcodec: remove ffmpeg_CloseCodec()
avcodec_free_context() already takes care to close the context if it was
opened.
Rémi Denis-Courmont [Mon, 19 Jun 2017 16:36:40 +0000 (19:36 +0300)]
avcodec: expand context deletion code
Rémi Denis-Courmont [Mon, 19 Jun 2017 15:41:07 +0000 (18:41 +0300)]
avcodec: use intermediate variables
No functional changes.
Rémi Denis-Courmont [Mon, 19 Jun 2017 15:32:06 +0000 (18:32 +0300)]
avcodec: use avcodec_is_open() instead of custom flag
Rémi Denis-Courmont [Mon, 19 Jun 2017 16:33:38 +0000 (19:33 +0300)]
va: pass hwaccel_context rather than AVCodecContext
(Eventually, we should remove this extra parameter altogether.)
Rémi Denis-Courmont [Mon, 19 Jun 2017 15:45:23 +0000 (18:45 +0300)]
avcodec: add explicit subtitle close function
Rémi Denis-Courmont [Mon, 19 Jun 2017 15:17:25 +0000 (18:17 +0300)]
avcodec: use var_InheritString()
Rémi Denis-Courmont [Mon, 19 Jun 2017 15:05:04 +0000 (18:05 +0300)]
aligned_alloc: remove redundant preprocessor predicate
Thomas Guillem [Mon, 19 Jun 2017 14:59:09 +0000 (16:59 +0200)]
access: bluray: check for input before accessing it
Thomas Guillem [Mon, 19 Jun 2017 13:36:14 +0000 (15:36 +0200)]
vout: clean filters callback in case of failure
Marvin Scholz [Sat, 17 Jun 2017 15:05:13 +0000 (17:05 +0200)]
freetype: Simplify path check
Marvin Scholz [Sat, 17 Jun 2017 15:04:17 +0000 (17:04 +0200)]
freetype: Prevent creating font with NULL path
Marvin Scholz [Sat, 17 Jun 2017 14:57:34 +0000 (16:57 +0200)]
freetype: Fix copying char buffer of CStringRef on darwin
To convert a CStringRef to a char buffer, CFStringGetCStringPtr was
used, but the documentation states this can fail in some
circumstances and it does fail on 10.7 for example.
This commit fixes this by adding a helper function, which falls back to
CFStringGetCString, as suggested in the CFStringGetCStringPtr docs.
Thomas Guillem [Mon, 19 Jun 2017 09:01:58 +0000 (11:01 +0200)]
hw: vaapi: chroma: fix uninitialized var usage
Hugo Beauzée-Luyssen [Mon, 19 Jun 2017 08:55:47 +0000 (10:55 +0200)]
magnify: Remove trailing whitespace
Hugo Beauzée-Luyssen [Mon, 19 Jun 2017 08:55:37 +0000 (10:55 +0200)]
magnify: Don't display frame margin when zooming
Francois Cartegnie [Mon, 19 Jun 2017 07:49:07 +0000 (09:49 +0200)]
input: meta: reload attachment if failed from cache
refs #18057
Hugo Beauzée-Luyssen [Fri, 16 Jun 2017 16:07:04 +0000 (18:07 +0200)]
addons: Fix leak
refs #18321
Hugo Beauzée-Luyssen [Fri, 16 Jun 2017 16:06:19 +0000 (18:06 +0200)]
addons: vorepository: Fix bad free
refs #18321
Hugo Beauzée-Luyssen [Fri, 16 Jun 2017 16:05:55 +0000 (18:05 +0200)]
addons: vorepository: Fix leak when parsing manifest
refs #18321
Hugo Beauzée-Luyssen [Fri, 16 Jun 2017 16:05:32 +0000 (18:05 +0200)]
addons: fsstorage: Fix leak whe nlisting installed addons
refs #18321
Hugo Beauzée-Luyssen [Fri, 16 Jun 2017 14:01:42 +0000 (16:01 +0200)]
addons: Remove unrequired forward declaration
refs #18321
David Fuhrmann [Fri, 16 Jun 2017 13:40:26 +0000 (15:40 +0200)]
macosx: Store subtitle settings from main menu in playlist scope
With main menu, the user shall only be able to modify settings
for the currently running VLC instance. All changes shall be
applied equally for all videos, therefore the variables are
created on playlist scope.
This avoid saving those changed to config, but still have them
valid for the overall VLC lifetime.
refs #16185
David Fuhrmann [Fri, 16 Jun 2017 13:24:11 +0000 (15:24 +0200)]
macosx: Set sub-text-scale variable on playlist level
This makes sure it outlives vout instances and is valid for the
whole playlist session.
refs #16185
David Fuhrmann [Fri, 16 Jun 2017 13:22:57 +0000 (15:22 +0200)]
hotkeys: Set sub-text-scale variable on playlist level
This makes sure it outlives vout instances and is valid for the
whole playlist session.
hotkeys: Set sub-text-scale variable on playlist level
This makes sure it outlives vout instances and is valid for the
whole playlist session.
David Fuhrmann [Fri, 16 Jun 2017 13:20:01 +0000 (15:20 +0200)]
src: Move sub-text-scale variable to playlist scope
This variable describes the general scale factor for sub texts,
which is typically set if the user percieves subtitles as too
small or too large in general.
Therefore it should be valid for the overall lifetime of a
VLC instance and not only valid for a single vout instance.
David Fuhrmann [Fri, 16 Jun 2017 11:54:57 +0000 (13:54 +0200)]
macosx: Reenable subtitles menu, use "sub-text-scale" for size
Use "sub-text-scale" to switch between different text sizes.
This replaces the "freetype-rel-fontsize" config which was used
before.
refs #16185
Francois Cartegnie [Sun, 18 Jun 2017 17:39:40 +0000 (19:39 +0200)]
demux: ogg: remove no op
Francois Cartegnie [Sun, 18 Jun 2017 17:39:00 +0000 (19:39 +0200)]
demux: ogg: fix glitches on chained content
refs #18401
refs http://ai-radio.org/128.ogg
Rémi Denis-Courmont [Sun, 18 Jun 2017 15:36:11 +0000 (18:36 +0300)]
dbus: start interface before hand-off (fixes #3369)
This ensures that one instance gets the bus name before any instance
checks if the bus name is held. This fixes a race condition going all
the way back to the original VLC D-Bus interface implementation:
if multiple files are opened at the same time while no instance exists,
the new instances check the bus name for an owner before any of them
has had time to actually request and obtain the bus name. Then each
instance assumed it was the single one.
Note that there is still a race if the user closes the main instance
while trying to open files. Thits is an instrinsic user interface race,
and is unfixable.
Rémi Denis-Courmont [Sun, 18 Jun 2017 15:34:56 +0000 (18:34 +0300)]
dbus: fix naming of multiple instances
The do-not-queue flag is necessary to ensure that the bus name is
obtained immediately or not at all. Without it, each VLC instances gets
put into the queue for the same name.
Also, failure must be checked from the return value of the function,
not (typically) the low-level error flag.
Rémi Denis-Courmont [Sun, 18 Jun 2017 14:47:37 +0000 (17:47 +0300)]
dbus: add variable to expose register bus name
Rémi Denis-Courmont [Sun, 18 Jun 2017 14:50:23 +0000 (17:50 +0300)]
dbus: add command line option to disable MPRIS