Thomas Guillem [Fri, 20 Apr 2018 06:43:52 +0000 (08:43 +0200)]
sid: rename demux_sys_t to demux_sid
ODR related.
Steve Lhomme [Thu, 19 Apr 2018 13:58:36 +0000 (15:58 +0200)]
dxva2: log the adapter Ids as hexademical
That's the common way to refer to them.
Steve Lhomme [Thu, 19 Apr 2018 13:58:26 +0000 (15:58 +0200)]
d3d11va: log the adapter Ids as hexademical
That's the common way to refer to them.
Hugo Beauzée-Luyssen [Thu, 19 Apr 2018 11:16:47 +0000 (13:16 +0200)]
qt: input_slider: Use the legacy scroll direction
Downward mouse scroll seeks backward, updward scrolls forward
Romain Vimont [Thu, 19 Apr 2018 10:33:19 +0000 (12:33 +0200)]
hotkeys: fix SPU scaling limits
Otherwise it's impossible to reset the value to 100%
Signed-off-by: Hugo Beauzée-Luyssen <hugo@beauzee.fr>
Hugo Beauzée-Luyssen [Thu, 19 Apr 2018 10:24:16 +0000 (12:24 +0200)]
qt: input_slider: Take user settings into account when jumping
But do so without using actions, as it would display the position using
OSD, while we're already displaying the FSC
Hugo Beauzée-Luyssen [Thu, 19 Apr 2018 09:25:05 +0000 (11:25 +0200)]
Partial revert "qt: Convert seek slider wheel events to actions"
This partially reverts commit
8314cd6ce6774e7086b0ed67567bea2fdeb15895.
Hugo Beauzée-Luyssen [Thu, 19 Apr 2018 09:12:57 +0000 (11:12 +0200)]
Revert "qt: input_slider: Convert wheel events to KEY_MOUSEWHEEL*"
This reverts commit
11bd3483a06de831a9127fd813db5728a178632a.
Thomas Guillem [Thu, 19 Apr 2018 09:47:04 +0000 (11:47 +0200)]
nfs: reset eof state on seek
Simon Latapie [Wed, 18 Apr 2018 16:39:10 +0000 (18:39 +0200)]
win32: build.sh: add an interactive mode
Adds an option to get a shell with the right environment set to build
VLC.
Signed-off-by: Hugo Beauzée-Luyssen <hugo@beauzee.fr>
Steve Lhomme [Thu, 19 Apr 2018 07:51:35 +0000 (09:51 +0200)]
d3d9_fmt: remove the driver version check function as it's not used anymore
It may come back later.
Steve Lhomme [Thu, 19 Apr 2018 07:49:30 +0000 (09:49 +0200)]
directx_va: disable Intel hybrid HEVC decoding by default
GPUs with Intel Hybrid HEVC are the ones from the BroadWell family and is
causing decoding issues in 10 bits and 8 bits decoding.
If the HW decoder is forced it will be used anyway.
When blacklisted there is msg_Warn so that it's more visible to the user.
Steve Lhomme [Thu, 19 Apr 2018 05:39:27 +0000 (07:39 +0200)]
rawvid: fix unlikely NULL dereference
CID #
1467998
David Fuhrmann [Wed, 18 Apr 2018 23:05:21 +0000 (01:05 +0200)]
keychain: Pad user name if its read out from keychain
Tests show that the username actually still needs to be padded.
Otherwise, crashes can occur in subsequent usage of username, as
it might contain garbage.
David Fuhrmann [Wed, 18 Apr 2018 23:03:09 +0000 (01:03 +0200)]
keychain: Fix storing of new keychain item on older macOS versions
Older versions are more picky regarding SecItemCopyMatching.
According to docu, one output type must be given, and also an actual
output variable must be passed (as tests show). Only then,
a 10.7 system accepts that search call.
David Fuhrmann [Wed, 18 Apr 2018 22:31:24 +0000 (00:31 +0200)]
keychain: Store port as integer
The value for that key must be an NSNumber according to docu.
This fixes a crash on 10.7 in find().
David Fuhrmann [Sun, 15 Apr 2018 18:46:26 +0000 (20:46 +0200)]
macosx: MediaInfo: Explicitly set initial tab item
To be consistent with initial tab item in segmented control.
Marvin Scholz [Thu, 29 Mar 2018 09:08:45 +0000 (11:08 +0200)]
misc/json: Fix check for json_relaxed_commas
The negation would only apply to the left operand (settings) and not the
full expression, which is likely not what was intended.
Marvin Scholz [Thu, 12 Apr 2018 00:37:58 +0000 (02:37 +0200)]
playlist/shoutcast: Remove shoutcast playlist handling
Removes the long unused Winamp/SHOUTcast directory stream filter for
playlist handling, which was mostly useful together with the service
discovery (modules/services_discovery/shout.c) which is not present
anymore.
Rémi Denis-Courmont [Wed, 18 Apr 2018 17:23:57 +0000 (20:23 +0300)]
posix: remove ancient run-time fallback to real-time clock
For hysterical raisins, GNU/Linux and possibly some other OSes still
report that monotonic clock must be checked at run-time, although I
doubt that VLC or even current glibc would run on such old kernel.
Drop that to simplify and avoid the systematic one-time init check.
Rémi Denis-Courmont [Tue, 17 Apr 2018 18:36:12 +0000 (21:36 +0300)]
prefetch: remove read size, always request maximum
Well behaving streams only wait for some data to be available
(e.g. FTP, HTTP, raw TCP).
Poory behaving streams wait for the whole requested amount
(e.g. regular file - though it does not use prefetch anyway).
Badly behaving streams wait for the whole requested amount and do not
perform any pipelining/buffering (e.g. CIFS, probably SFTP).
In the best case, this change reduces the number of calls, thus
slightly improving performance.
In the worst case, it reduces the number of round-trips necessary,
thus restoring support for playback at bandwidth-latency product.
However it increases latency in the low bandwidth case, but there is
a simple work-around: capping the read size to a suitably small value.
Another work-around which works both ways is to provide pf_block rather
than pf_read. But it incurs an extra memory copy.
Hugo Beauzée-Luyssen [Wed, 18 Apr 2018 14:42:52 +0000 (16:42 +0200)]
VLSub: Fix hash generation error handling
Thomas Guillem [Wed, 18 Apr 2018 14:13:57 +0000 (16:13 +0200)]
opengl: fix temporary buf visible_pitch alignment
This commit fixes a regression from
22776daa29914cf56c346241f89682d5707ffef7
Thomas Guillem [Wed, 18 Apr 2018 13:03:10 +0000 (15:03 +0200)]
opengl: remove useless pixel_pitch argument
And fix buf_size calculation.
Hugo Beauzée-Luyssen [Wed, 18 Apr 2018 14:00:03 +0000 (16:00 +0200)]
VLSub: Properly handle failure to extract the containing directory
ie. when trying to add subtitle for non local files
Hugo Beauzée-Luyssen [Wed, 18 Apr 2018 13:59:51 +0000 (15:59 +0200)]
VLSub: Display a user visible error when failing to generate the hash
Hugo Beauzée-Luyssen [Wed, 18 Apr 2018 13:55:53 +0000 (15:55 +0200)]
VLSub: Fix filename extraction on non local files
Francois Cartegnie [Wed, 18 Apr 2018 13:06:32 +0000 (15:06 +0200)]
demux: ogg: fix first oggds timestamps/drop regression
oggds uses 0 on first frame :/
Zhao Zhili [Wed, 18 Apr 2018 12:43:49 +0000 (20:43 +0800)]
opengl: fix leak on error
Signed-off-by: Thomas Guillem <thomas@gllm.fr>
Thomas Guillem [Wed, 18 Apr 2018 12:45:26 +0000 (14:45 +0200)]
Steve Lhomme [Wed, 18 Apr 2018 12:19:56 +0000 (14:19 +0200)]
direct3d11: get the feature level from the external D3D11 device on winstore builds
Thomas Guillem [Wed, 18 Apr 2018 12:05:54 +0000 (14:05 +0200)]
chromecast: always transcode mpga
Since it can be mp2 codec that is not supported by chromecast devices.
Thomas Guillem [Wed, 18 Apr 2018 11:57:32 +0000 (13:57 +0200)]
directdraw: accept every projection modes
Since this is the last vout in priority (comes after OpenGL), this vout should
accept ever projection modes (even if it won't be displayed correctly).
Thomas Guillem [Wed, 18 Apr 2018 11:41:58 +0000 (13:41 +0200)]
chroma: cvpx: simplify error handling
Thomas Guillem [Wed, 18 Apr 2018 11:37:08 +0000 (13:37 +0200)]
chroma: cvpx: fix copy cache leak
Hugo Beauzée-Luyssen [Wed, 18 Apr 2018 10:15:13 +0000 (12:15 +0200)]
ogg: Don't reuse a stream without ES
Hugo Beauzée-Luyssen [Wed, 18 Apr 2018 09:05:30 +0000 (11:05 +0200)]
demux-run: Ignore ES_OUT_SET_GROUP
Hugo Beauzée-Luyssen [Wed, 18 Apr 2018 08:31:01 +0000 (10:31 +0200)]
demux-run: Don't abort on ES_OUT_RESTART_ES
Steve Lhomme [Wed, 18 Apr 2018 09:54:02 +0000 (11:54 +0200)]
picture: fix the order of operation for the visible pitch
We round the value to the upper multiple first and then multiply and divide it.
Otherwise with semiplanar we end up with odd values for an even source.
Steve Lhomme [Tue, 17 Apr 2018 12:41:43 +0000 (14:41 +0200)]
picture: round the number of visible lines to the upper multiple
The U/V lines of 4:2:0 chroma are divided by 2. But if the height is an odd
number we end up missing the last line for these planes.
Fixes #20290
Steve Lhomme [Tue, 17 Apr 2018 12:50:48 +0000 (14:50 +0200)]
chroma: copy: fix tests losing the last U/V lines when using odd dimensions
Do do this we need to know that NV12 requires 2 octets per UV pixel which was
not possible with the 1/1 height fraction.
Steve Lhomme [Tue, 17 Apr 2018 12:20:39 +0000 (14:20 +0200)]
fourcc: define NV12 as semiplanar with the width multiplied and divided by two
This way we know from the description that the combined UV plane needs to be a
multiple of 2 and we have the proper width for the line (2/2 instead of 1/1 of
the original size)
Steve Lhomme [Tue, 17 Apr 2018 12:24:09 +0000 (14:24 +0200)]
chroma: copy: fix copies which may lose the last line if it's an odd number.
Steve Lhomme [Wed, 18 Apr 2018 07:39:40 +0000 (09:39 +0200)]
rawvid: fix the pitch/lines for 4:2:0 with odd dimensions
Rémi Denis-Courmont [Tue, 17 Apr 2018 18:35:08 +0000 (21:35 +0300)]
variables: use linked listed for callbacks
Tristan Matthews [Tue, 17 Apr 2018 15:19:50 +0000 (11:19 -0400)]
vpx: encoder: free existing blocks on allocation failure
Francois Cartegnie [Tue, 17 Apr 2018 17:35:19 +0000 (19:35 +0200)]
mux: ts: handle borked dts in mux
Thomas Guillem [Tue, 17 Apr 2018 17:11:34 +0000 (19:11 +0200)]
mmdevice: fix restart when switching from 0 to 1 device
- aout_RestartRequest() was not called because of a NULL sys->acquired_device,
- DeviceRestartLocked() was not called from Start() because of the early
sys->dev check,
- sys->acquired_device was not reset to NULL (when switching from 1 to 0
devices).
Reminder: sys->dev and sys->acquired_device are NULL if the aout is opened
without any audio devices plugged.
Thomas Guillem [Tue, 17 Apr 2018 16:44:02 +0000 (18:44 +0200)]
mmdevice: fix crash when all devices are removed during playback
Check the return value of the DeviceRestartLocked() function (returns 0 if
sys->dev is valid).
Steve Lhomme [Tue, 17 Apr 2018 14:10:52 +0000 (16:10 +0200)]
rawvideo: fix the picth/line computation for odd lines/heights
Fixes #20303
Thomas Guillem [Tue, 17 Apr 2018 07:51:45 +0000 (09:51 +0200)]
audiounit_ios: disable passthrough for now
Apple confirmed that there is (no more) passthrough support on iOS/tvOS.
Tristan Matthews [Fri, 13 Apr 2018 03:17:38 +0000 (23:17 -0400)]
vpx: encoder: use vpx_img_wrap to avoid memcpy
Tristan Matthews [Mon, 16 Apr 2018 14:10:49 +0000 (10:10 -0400)]
vpx: encoder: check for block allocation failure
Hugo Beauzée-Luyssen [Mon, 16 Apr 2018 15:59:18 +0000 (17:59 +0200)]
VLSub: Simplify path manipulations
Most of the info we used to extract isn't required anymore
This is now using path instead of URI, this way we will use a path when
calling path2uri back when loading the subtitle, which fixes the
convertion, and fixes loading subtitles on windows.
Fix #20114
Hugo Beauzée-Luyssen [Mon, 16 Apr 2018 15:17:27 +0000 (17:17 +0200)]
VLSub: Clean & simplify hash calculation
Don't attempt to generate the hash by downloading the entire media in
case the stream isn't seekable.
Hugo Beauzée-Luyssen [Mon, 16 Apr 2018 15:15:14 +0000 (17:15 +0200)]
lua: streams: Expose seek & getsize member functions
Hugo Beauzée-Luyssen [Mon, 16 Apr 2018 11:40:43 +0000 (13:40 +0200)]
VLSub: Use a more robust OS detection
Hugo Beauzée-Luyssen [Mon, 16 Apr 2018 11:36:59 +0000 (13:36 +0200)]
VLSub: Use the os specific path separator
Hugo Beauzée-Luyssen [Mon, 16 Apr 2018 11:26:14 +0000 (13:26 +0200)]
VLSub: Remove unused helper
Hugo Beauzée-Luyssen [Mon, 16 Apr 2018 11:13:44 +0000 (13:13 +0200)]
VLSub: Use vlc.io.unlink
Hugo Beauzée-Luyssen [Mon, 16 Apr 2018 11:09:58 +0000 (13:09 +0200)]
lua: io: Add a vlc.io.unlink function
To be able to delete files using an utf8 path
Hugo Beauzée-Luyssen [Mon, 16 Apr 2018 11:09:35 +0000 (13:09 +0200)]
lua: io: Fix typo in usage error message
Steve Lhomme [Mon, 16 Apr 2018 16:24:59 +0000 (18:24 +0200)]
Revert "picture: round the number of visible lines to the upper multiple"
This reverts commit
82f649983443292bd893962cac0484b7df8d1c89.
For now...
Rémi Denis-Courmont [Mon, 16 Apr 2018 14:22:25 +0000 (17:22 +0300)]
access: develop stream_FilterAutoNew() calls
Moves calls to stream_FilterAutoNew() out of stream_AccessNew().
No overall functional changes.
Rémi Denis-Courmont [Mon, 16 Apr 2018 14:49:01 +0000 (17:49 +0300)]
demux: merge access and location parameters as URL
(like is being done for access for a while)
Rémi Denis-Courmont [Mon, 16 Apr 2018 14:46:35 +0000 (17:46 +0300)]
input: cosmetic, reindent
Rémi Denis-Courmont [Mon, 16 Apr 2018 14:52:33 +0000 (17:52 +0300)]
input: make input_SplitMRL() static
Rémi Denis-Courmont [Mon, 16 Apr 2018 14:34:32 +0000 (17:34 +0300)]
demux_chained: use demux_New(), simplify
Rémi Denis-Courmont [Mon, 16 Apr 2018 14:32:47 +0000 (17:32 +0300)]
demux: remove constant demux_New() parameter
Steve Lhomme [Mon, 16 Apr 2018 13:35:23 +0000 (15:35 +0200)]
picture: round the number of visible lines to the upper multiple
The U/V lines of 4:2:0 chroma are divided by 2. But if the height is an odd
number we end up missing the last line for these planes.
Fixes #20290
Steve Lhomme [Mon, 16 Apr 2018 14:03:57 +0000 (16:03 +0200)]
direct3d11: no extra range conversion when the YUV source is already in full range
Fixes #20288
Zhao Zhili [Mon, 16 Apr 2018 12:13:51 +0000 (20:13 +0800)]
opengl: clarify comments
Signed-off-by: Thomas Guillem <thomas@gllm.fr>
Zhao Zhili [Mon, 16 Apr 2018 12:14:06 +0000 (20:14 +0800)]
opengl: remove useless cast
Signed-off-by: Thomas Guillem <thomas@gllm.fr>
Francois Cartegnie [Mon, 16 Apr 2018 10:26:56 +0000 (12:26 +0200)]
demux: ps: check for discontinuities
Francois Cartegnie [Mon, 16 Apr 2018 07:40:28 +0000 (09:40 +0200)]
packetizer: a52: move pts dedup
Francois Cartegnie [Sun, 15 Apr 2018 07:16:18 +0000 (09:16 +0200)]
demux: mkv: set es policy once
Steve Lhomme [Mon, 16 Apr 2018 06:56:45 +0000 (08:56 +0200)]
videotoolbox: map ap4x to the ProRes 4444 decoder
Thomas Guillem [Fri, 30 Mar 2018 09:16:31 +0000 (11:16 +0200)]
aout: keep the requested stereo-mode across several inputs
This also fixes the stereo-mode being forgotten when the decoder thread reload
its decoder module and aout.
If the requested stereo-mode is not available, fallback to the default one, but
keep this mode for next inputs. That is why the requested_stereo_mode
intermediate variable is needed.
Thomas Guillem [Mon, 16 Apr 2018 07:59:59 +0000 (09:59 +0200)]
aout: no "stereo-mode" for mono inputs
Mathieu Velten [Sat, 3 Mar 2018 02:04:42 +0000 (03:04 +0100)]
lua: fix loading file when the fs always reports mtime = 0
Signed-off-by: Hugo Beauzée-Luyssen <hugo@beauzee.fr>
Steve Lhomme [Mon, 16 Apr 2018 06:55:02 +0000 (08:55 +0200)]
fourcc: map "ap4x" to ProRes 4444 XG
Fixes #20285
Justin Kim [Mon, 9 Apr 2018 01:05:07 +0000 (10:05 +0900)]
access: srt: parse url once
A given URL shouldn't be changed while paying.
Signed-off-by: Justin Kim <justin.kim@collabora.com>
Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
Romain Vimont [Fri, 13 Apr 2018 16:37:19 +0000 (18:37 +0200)]
qt: postpone resize if fullscreen is enabled
Starting a video may resize the window (if autoresize is enabled). If
the video is started fullscreen, however, the window is not resized, so
its size is unexpected once fullscreen is disabled.
The initial fullscreen mode should not prevent autoresize, so resize the
window when disabling fullscreen.
Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
Romain Vimont [Fri, 13 Apr 2018 16:35:57 +0000 (18:35 +0200)]
qt: always save non-fullscreen widget size
restoreStackOldWidget() should always restore the size the widget have
when fullscreen is disabled.
Therefore, save the size before switching to fullscreen, and never
update while fullscreen is enabled.
Fixes #20224
Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
David Fuhrmann [Sun, 15 Apr 2018 18:27:26 +0000 (20:27 +0200)]
macosx: Fix localization for tab labels in media information panel
This also fixes hiding of stats tab in case the respective config
option is unset. Previous code raised error logs here.
David Fuhrmann [Sun, 15 Apr 2018 18:09:45 +0000 (20:09 +0200)]
macosx: Remove sout stats box from media info panel again
See
6b0284b7f41fbb911e5bf160c2d5ddd28b43e6e2. This time with adapted
autolayout constraints.
David Fuhrmann [Sun, 15 Apr 2018 17:28:50 +0000 (19:28 +0200)]
macosx: Undo MediaInfo.xib before removal of constraints
This reverts the xib to the state before
f0534b7a30ffc872e3175ef10a4e7c53ce91c6ab.
Unfortunately, this commit removed all autolayout constraints.
David Fuhrmann [Sun, 15 Apr 2018 16:25:20 +0000 (18:25 +0200)]
macosx: Fix localization issues in effects panels
The "apply at next startup" box did not have a localization at all.
The tab views localication was not applied correctly to due to the
panels redesign.
Zan Li [Sat, 14 Apr 2018 12:30:29 +0000 (20:30 +0800)]
remoteosd: properly check for gcrypt_cipher_open errors
The implementation of vnc_encrypt_bytes called by vnc_connect needs to add a
return value check on function gcry_cipher_open.
Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
Rémi Denis-Courmont [Sun, 15 Apr 2018 16:43:57 +0000 (19:43 +0300)]
mmdevice: make --no-volume-save actually work
(fixes #20291)
Rémi Denis-Courmont [Sun, 8 Apr 2018 09:53:13 +0000 (12:53 +0300)]
aout: deprecate --spdif on BSD/Linux
PulseAudio never took it into account.
ALSA needs something else and no longer uses it
(OSS presumably likewise).
Rémi Denis-Courmont [Sun, 8 Apr 2018 09:47:03 +0000 (12:47 +0300)]
oss: add own configuration item for passthrough
Also use the old description. The new one is misleading in the context
of OSSv4 (or ALSA)4 (or ALSA)4 (or ALSA)4 (or ALSA).
Rémi Denis-Courmont [Sun, 8 Apr 2018 09:31:53 +0000 (12:31 +0300)]
alsa: add HDMI passthrough mode
(This is untested.)
Rémi Denis-Courmont [Sun, 8 Apr 2018 10:33:43 +0000 (13:33 +0300)]
alsa: reorder code
No functional changes.
Rémi Denis-Courmont [Sun, 8 Apr 2018 09:31:53 +0000 (12:31 +0300)]
alsa: add own configuration item for passthrough
Rémi Denis-Courmont [Sun, 15 Apr 2018 08:50:09 +0000 (11:50 +0300)]
mpeg es: fix one shadowed variable
Rémi Denis-Courmont [Sun, 15 Apr 2018 08:50:09 +0000 (11:50 +0300)]
mpeg es: fix one shadowed variable
Konstantin Pavlov [Sat, 14 Apr 2018 19:26:55 +0000 (22:26 +0300)]
snap: manually build desktop-qt5 snap part.
We're using KDE Neon Qt5 & friends that fix the UI look and feel for
desktop environments Canonical does not care about, but unfortunately
those packages are not compatible with appmenu-qt5 package from Xenial,
required by desktop-qt5. The fix here is to replicate the desktop-qt5
snap build proccess, dropping appmenu-qt5 dependency.
Salah-Eddin Shaban [Wed, 11 Apr 2018 06:42:46 +0000 (09:42 +0300)]
Freetype: fix RTL
Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
Steve Lhomme [Fri, 13 Apr 2018 15:10:15 +0000 (17:10 +0200)]
demux:mkv: send a PCR reset when we switch to another segment during playback