vlc.git
4 years agoaccess: merge stream_access.c and access.c
Rémi Denis-Courmont [Tue, 25 Aug 2015 18:09:38 +0000 (21:09 +0300)]
access: merge stream_access.c and access.c

4 years agostream: merge stream_CommonDelete() and stream_Delete()
Rémi Denis-Courmont [Sun, 26 Jul 2015 08:55:25 +0000 (11:55 +0300)]
stream: merge stream_CommonDelete() and stream_Delete()

4 years agostream: create access in stream_AccessNew()
Rémi Denis-Courmont [Sun, 26 Jul 2015 13:36:35 +0000 (16:36 +0300)]
stream: create access in stream_AccessNew()

This simplifies the code a little, and removes the need for the
stream_CommonDelete() hack due to inverted stream/access parentage.

4 years agostream: remove caching from stream_access
Rémi Denis-Courmont [Thu, 23 Jul 2015 21:39:32 +0000 (00:39 +0300)]
stream: remove caching from stream_access

4 years agocache_block: rewrite "method 1" stream_access as stream filter
Rémi Denis-Courmont [Thu, 23 Jul 2015 20:25:19 +0000 (23:25 +0300)]
cache_block: rewrite "method 1" stream_access as stream filter

4 years agostream: add STREAM_GET_PRIVATE_BLOCK for block-based buffering
Rémi Denis-Courmont [Tue, 28 Jul 2015 15:37:32 +0000 (18:37 +0300)]
stream: add STREAM_GET_PRIVATE_BLOCK for block-based buffering

4 years agocache_read: "method 2" stream_access rewritten as a stream filter
Rémi Denis-Courmont [Thu, 23 Jul 2015 20:04:58 +0000 (23:04 +0300)]
cache_read: "method 2" stream_access rewritten as a stream filter

4 years agostream_filter: revector, use strtok_r()
Rémi Denis-Courmont [Tue, 25 Aug 2015 17:51:47 +0000 (20:51 +0300)]
stream_filter: revector, use strtok_r()

4 years agostream_filter: separate hard-coded "record" stream filter insertion
Rémi Denis-Courmont [Tue, 25 Aug 2015 17:46:33 +0000 (20:46 +0300)]
stream_filter: separate hard-coded "record" stream filter insertion

4 years agostream_filter: split out code for automatic filter probing
Rémi Denis-Courmont [Tue, 25 Aug 2015 17:24:51 +0000 (20:24 +0300)]
stream_filter: split out code for automatic filter probing

4 years agostream_filter: improve parenting
Rémi Denis-Courmont [Tue, 25 Aug 2015 17:23:47 +0000 (20:23 +0300)]
stream_filter: improve parenting

Attach to the source stream´s parent rather than the source stream.
This avoids recursive vlc_object_release() when deleting the chain.

4 years agostream_access: simplify pf_read()
Rémi Denis-Courmont [Mon, 24 Aug 2015 19:43:08 +0000 (22:43 +0300)]
stream_access: simplify pf_read()

4 years agohds: simplify pf_read()
Rémi Denis-Courmont [Mon, 24 Aug 2015 19:30:53 +0000 (22:30 +0300)]
hds: simplify pf_read()

4 years agostream_demux: simplify pf_read()
Rémi Denis-Courmont [Mon, 24 Aug 2015 19:25:53 +0000 (22:25 +0300)]
stream_demux: simplify pf_read()

4 years agostream: common implementation of stream_Read() loop
Rémi Denis-Courmont [Mon, 24 Aug 2015 19:18:28 +0000 (22:18 +0300)]
stream: common implementation of stream_Read() loop

4 years agovlc_fs: Fix win32 compilation
Jean-Baptiste Kempf [Mon, 24 Aug 2015 21:23:13 +0000 (23:23 +0200)]
vlc_fs: Fix win32 compilation

4 years agodemux: hls: fix single tag parsing (fix #15137)
Francois Cartegnie [Mon, 24 Aug 2015 21:15:54 +0000 (23:15 +0200)]
demux: hls: fix single tag parsing (fix #15137)

4 years agofreetype: add shadow to default style
Francois Cartegnie [Mon, 24 Aug 2015 20:43:19 +0000 (22:43 +0200)]
freetype: add shadow to default style

4 years agofreetype: only render visible glyphs
Francois Cartegnie [Mon, 24 Aug 2015 20:32:26 +0000 (22:32 +0200)]
freetype: only render visible glyphs

4 years agofreetype: simplify live style handling
Francois Cartegnie [Mon, 24 Aug 2015 20:31:54 +0000 (22:31 +0200)]
freetype: simplify live style handling

4 years agofreetype: enable outliner at all times
Francois Cartegnie [Mon, 24 Aug 2015 10:02:37 +0000 (12:02 +0200)]
freetype: enable outliner at all times

4 years agofreetype: change background rendering
Francois Cartegnie [Mon, 24 Aug 2015 09:19:28 +0000 (11:19 +0200)]
freetype: change background rendering

background style was never applied when set to non text mode.

4 years agosubpicture: rename confusing option
Francois Cartegnie [Mon, 24 Aug 2015 09:11:28 +0000 (11:11 +0200)]
subpicture: rename confusing option

background is always rendered on region depending on renderer

4 years agofreetype: do not render transparent overlayed content
Francois Cartegnie [Sun, 23 Aug 2015 21:56:20 +0000 (23:56 +0200)]
freetype: do not render transparent overlayed content

4 years agotext_style: fix alpha values
Francois Cartegnie [Sun, 23 Aug 2015 21:50:52 +0000 (23:50 +0200)]
text_style: fix alpha values

4 years agofreetype: directly refer to style from char
Francois Cartegnie [Sun, 23 Aug 2015 19:06:59 +0000 (21:06 +0200)]
freetype: directly refer to style from char

4 years agofreetype: really apply char background
Francois Cartegnie [Sun, 23 Aug 2015 18:31:37 +0000 (20:31 +0200)]
freetype: really apply char background

4 years agotext_style: update defaults
Francois Cartegnie [Sun, 23 Aug 2015 18:27:32 +0000 (20:27 +0200)]
text_style: update defaults

4 years agodemux: adaptative: fix appending absolute path
Francois Cartegnie [Fri, 21 Aug 2015 00:22:19 +0000 (02:22 +0200)]
demux: adaptative: fix appending absolute path

4 years agostream: fix corner-case memory leak
Rémi Denis-Courmont [Mon, 24 Aug 2015 19:13:05 +0000 (22:13 +0300)]
stream: fix corner-case memory leak

4 years agofilesystem: use native mkstemp() on POSIX
Rémi Denis-Courmont [Mon, 24 Aug 2015 17:48:02 +0000 (20:48 +0300)]
filesystem: use native mkstemp() on POSIX

4 years agotimeshift: delete temporary file as soon as possible
Rémi Denis-Courmont [Mon, 24 Aug 2015 17:44:24 +0000 (20:44 +0300)]
timeshift: delete temporary file as soon as possible

This avoids leaking disk space if VLC does not terminate cleanly.

4 years agotimeshift: try to create the TS directory always before use
Rémi Denis-Courmont [Mon, 24 Aug 2015 17:27:56 +0000 (20:27 +0300)]
timeshift: try to create the TS directory always before use

The vlc_stat() call did not really ensure that the directory was usable
(space and permission), nor that it would still exist when needed.

Now instead, try to create the temporary file and fall back to the
default path if that fails.

4 years agowayland/shm: use vlc_memfd()
Rémi Denis-Courmont [Mon, 24 Aug 2015 16:27:22 +0000 (19:27 +0300)]
wayland/shm: use vlc_memfd()

4 years agofilesystem: add vlc_memfd() helper
Rémi Denis-Courmont [Mon, 24 Aug 2015 16:14:02 +0000 (19:14 +0300)]
filesystem: add vlc_memfd() helper

4 years agoRemove useless #include
Rémi Denis-Courmont [Mon, 24 Aug 2015 15:52:15 +0000 (18:52 +0300)]
Remove useless #include

4 years agofilesystem: deal with Linux O_TMPFILE open() flag correctly
Rémi Denis-Courmont [Mon, 24 Aug 2015 15:50:41 +0000 (18:50 +0300)]
filesystem: deal with Linux O_TMPFILE open() flag correctly

4 years agofilesystem: constify vlc_readdir()
Rémi Denis-Courmont [Mon, 24 Aug 2015 15:10:20 +0000 (18:10 +0300)]
filesystem: constify vlc_readdir()

4 years agofilesystem: clean up documentation
Rémi Denis-Courmont [Mon, 24 Aug 2015 15:07:02 +0000 (18:07 +0300)]
filesystem: clean up documentation

4 years agovideotoolbox: full range video decoding is H264 only
Felix Paul Kühne [Mon, 24 Aug 2015 13:38:23 +0000 (15:38 +0200)]
videotoolbox: full range video decoding is H264 only

4 years agovout ios: minor clean-up
Felix Paul Kühne [Mon, 24 Aug 2015 12:43:04 +0000 (14:43 +0200)]
vout ios: minor clean-up

4 years agovideotoolbox: fix exception on late-start
Felix Paul Kühne [Mon, 24 Aug 2015 12:42:23 +0000 (14:42 +0200)]
videotoolbox: fix exception on late-start

4 years agoGnuTLS: fix building with GnuTLS < 3.3.0
Jean-Baptiste Kempf [Mon, 24 Aug 2015 13:15:41 +0000 (15:15 +0200)]
GnuTLS: fix building with GnuTLS < 3.3.0

4 years agobluray: create subpicture only when vout is available
Petri Hintukainen [Thu, 20 Aug 2015 08:44:18 +0000 (11:44 +0300)]
bluray: create subpicture only when vout is available

Avoid leaking subpicture if vout is never opened.

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
4 years agobluray: factorize blurayReleaseVout()
Petri Hintukainen [Tue, 18 Aug 2015 11:06:37 +0000 (14:06 +0300)]
bluray: factorize blurayReleaseVout()

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
4 years agobluray: both overlays can be active
Petri Hintukainen [Sun, 9 Aug 2015 18:09:21 +0000 (21:09 +0300)]
bluray: both overlays can be active

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
4 years agobluray: Simplify code
Petri Hintukainen [Sun, 9 Aug 2015 18:08:16 +0000 (21:08 +0300)]
bluray: Simplify code

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
4 years agodecoder: reorder a variable initialization
Rémi Denis-Courmont [Sun, 23 Aug 2015 17:03:08 +0000 (20:03 +0300)]
decoder: reorder a variable initialization

There are no needs to keep a copy of this on the stack. Besides, the
value could change if we supported threaded audio decoding.

4 years agopulse: timing info can be NULL, deal with it
Rémi Denis-Courmont [Sun, 23 Aug 2015 17:02:58 +0000 (20:02 +0300)]
pulse: timing info can be NULL, deal with it

4 years agomacosx: add tp file extension (close #15329)
David Fuhrmann [Sun, 23 Aug 2015 14:58:54 +0000 (16:58 +0200)]
macosx: add tp file extension (close #15329)

tp is another extension for ts.

4 years agonsspeechsynthesizer: drop priority to 0
David Fuhrmann [Sun, 23 Aug 2015 14:54:19 +0000 (16:54 +0200)]
nsspeechsynthesizer: drop priority to 0

4 years agognutls: generate Diffie-Hellman parameters dynamically (fixes #14702)
Rémi Denis-Courmont [Sun, 23 Aug 2015 10:18:05 +0000 (13:18 +0300)]
gnutls: generate Diffie-Hellman parameters dynamically (fixes #14702)

4 years agolibvlc: return useful/visible video dimensions (fixes #15122)
Rémi Denis-Courmont [Sun, 23 Aug 2015 09:46:44 +0000 (12:46 +0300)]
libvlc: return useful/visible video dimensions (fixes #15122)

4 years agospeex: avoid unsigned->signed->unsigned conversion (CID #1048968)
Rémi Denis-Courmont [Sun, 23 Aug 2015 07:33:50 +0000 (10:33 +0300)]
speex: avoid unsigned->signed->unsigned conversion (CID #1048968)

4 years agoshout: remove unused values
Rémi Denis-Courmont [Sun, 23 Aug 2015 07:15:58 +0000 (10:15 +0300)]
shout: remove unused values

4 years agorar: call strchr() only once
Rémi Denis-Courmont [Sun, 23 Aug 2015 07:13:33 +0000 (10:13 +0300)]
rar: call strchr() only once

4 years agolive555: check for error
Rémi Denis-Courmont [Sun, 23 Aug 2015 07:08:15 +0000 (10:08 +0300)]
live555: check for error

4 years agolinsys_sdi: simplify and fix sysfs usage
Rémi Denis-Courmont [Sun, 23 Aug 2015 07:05:57 +0000 (10:05 +0300)]
linsys_sdi: simplify and fix sysfs usage

4 years agofreetype: fix integer overflow
Rémi Denis-Courmont [Sat, 22 Aug 2015 13:30:25 +0000 (16:30 +0300)]
freetype: fix integer overflow

4 years agopulse: compute latency correctly if negative (fixes #15046)
Rémi Denis-Courmont [Sat, 22 Aug 2015 09:21:35 +0000 (12:21 +0300)]
pulse: compute latency correctly if negative (fixes #15046)

This occurs in case of large buffer underflow, such as if stopping the
VLC process.

4 years agopulse: fix race in TimeGet()
Rémi Denis-Courmont [Sat, 22 Aug 2015 09:16:45 +0000 (12:16 +0300)]
pulse: fix race in TimeGet()

Cork state could change asynchronously without the PA lock.

4 years agofile: fix typo
Rémi Denis-Courmont [Sat, 22 Aug 2015 09:08:34 +0000 (12:08 +0300)]
file: fix typo

4 years agotaglib: fix memory leak
Rémi Denis-Courmont [Sat, 22 Aug 2015 07:46:17 +0000 (10:46 +0300)]
taglib: fix memory leak

4 years agohls: fix memory leak
Rémi Denis-Courmont [Sat, 22 Aug 2015 07:41:26 +0000 (10:41 +0300)]
hls: fix memory leak

4 years agosubsdec: fix memory leak
Rémi Denis-Courmont [Sat, 22 Aug 2015 07:39:21 +0000 (10:39 +0300)]
subsdec: fix memory leak

4 years agosubsusf: move subsdec-formatted option to correct plugin
Rémi Denis-Courmont [Sat, 22 Aug 2015 07:37:49 +0000 (10:37 +0300)]
subsusf: move subsdec-formatted option to correct plugin

(Maybe the option should be renamed also)

4 years agosubsdec: fix memory leak
Rémi Denis-Courmont [Sat, 22 Aug 2015 07:36:20 +0000 (10:36 +0300)]
subsdec: fix memory leak

4 years agommsh: fix memory leak
Rémi Denis-Courmont [Sat, 22 Aug 2015 07:34:33 +0000 (10:34 +0300)]
mmsh: fix memory leak

4 years agomux_m4: fix memory leak
Rémi Denis-Courmont [Sat, 22 Aug 2015 07:29:55 +0000 (10:29 +0300)]
mux_m4: fix memory leak

4 years agomux_mp4: fix memory leak
Rémi Denis-Courmont [Sat, 22 Aug 2015 07:25:21 +0000 (10:25 +0300)]
mux_mp4: fix memory leak

4 years agobd: memory leak
Rémi Denis-Courmont [Sat, 22 Aug 2015 07:20:51 +0000 (10:20 +0300)]
bd: memory leak

4 years agobd: memory leak
Rémi Denis-Courmont [Sat, 22 Aug 2015 07:19:41 +0000 (10:19 +0300)]
bd: memory leak

4 years agoxiph: simplify and fix leak
Rémi Denis-Courmont [Sat, 22 Aug 2015 07:10:37 +0000 (10:10 +0300)]
xiph: simplify and fix leak

4 years agolpcm: remove dead code
Rémi Denis-Courmont [Fri, 21 Aug 2015 17:10:24 +0000 (20:10 +0300)]
lpcm: remove dead code

4 years agoncurses: fix NULL deref
Rémi Denis-Courmont [Fri, 21 Aug 2015 17:07:49 +0000 (20:07 +0300)]
ncurses: fix NULL deref

in empty directory

4 years agottml: fix DEMUX_GET_TIME at end-of-stream
Rémi Denis-Courmont [Fri, 21 Aug 2015 17:05:40 +0000 (20:05 +0300)]
ttml: fix DEMUX_GET_TIME at end-of-stream

4 years agocaf: fix error handling / integer overflow
Rémi Denis-Courmont [Fri, 21 Aug 2015 17:01:47 +0000 (20:01 +0300)]
caf: fix error handling / integer overflow

4 years agoskins2: fix error handling
Rémi Denis-Courmont [Fri, 21 Aug 2015 16:57:55 +0000 (19:57 +0300)]
skins2: fix error handling

4 years agoaudioscrobbler: fix stream error handling
Rémi Denis-Courmont [Fri, 21 Aug 2015 16:56:15 +0000 (19:56 +0300)]
audioscrobbler: fix stream error handling

4 years agohds: fix stream error handling
Rémi Denis-Courmont [Fri, 21 Aug 2015 16:55:36 +0000 (19:55 +0300)]
hds: fix stream error handling

4 years agoaddons: fix stream error handling
Rémi Denis-Courmont [Fri, 21 Aug 2015 16:53:33 +0000 (19:53 +0300)]
addons: fix stream error handling

4 years agosftp: do not close(-1)
Rémi Denis-Courmont [Fri, 21 Aug 2015 16:51:41 +0000 (19:51 +0300)]
sftp: do not close(-1)

4 years agosmooth: remove antilogy
Rémi Denis-Courmont [Fri, 21 Aug 2015 16:50:11 +0000 (19:50 +0300)]
smooth: remove antilogy

4 years agosharpen: remove antilogy
Rémi Denis-Courmont [Fri, 21 Aug 2015 16:47:55 +0000 (19:47 +0300)]
sharpen: remove antilogy

Input picture to a filter is never NULL. And even if it were NULL, the
pointer is dereferenced earlier...

4 years agoalsa: fix potentially uninitialized value
Rémi Denis-Courmont [Fri, 21 Aug 2015 16:46:09 +0000 (19:46 +0300)]
alsa: fix potentially uninitialized value

4 years agolua: fix potentially uninitialized value
Rémi Denis-Courmont [Fri, 21 Aug 2015 16:42:40 +0000 (19:42 +0300)]
lua: fix potentially uninitialized value

4 years agochroma converter: add CVPixelBuffer to I420 converter
Felix Paul Kühne [Fri, 21 Aug 2015 16:06:12 +0000 (18:06 +0200)]
chroma converter: add CVPixelBuffer to I420 converter

4 years agoiOS vout: add support for zero-copy rendering
Felix Paul Kühne [Thu, 20 Aug 2015 16:53:24 +0000 (18:53 +0200)]
iOS vout: add support for zero-copy rendering

4 years agogeneric opengl code: expose helper function
Felix Paul Kühne [Fri, 21 Aug 2015 16:05:38 +0000 (18:05 +0200)]
generic opengl code: expose helper function

4 years agovideotoolbox: request full range pixel format instead of video range
Felix Paul Kühne [Fri, 21 Aug 2015 16:05:08 +0000 (18:05 +0200)]
videotoolbox: request full range pixel format instead of video range

This provides broader details for luma and chroma (0-255 instead of 16-235 and respectively 1-255 instead of 16-240)

4 years agovideotoolbox: add support for zero-copy rendering
Felix Paul Kühne [Thu, 20 Aug 2015 16:48:49 +0000 (18:48 +0200)]
videotoolbox: add support for zero-copy rendering

4 years agocore: add fake format for CVPixelBuffer
Felix Paul Kühne [Thu, 2 Jul 2015 14:31:52 +0000 (16:31 +0200)]
core: add fake format for CVPixelBuffer

4 years agofreetype: only render visible bitmaps
Francois Cartegnie [Thu, 20 Aug 2015 22:37:42 +0000 (00:37 +0200)]
freetype: only render visible bitmaps

and use limits to render underline/strikethrough correctly

4 years agofreetype: precompute line edges
Francois Cartegnie [Thu, 20 Aug 2015 22:31:14 +0000 (00:31 +0200)]
freetype: precompute line edges

4 years agofreetype: fix strikeout style corruption
Francois Cartegnie [Thu, 20 Aug 2015 20:23:40 +0000 (22:23 +0200)]
freetype: fix strikeout style corruption

4 years agofreetype: force font y alignment for gridmode
Francois Cartegnie [Thu, 20 Aug 2015 13:00:00 +0000 (15:00 +0200)]
freetype: force font y alignment for gridmode

Line height is always set to max of the rendered glyphs height.
This causes 'dancing' lines because row height it never the
same, amplified by number of preceding empty rows.

4 years agopacketizer: h264: rename NAL startcode escaping functions
Francois Cartegnie [Thu, 20 Aug 2015 11:03:21 +0000 (13:03 +0200)]
packetizer: h264: rename NAL startcode escaping functions

4 years agotext_renderer: freetype: fix background alignment, try #2 (fix #9949)
Francois Cartegnie [Wed, 19 Aug 2015 20:50:58 +0000 (22:50 +0200)]
text_renderer: freetype: fix background alignment, try #2 (fix #9949)

or try #3 in fact :/
This reverts commit 0b6165af3b147a2cbd7bad77a983b001f2d393f8.
This reverts commit 24a593632a50984aef6296c5b124a1b74a38fd2e.

4 years agoh264_nal: fix h264_get_spspps
Thomas Guillem [Wed, 19 Aug 2015 14:03:47 +0000 (16:03 +0200)]
h264_nal: fix h264_get_spspps

Don't end the NAL unit when we reach 0x000000. Refactor since we don't need to
parse separately the start and the end of the NAL unit anymore.

4 years agoFreetype: code cosmetics
Jean-Baptiste Kempf [Tue, 18 Aug 2015 14:26:47 +0000 (16:26 +0200)]
Freetype: code cosmetics