vlc.git
22 months agoaout: pass system play time to play callback
Rémi Denis-Courmont [Fri, 4 May 2018 17:45:05 +0000 (20:45 +0300)]
aout: pass system play time to play callback

22 months agoinclude: remove <vlc_aout.h> from <vlc_playlist.h>
Rémi Denis-Courmont [Fri, 4 May 2018 17:37:48 +0000 (20:37 +0300)]
include: remove <vlc_aout.h> from <vlc_playlist.h>

22 months agoconfig: add format attribute
Rémi Denis-Courmont [Fri, 4 May 2018 16:35:49 +0000 (19:35 +0300)]
config: add format attribute

22 months agomp4: add format attribute
Rémi Denis-Courmont [Fri, 4 May 2018 16:35:35 +0000 (19:35 +0300)]
mp4: add format attribute

22 months agoftp: add format attribute
Rémi Denis-Courmont [Fri, 4 May 2018 16:35:21 +0000 (19:35 +0300)]
ftp: add format attribute

22 months agodemux: ts: typedef timestamps
Francois Cartegnie [Fri, 4 May 2018 17:33:51 +0000 (19:33 +0200)]
demux: ts: typedef timestamps

22 months agosout: change first dts test
Francois Cartegnie [Fri, 4 May 2018 13:26:23 +0000 (15:26 +0200)]
sout: change first dts test

22 months agodbus: do not subtract VLC_TS_INVALID
Rémi Denis-Courmont [Fri, 4 May 2018 16:16:27 +0000 (19:16 +0300)]
dbus: do not subtract VLC_TS_INVALID

22 months agoaout: use float rate for filters
Rémi Denis-Courmont [Fri, 4 May 2018 15:12:39 +0000 (18:12 +0300)]
aout: use float rate for filters

22 months agoaout: use float rate for resampling
Rémi Denis-Courmont [Fri, 4 May 2018 15:12:39 +0000 (18:12 +0300)]
aout: use float rate for resampling

22 months agoaout: avoid setting viewpoint more than once
Rémi Denis-Courmont [Fri, 4 May 2018 13:40:37 +0000 (16:40 +0300)]
aout: avoid setting viewpoint more than once

22 months agoaout: fix out-of-place viewpoint code
Rémi Denis-Courmont [Fri, 4 May 2018 13:32:20 +0000 (16:32 +0300)]
aout: fix out-of-place viewpoint code

22 months agoaout: reduce output lock scope
Rémi Denis-Courmont [Fri, 4 May 2018 12:58:37 +0000 (15:58 +0300)]
aout: reduce output lock scope

The all audio output calls from the decoder must be (and actually are)
serialized by the decoder.

The output lock needs to protect against concurrent accesses to the
request parameters (owner->req) and the audio output module callbacks,
both of which can be accessed by interface threads.

It does not need to protect anything else, notably synchronization
parameters, the filter chain and the volume mixer.

22 months agotext_renderer: freetype: don't consolidate space (fix #20397)
Francois Cartegnie [Fri, 4 May 2018 12:35:13 +0000 (14:35 +0200)]
text_renderer: freetype: don't consolidate space (fix #20397)

22 months agoaout: relax memory ordering for stats
Rémi Denis-Courmont [Fri, 4 May 2018 12:11:48 +0000 (15:11 +0300)]
aout: relax memory ordering for stats

22 months agocodec/audiotoolbox_midi: fix initial invalid timestamp
Marvin Scholz [Fri, 4 May 2018 10:48:15 +0000 (12:48 +0200)]
codec/audiotoolbox_midi: fix initial invalid timestamp

Taken from 1f85564561f4dfaf535dfd10ae76f814c4572ace as this module is
based on the fluidsynth module code.

22 months agopacketizer: use date_Change()
Rémi Denis-Courmont [Fri, 4 May 2018 10:39:27 +0000 (13:39 +0300)]
packetizer: use date_Change()

See also 110e4f8568f241ddc191f2ae6d0ed95e0a91a934.

22 months agocdg: use VLC_TS_0, do not send VLC_TS_INVALID
Rémi Denis-Courmont [Fri, 4 May 2018 10:33:11 +0000 (13:33 +0300)]
cdg: use VLC_TS_0, do not send VLC_TS_INVALID

22 months agogme: remove redundant date_Set()
Rémi Denis-Courmont [Fri, 4 May 2018 10:31:53 +0000 (13:31 +0300)]
gme: remove redundant date_Set()

22 months agompg123: use VLC_TS_INVALID in one missing case
Rémi Denis-Courmont [Fri, 4 May 2018 10:29:37 +0000 (13:29 +0300)]
mpg123: use VLC_TS_INVALID in one missing case

22 months agostats: use VLC_TS_0 explicitly
Rémi Denis-Courmont [Fri, 4 May 2018 10:25:34 +0000 (13:25 +0300)]
stats: use VLC_TS_0 explicitly

22 months agovoc: start at VLC_TS_0, not VLC_TS_0 + 1
Rémi Denis-Courmont [Fri, 4 May 2018 10:22:38 +0000 (13:22 +0300)]
voc: start at VLC_TS_0, not VLC_TS_0 + 1

Bug cargo-culted from wav

22 months agowav: start at VLC_TS_0, not VLC_TS_0 + 1
Rémi Denis-Courmont [Fri, 4 May 2018 10:22:38 +0000 (13:22 +0300)]
wav: start at VLC_TS_0, not VLC_TS_0 + 1

22 months agosid: remove redundant date_Set()
Rémi Denis-Courmont [Fri, 4 May 2018 10:20:23 +0000 (13:20 +0300)]
sid: remove redundant date_Set()

22 months agorawvid: remove redundant date_Set()
Rémi Denis-Courmont [Fri, 4 May 2018 10:20:23 +0000 (13:20 +0300)]
rawvid: remove redundant date_Set()

22 months agorawaud: remove redundant date_Set()
Rémi Denis-Courmont [Fri, 4 May 2018 10:20:23 +0000 (13:20 +0300)]
rawaud: remove redundant date_Set()

22 months agoes_out: rename p_clock to p_input_clock
Thomas Guillem [Fri, 4 May 2018 08:35:05 +0000 (10:35 +0200)]
es_out: rename p_clock to p_input_clock

Signed-off-by: Rémi Denis-Courmont <remi@remlab.net>
22 months agodemux:asf: init the PCR to VLC_TS_INVALID instead of -1
Steve Lhomme [Thu, 3 May 2018 15:37:47 +0000 (17:37 +0200)]
demux:asf: init the PCR to VLC_TS_INVALID instead of -1

Block_Dequeue() might send the PCR as VLC_TS_INVALID

Signed-off-by: Rémi Denis-Courmont <remi@remlab.net>
22 months agovideo_filter:fps: fix invalid PTS check
Steve Lhomme [Thu, 3 May 2018 15:05:20 +0000 (17:05 +0200)]
video_filter:fps: fix invalid PTS check

Signed-off-by: Rémi Denis-Courmont <remi@remlab.net>
22 months agomodules: clean calls to date_Set with hardcoded values
Steve Lhomme [Wed, 2 May 2018 14:18:26 +0000 (16:18 +0200)]
modules: clean calls to date_Set with hardcoded values

Signed-off-by: Rémi Denis-Courmont <remi@remlab.net>
22 months agompeg4audio: fix date init order
Rémi Denis-Courmont [Fri, 4 May 2018 10:09:12 +0000 (13:09 +0300)]
mpeg4audio: fix date init order

date_Set() was clobbered by date_Init().

22 months agoaout: pass rate change separately from play
Rémi Denis-Courmont [Fri, 4 May 2018 09:06:15 +0000 (12:06 +0300)]
aout: pass rate change separately from play

22 months agompeg: replace another 1000000 with CLOCK_FREQ
Rémi Denis-Courmont [Fri, 4 May 2018 08:34:08 +0000 (11:34 +0300)]
mpeg: replace another 1000000 with CLOCK_FREQ

22 months agomodules: use CLOCK_FREQ/2 instead of 500000 mtime_t
Steve Lhomme [Thu, 3 May 2018 12:25:57 +0000 (14:25 +0200)]
modules: use CLOCK_FREQ/2 instead of 500000 mtime_t

Signed-off-by: Rémi Denis-Courmont <remi@remlab.net>
22 months agoasx: handle large start/stop times w/o overflow
Rémi Denis-Courmont [Fri, 4 May 2018 08:32:15 +0000 (11:32 +0300)]
asx: handle large start/stop times w/o overflow

22 months agomodules: replace use of 1000000 on time values by CLOCK_FREQ
Steve Lhomme [Thu, 3 May 2018 08:23:09 +0000 (10:23 +0200)]
modules: replace use of 1000000 on time values by CLOCK_FREQ

Modified-by: Thomas Guillem <thomas@gllm.fr>
Signed-off-by: Rémi Denis-Courmont <remi@remlab.net>
22 months agottml: simplify tt_time_Compare()
Steve Lhomme [Thu, 3 May 2018 08:18:33 +0000 (10:18 +0200)]
ttml: simplify tt_time_Compare()

The case where one of the values is invalid is still not handled.

Signed-off-by: Rémi Denis-Courmont <remi@remlab.net>
22 months agottml: an invalid mtime_t is VLC_TS_INVALID
Steve Lhomme [Thu, 3 May 2018 08:15:59 +0000 (10:15 +0200)]
ttml: an invalid mtime_t is VLC_TS_INVALID

Signed-off-by: Rémi Denis-Courmont <remi@remlab.net>
22 months agobackground_worker: use a define for the inactive worker deadline
Steve Lhomme [Thu, 3 May 2018 15:00:34 +0000 (17:00 +0200)]
background_worker: use a define for the inactive worker deadline

Modified-and-...
Signed-off-by: Rémi Denis-Courmont <remi@remlab.net>
22 months agosynchro: make constants compile-time constant
Rémi Denis-Courmont [Fri, 4 May 2018 07:45:16 +0000 (10:45 +0300)]
synchro: make constants compile-time constant

22 months agodemux:ogg: remove dead code
Steve Lhomme [Thu, 3 May 2018 15:45:44 +0000 (17:45 +0200)]
demux:ogg: remove dead code

it's exactly the same tests as the other part of the else

Signed-off-by: Rémi Denis-Courmont <remi@remlab.net>
22 months agortp:session: remove outdated comment
Steve Lhomme [Thu, 3 May 2018 14:52:22 +0000 (16:52 +0200)]
rtp:session: remove outdated comment

22 months agoclock: rename clock files to input_clock
Denis Charmet [Wed, 2 May 2018 14:07:44 +0000 (16:07 +0200)]
clock: rename clock files to input_clock

22 months agoclock: split files to reuse average functions
Denis Charmet [Wed, 2 May 2018 13:47:55 +0000 (15:47 +0200)]
clock: split files to reuse average functions

22 months agocore: move clock from input to its own core folder
Denis Charmet [Wed, 2 May 2018 13:26:31 +0000 (15:26 +0200)]
core: move clock from input to its own core folder

22 months agopo: delist clock files w/o translations
Rémi Denis-Courmont [Thu, 3 May 2018 15:51:36 +0000 (18:51 +0300)]
po: delist clock files w/o translations

22 months agomjpeg: check ES just once
Rémi Denis-Courmont [Thu, 3 May 2018 17:11:39 +0000 (20:11 +0300)]
mjpeg: check ES just once

22 months agomjpeg: fix callback init order
Rémi Denis-Courmont [Thu, 3 May 2018 17:10:45 +0000 (20:10 +0300)]
mjpeg: fix callback init order

22 months agomjpeg: use vlc_obj_*(), simplify
Rémi Denis-Courmont [Thu, 3 May 2018 17:09:47 +0000 (20:09 +0300)]
mjpeg: use vlc_obj_*(), simplify

22 months agoobjres: add vlc_obj_strdup()
Rémi Denis-Courmont [Thu, 3 May 2018 17:05:36 +0000 (20:05 +0300)]
objres: add vlc_obj_strdup()

22 months agomod: check ES just once
Rémi Denis-Courmont [Thu, 3 May 2018 16:56:50 +0000 (19:56 +0300)]
mod: check ES just once

22 months agomod: use vlc_obj_malloc() and simplify
Rémi Denis-Courmont [Thu, 3 May 2018 16:55:23 +0000 (19:55 +0300)]
mod: use vlc_obj_malloc() and simplify

22 months agomod: fix callback init order
Rémi Denis-Courmont [Thu, 3 May 2018 16:50:58 +0000 (19:50 +0300)]
mod: fix callback init order

22 months agocdg: check ES just once
Rémi Denis-Courmont [Thu, 3 May 2018 16:45:58 +0000 (19:45 +0300)]
cdg: check ES just once

22 months agocdg: use vlc_obj_malloc()
Rémi Denis-Courmont [Thu, 3 May 2018 16:42:05 +0000 (19:42 +0300)]
cdg: use vlc_obj_malloc()

22 months agocaf: remove tautology
Rémi Denis-Courmont [Thu, 3 May 2018 16:36:41 +0000 (19:36 +0300)]
caf: remove tautology

p_sys->es cannot be NULL here.

22 months agocaf: simplify error handling
Rémi Denis-Courmont [Thu, 3 May 2018 16:36:32 +0000 (19:36 +0300)]
caf: simplify error handling

22 months agocaf: remove redundant seek on error
Rémi Denis-Courmont [Thu, 3 May 2018 16:34:55 +0000 (19:34 +0300)]
caf: remove redundant seek on error

22 months agocaf: use es_format_Clean()
Rémi Denis-Courmont [Thu, 3 May 2018 16:31:53 +0000 (19:31 +0300)]
caf: use es_format_Clean()

22 months agocaf: remove redundant es_out_Del()
Rémi Denis-Courmont [Thu, 3 May 2018 16:29:13 +0000 (19:29 +0300)]
caf: remove redundant es_out_Del()

22 months agoaout: move aout events to truly separate structure
Rémi Denis-Courmont [Thu, 3 May 2018 12:48:12 +0000 (15:48 +0300)]
aout: move aout events to truly separate structure

22 months agoaout: remove stray comment
Rémi Denis-Courmont [Thu, 3 May 2018 12:32:28 +0000 (15:32 +0300)]
aout: remove stray comment

22 months agocache_block: restore stat calculation
Ilkka Ollakka [Sat, 21 Apr 2018 09:34:45 +0000 (12:34 +0300)]
cache_block: restore stat calculation

Seems that someone missed this stat, restore feature.

Was removed in 9a725a039d8cfcf91aabad0101da1563a627493f

22 months agocache_block: fix regression on not refilling cache on read
Ilkka Ollakka [Sat, 21 Apr 2018 09:32:22 +0000 (12:32 +0300)]
cache_block: fix regression on not refilling cache on read

Regression from 9a725a039d8cfcf91aabad0101da1563a627493f.

Tested by disabling pf_block-check in cache_block and renaming
cache_read shortcut to cachexxx. Tip from Remi. Passes all make checks.

ref #20306

22 months agolib: Remove leftover symbol from export list
Hugo Beauzée-Luyssen [Thu, 3 May 2018 12:38:04 +0000 (14:38 +0200)]
lib: Remove leftover symbol from export list

22 months agolibvlc: remove deprecated SD functions
Rémi Denis-Courmont [Thu, 3 May 2018 12:23:25 +0000 (15:23 +0300)]
libvlc: remove deprecated SD functions

22 months agolibvlc: remove deprecated SD event manager
Rémi Denis-Courmont [Thu, 3 May 2018 12:21:58 +0000 (15:21 +0300)]
libvlc: remove deprecated SD event manager

22 months agolibvlc: remove audio stub functions
Rémi Denis-Courmont [Thu, 3 May 2018 12:15:36 +0000 (15:15 +0300)]
libvlc: remove audio stub functions

22 months agolibvlc: bump SO version
Rémi Denis-Courmont [Thu, 3 May 2018 12:11:44 +0000 (15:11 +0300)]
libvlc: bump SO version

22 months agolibvlc: remove deprecated video functions
Rémi Denis-Courmont [Thu, 3 May 2018 12:11:31 +0000 (15:11 +0300)]
libvlc: remove deprecated video functions

22 months agolib: remove AGL functions
Rémi Denis-Courmont [Thu, 3 May 2018 12:02:49 +0000 (15:02 +0300)]
lib: remove AGL functions

22 months agolibvlc: remove deprecated log stubs
Rémi Denis-Courmont [Thu, 3 May 2018 11:58:11 +0000 (14:58 +0300)]
libvlc: remove deprecated log stubs

22 months agoRemove useless <vlc/vlc.h> include
Rémi Denis-Courmont [Thu, 3 May 2018 11:52:43 +0000 (14:52 +0300)]
Remove useless <vlc/vlc.h> include

22 months agovoc: check ES
Rémi Denis-Courmont [Thu, 3 May 2018 09:07:27 +0000 (12:07 +0300)]
voc: check ES

22 months agovoc: use vlc_obj_malloc()
Rémi Denis-Courmont [Thu, 3 May 2018 09:04:53 +0000 (12:04 +0300)]
voc: use vlc_obj_malloc()

22 months agovoc: fix callback init order
Rémi Denis-Courmont [Thu, 3 May 2018 09:02:40 +0000 (12:02 +0300)]
voc: fix callback init order

22 months agowav: check ES
Rémi Denis-Courmont [Thu, 3 May 2018 09:01:51 +0000 (12:01 +0300)]
wav: check ES

22 months agodemux: xa: use VLC_DEMUXER_
Francois Cartegnie [Thu, 3 May 2018 11:49:59 +0000 (13:49 +0200)]
demux: xa: use VLC_DEMUXER_

22 months agodemux: wav: use VLC_DEMUXER_
Francois Cartegnie [Thu, 3 May 2018 11:45:41 +0000 (13:45 +0200)]
demux: wav: use VLC_DEMUXER_

22 months agodemux: voc: use VLC_DEMUXER_
Francois Cartegnie [Thu, 3 May 2018 10:14:40 +0000 (12:14 +0200)]
demux: voc: use VLC_DEMUXER_

22 months agodemux: ty: use VLC_DEMUXER_
Francois Cartegnie [Thu, 3 May 2018 10:13:12 +0000 (12:13 +0200)]
demux: ty: use VLC_DEMUXER_

22 months agodemux: tta: use VLC_DEMUXER_
Francois Cartegnie [Thu, 3 May 2018 09:33:41 +0000 (11:33 +0200)]
demux: tta: use VLC_DEMUXER_

22 months agodemux: smf: use VLC_DEMUXER_
Francois Cartegnie [Thu, 3 May 2018 09:29:23 +0000 (11:29 +0200)]
demux: smf: use VLC_DEMUXER_

22 months agodemux: sid: use VLC_DEMUXER_
Francois Cartegnie [Thu, 3 May 2018 09:25:16 +0000 (11:25 +0200)]
demux: sid: use VLC_DEMUXER_

22 months agodemux: real: use VLC_DEMUXER_
Francois Cartegnie [Thu, 3 May 2018 08:59:50 +0000 (10:59 +0200)]
demux: real: use VLC_DEMUXER_

22 months agodemux: rawdv use VLC_DEMUXER_
Francois Cartegnie [Thu, 3 May 2018 08:57:02 +0000 (10:57 +0200)]
demux: rawdv use VLC_DEMUXER_

22 months agodemux: rawdv: use VLC_DEMUXER_
Francois Cartegnie [Thu, 3 May 2018 08:50:33 +0000 (10:50 +0200)]
demux: rawdv: use VLC_DEMUXER_

22 months agodemux: rawaud: use VLC_DEMUXER_
Francois Cartegnie [Thu, 3 May 2018 08:49:01 +0000 (10:49 +0200)]
demux: rawaud: use VLC_DEMUXER_

22 months agoqt: prevent window jumps on resize (X11)
Romain Vimont [Mon, 30 Apr 2018 19:57:36 +0000 (21:57 +0200)]
qt: prevent window jumps on resize (X11)

On X11 with Qt < 5.10, a resize request invoked XMoveResizeWindow() (see
0285ba4eeaa55608573a48e50a036ee2b437ae8b), which both moves and resizes.
To avoid moving, it was called with the current geometry() coordinates
as position arguments.

However, the calculated position may be wrong when several displays have
a different devicePixelRatio(). As a consequence, on a secondary
display, every (automatic) resize of the window made it jump to
unexpected locations.

To avoid the problem, just call XResizeWindow(), so that the window is
not moved at all.

Signed-off-by: Hugo Beauzée-Luyssen <hugo@beauzee.fr>
22 months agoopengl: don't expose gl_subpicture_chromas in header file
Zhao Zhili [Thu, 3 May 2018 08:05:59 +0000 (16:05 +0800)]
opengl: don't expose gl_subpicture_chromas in header file

Signed-off-by: Hugo Beauzée-Luyssen <hugo@beauzee.fr>
22 months agodemux: cdg: fix invalid free
Zhao Zhili [Thu, 3 May 2018 09:01:58 +0000 (17:01 +0800)]
demux: cdg: fix invalid free

Signed-off-by: Hugo Beauzée-Luyssen <hugo@beauzee.fr>
22 months agovlc_vout_display: remove outdated comments
Zhao Zhili [Thu, 3 May 2018 02:08:46 +0000 (10:08 +0800)]
vlc_vout_display: remove outdated comments

i_aspect was removed in 2009

Signed-off-by: Hugo Beauzée-Luyssen <hugo@beauzee.fr>
22 months agoqt: remove useless forward declarations
Romain Vimont [Thu, 3 May 2018 08:21:22 +0000 (10:21 +0200)]
qt: remove useless forward declarations

The forward-declared types are necessarily already declared, since they
are used either in class fields as objects (without pointer or
reference), either as a parameter of an inherited method.

Signed-off-by: Hugo Beauzée-Luyssen <hugo@beauzee.fr>
22 months agoqt: improve time tooltip for hidpi
Romain Vimont [Thu, 3 May 2018 08:21:21 +0000 (10:21 +0200)]
qt: improve time tooltip for hidpi

The time tooltip (for the seek slider) was pixelated on hidpi screens.

Both the polygon to draw the tooltip and the widget mask had low
definition.

Replace QPolygon by QPolygonF to fix the tooltip drawing.

Currently, Qt does not support hidpi masks. Instead, disable the mask,
set a translucent background and make the widget transparent for mouse
events.

It also fixes #20011 as a side effect.

Signed-off-by: Hugo Beauzée-Luyssen <hugo@beauzee.fr>
22 months agovout: hide vout_Request/vout_Close
Thomas Guillem [Thu, 3 May 2018 08:26:28 +0000 (10:26 +0200)]
vout: hide vout_Request/vout_Close

So that we can use private structs to initialize the vout.

22 months agovout: merge vout_control.h with vout_internal.h
Thomas Guillem [Thu, 3 May 2018 08:20:32 +0000 (10:20 +0200)]
vout: merge vout_control.h with vout_internal.h

22 months agoxa: check ES
Rémi Denis-Courmont [Thu, 3 May 2018 08:58:57 +0000 (11:58 +0300)]
xa: check ES

22 months agoxa: use vlc_obj_malloc()
Rémi Denis-Courmont [Thu, 3 May 2018 08:58:16 +0000 (11:58 +0300)]
xa: use vlc_obj_malloc()

22 months agoau: check ES just once
Rémi Denis-Courmont [Thu, 3 May 2018 08:52:13 +0000 (11:52 +0300)]
au: check ES just once

22 months agoau: use vlc_obj_malloc()
Rémi Denis-Courmont [Thu, 3 May 2018 08:51:19 +0000 (11:51 +0300)]
au: use vlc_obj_malloc()