vlc.git
3 years agoinput: name input event structs
Romain Vimont [Mon, 13 Aug 2018 09:15:08 +0000 (11:15 +0200)]
input: name input event structs

Some input event structs contain enums, whose values can be accessed
globally in C, but need a qualified access in C++. Since these enums are
defined inside unamed union and structs, there was no way to use them
from C++ code.

To avoid the problem, declare named structs for every event type
requiring more than one field.

3 years agomisc: background_worker: make the background worker multithreaded
Romain Vimont [Tue, 3 Jul 2018 16:25:38 +0000 (18:25 +0200)]
misc: background_worker: make the background worker multithreaded

A way to speed up the preparsing consists in preparsing several inputs
in parallel.

For this purpose, make the background worker (used by the preparser and
fetcher) execute tasks from (possibly) several threads.

Apart from adding a new field "max_threads" in the
background_worker_config structure, the background worker API is kept
unchanged.

Two new options are added to configure the maximum number of threads
used for preparsing and fetching:
 - preparse-threads
 - fetch-art-threads

3 years agoinput: preparser: prepare for multithreaded background worker
Filip Roséen [Tue, 17 Jul 2018 10:11:28 +0000 (12:11 +0200)]
input: preparser: prepare for multithreaded background worker

As there are plans to make the src/misc/background_worker
multithreaded, the preparser must be changed in order to support
having several tasks running in parallel.

These changes accomplishes said goal by moving the relevant
task related data-members from struct input_preparser_t to a new one,
so that each task has its own state.

3 years agoinput: merge INPUT_EVENT_TELETEXT with INPUT_EVENT_ES
Thomas Guillem [Thu, 16 Aug 2018 13:33:17 +0000 (15:33 +0200)]
input: merge INPUT_EVENT_TELETEXT with INPUT_EVENT_ES

The INPUT_EVENT_TELETEXT event was unused (or useless for the QT case since the
same teletext code was called from INPUT_EVENT_ES).

The legacy "teletext-es" event is still triggered from input_LegacyEvents()
when processing INPUT_EVENT_ES events.

And always pass the full fmt to ES events (to enable teletext detection).

3 years agoes_out: prevent fmt update with != i_id
Thomas Guillem [Fri, 17 Aug 2018 11:42:34 +0000 (13:42 +0200)]
es_out: prevent fmt update with != i_id

3 years agovlc_media_library.h: uniformize helpers error check
Hugo Beauzée-Luyssen [Thu, 16 Aug 2018 15:45:56 +0000 (17:45 +0200)]
vlc_media_library.h: uniformize helpers error check

3 years agomedialibrary: Plug events to the core API
Hugo Beauzée-Luyssen [Mon, 13 Aug 2018 15:56:18 +0000 (17:56 +0200)]
medialibrary: Plug events to the core API

3 years agocore: medialibrary: Add an event API
Hugo Beauzée-Luyssen [Mon, 13 Aug 2018 15:56:01 +0000 (17:56 +0200)]
core: medialibrary: Add an event API

3 years agomedialibrary: Add missing reload operation
Hugo Beauzée-Luyssen [Mon, 13 Aug 2018 14:14:10 +0000 (16:14 +0200)]
medialibrary: Add missing reload operation

3 years agomedialibrary: Make vlc_medialibrary_t an opaque type
Hugo Beauzée-Luyssen [Mon, 13 Aug 2018 09:55:12 +0000 (11:55 +0200)]
medialibrary: Make vlc_medialibrary_t an opaque type

vlc_medialibrary_module_t can be used by a "media library" module

3 years agohxx_sei: Fix improper counting of remaining bytes due to 3-byte emulation
Devin Heitmueller [Thu, 9 Aug 2018 19:36:44 +0000 (15:36 -0400)]
hxx_sei: Fix improper counting of remaining bytes due to 3-byte emulation

The routine which iterates over the RBSP to process the SEIs
attempts to accommodate the individual parsers not reading all
the bytes (i.e. by reading any remaining bytes before restarting
the loop), as well as detecting if the parser for a given type
read past the end of SEI.  However the implementation does this
by noting the position of the start of the NAL, getting the
position after parsing, and computing the difference.  This does
not take into account that the bitstream parser has a pf_forward
routine to strip out 3-byte emulation.

Hence in cases where an emulation sequence is found, the number
of bytes processed by the parser don't match how many bytes were
actually consumed in the stream.  The failure occurs at the bottom
of the loop where either it fails to read out extra bytes if the
parser didn't process the entire SEI, or aborting prematurely
thinking that the parser processed too many bytes.

To avoid this issue, clone the bitstream into a second instance
which already has the three byte emulation stripped, and use that
with the existing parser routines.

The use case where this problem manifested was a low latency
stream where it failed to find the SEI recovery point because
there was an emulation sequence in the preceding picture timing
SEI section, and this caused the loop to bail out because the
bs_position was past the size of the picture_timing SEI length.

Signed-off-by: Devin Heitmueller <dheitmueller@ltnglobal.com>
Signed-off-by: Francois Cartegnie <fcvlcdev@free.fr>
3 years agomacosx: Fix argument order when constructing stream chain
Marvin Scholz [Sun, 19 Aug 2018 00:50:42 +0000 (02:50 +0200)]
macosx: Fix argument order when constructing stream chain

3 years agomacosx: Set correct state/highlight for badge button
Marvin Scholz [Sat, 18 Aug 2018 19:09:39 +0000 (21:09 +0200)]
macosx: Set correct state/highlight for badge button

3 years agomacosx: Use NSButton subclass for badge drawing
Marvin Scholz [Sat, 18 Aug 2018 16:49:55 +0000 (18:49 +0200)]
macosx: Use NSButton subclass for badge drawing

For badges in source lists a NSInlineBezelStyle button should be used
according to the documentation. This greatly improves the look of the
badge, especially in selected state and Dark Aqua.

3 years agomacosx: Update sidebar on playlist table changes
Marvin Scholz [Sat, 18 Aug 2018 12:32:27 +0000 (14:32 +0200)]
macosx: Update sidebar on playlist table changes

This is necessary to update the counter badges properly.

3 years agomacosx: Convert sidebar to view based table
Marvin Scholz [Sat, 18 Aug 2018 02:51:03 +0000 (04:51 +0200)]
macosx: Convert sidebar to view based table

The sidebar is now a view based table with autolayout for the cell view
layout. The height follows now as expected the system setting for the
size of sidebar items.

3 years agomacosx: Do not crash on empty selection
Marvin Scholz [Sat, 18 Aug 2018 02:18:55 +0000 (04:18 +0200)]
macosx: Do not crash on empty selection

3 years agomacosx: Update PXSourceList to 2.x
Marvin Scholz [Sat, 18 Aug 2018 01:17:38 +0000 (03:17 +0200)]
macosx: Update PXSourceList to 2.x

3 years agomacosx: Use define for status column
Marvin Scholz [Fri, 17 Aug 2018 23:35:11 +0000 (01:35 +0200)]
macosx: Use define for status column

Instead of "magic" string

3 years agomacosx: Remove private API for sort indicator images
Marvin Scholz [Fri, 17 Aug 2018 23:31:59 +0000 (01:31 +0200)]
macosx: Remove private API for sort indicator images

These "magic" strings are documented in the official documentation
and exist since a long long time, Apple can't ever change those
without breaking a number of apps, so using them seems better than
relying on private API.

3 years agomacosx: Ensure title item is always added to table
Marvin Scholz [Fri, 17 Aug 2018 23:05:38 +0000 (01:05 +0200)]
macosx: Ensure title item is always added to table

Previously it was possible that the table ended up without the title
item in some rare cases and impossible for the user to enable it again
in the menu.

3 years agomacosx: Minor whitespace-only fixes
Marvin Scholz [Fri, 17 Aug 2018 22:47:31 +0000 (00:47 +0200)]
macosx: Minor whitespace-only fixes

3 years agomacosx: Use for-in for table column iteration
Marvin Scholz [Fri, 17 Aug 2018 22:45:12 +0000 (00:45 +0200)]
macosx: Use for-in for table column iteration

3 years agoopensles: kill warning about sign comparison
Zhao Zhili [Fri, 17 Aug 2018 03:13:17 +0000 (11:13 +0800)]
opensles: kill warning about sign comparison

Signed-off-by: Thomas Guillem <thomas@gllm.fr>
3 years agovout_wrapper: simplify the DrInit prototype
Steve Lhomme [Fri, 17 Aug 2018 07:08:50 +0000 (09:08 +0200)]
vout_wrapper: simplify the DrInit prototype

3 years agovlc_media_library.h: Start vlc_ml_parent_type from 1
Hugo Beauzée-Luyssen [Thu, 16 Aug 2018 13:38:59 +0000 (15:38 +0200)]
vlc_media_library.h: Start vlc_ml_parent_type from 1

3 years agovlc_media_library: Rename vlc_ml_get -> vlc_ml_instance_get
Hugo Beauzée-Luyssen [Mon, 13 Aug 2018 09:34:14 +0000 (11:34 +0200)]
vlc_media_library: Rename vlc_ml_get -> vlc_ml_instance_get

And drop _obj suffix for release function, so that medialibrary
entities are now fetched/released using vlc_ml_get & vlc_ml_release

3 years agovlc_media_library: Include vlc_common.h
Hugo Beauzée-Luyssen [Mon, 13 Aug 2018 09:13:09 +0000 (11:13 +0200)]
vlc_media_library: Include vlc_common.h

3 years agovlc_media_library: Reorder to group declarations
Hugo Beauzée-Luyssen [Mon, 13 Aug 2018 09:12:27 +0000 (11:12 +0200)]
vlc_media_library: Reorder to group declarations

- First structures & enum together
- Then public function declarations
- Then inline helpers

3 years agovlc_media_library: Don't swallow pf_control return values
Hugo Beauzée-Luyssen [Mon, 13 Aug 2018 09:07:20 +0000 (11:07 +0200)]
vlc_media_library: Don't swallow pf_control return values

3 years agomedialibrary: Store vlc_medialibrary_t as such instead of vlc_object_t
Hugo Beauzée-Luyssen [Thu, 2 Aug 2018 14:08:50 +0000 (16:08 +0200)]
medialibrary: Store vlc_medialibrary_t as such instead of vlc_object_t

3 years agocontribs: medialibrary: Bump hash & update according to API changes
Hugo Beauzée-Luyssen [Mon, 13 Aug 2018 13:54:14 +0000 (15:54 +0200)]
contribs: medialibrary: Bump hash & update according to API changes

3 years agopacketizer: hevc_nal: fix visiable size
Zhao Zhili [Thu, 16 Aug 2018 03:18:36 +0000 (11:18 +0800)]
packetizer: hevc_nal: fix visiable size

Signed-off-by: Francois Cartegnie <fcvlcdev@free.fr>
3 years agodemux: mp4: handle moof to mdat gap (fix #21028)
Francois Cartegnie [Thu, 16 Aug 2018 09:33:59 +0000 (11:33 +0200)]
demux: mp4: handle moof to mdat gap (fix #21028)

3 years agopacketizer: hevc: fix typo
Zhao Zhili [Fri, 10 Aug 2018 09:24:53 +0000 (17:24 +0800)]
packetizer: hevc: fix typo

Signed-off-by: Francois Cartegnie <fcvlcdev@free.fr>
3 years agoes_out: safer static_assert on the max amount of source stereo modes
Steve Lhomme [Wed, 15 Aug 2018 07:49:33 +0000 (09:49 +0200)]
es_out: safer static_assert on the max amount of source stereo modes

Thanks Filip.

3 years agoes_out: add multiview mode info in the ES description
Steve Lhomme [Tue, 14 Aug 2018 10:49:51 +0000 (12:49 +0200)]
es_out: add multiview mode info in the ES description

3 years agomux: avi: fix RGB muxing
Francois Cartegnie [Tue, 14 Aug 2018 12:28:01 +0000 (14:28 +0200)]
mux: avi: fix RGB muxing

3 years agomux: add BIH creation in helper
Francois Cartegnie [Mon, 13 Aug 2018 22:35:41 +0000 (00:35 +0200)]
mux: add BIH creation in helper

3 years agodemux: avi: split BIH handling
Francois Cartegnie [Mon, 13 Aug 2018 09:44:05 +0000 (11:44 +0200)]
demux: avi: split BIH handling

3 years agovout: remove the INIT control
Rémi Denis-Courmont [Mon, 13 Aug 2018 08:48:05 +0000 (11:48 +0300)]
vout: remove the INIT control

It was posted exactly once as the first control and never again. Instead,
this handles the event implicitly when the video output thread starts.

The control queue processing flag must now be initially set, so that the
first WaitEmpty() actually waits for the video output thread to
initialize and get ready to process events.

3 years agovout/osd: do not queue an event to queue an event
Rémi Denis-Courmont [Mon, 13 Aug 2018 12:54:12 +0000 (15:54 +0300)]
vout/osd: do not queue an event to queue an event

Generate the OSD title subpicture directly, and only then queue the
resulting SPU to the video output as an event.

3 years agovout: control SPU directly
Rémi Denis-Courmont [Mon, 13 Aug 2018 12:19:52 +0000 (15:19 +0300)]
vout: control SPU directly

Do not needlessly dispatch through the vout thread.

3 years agospu: use atomic variable for margin
Rémi Denis-Courmont [Mon, 13 Aug 2018 12:15:04 +0000 (15:15 +0300)]
spu: use atomic variable for margin

3 years agovout: change window state directly
Rémi Denis-Courmont [Mon, 13 Aug 2018 10:22:00 +0000 (13:22 +0300)]
vout: change window state directly

...rather than defer it to the video output thread.

3 years agovout: add mutex to protect the window
Rémi Denis-Courmont [Mon, 13 Aug 2018 10:09:20 +0000 (13:09 +0300)]
vout: add mutex to protect the window

3 years agovout: avoid assignment as expression
Rémi Denis-Courmont [Mon, 13 Aug 2018 16:18:30 +0000 (19:18 +0300)]
vout: avoid assignment as expression

3 years agodemux:mkv: map the StereoMode fields to VLC values
Steve Lhomme [Mon, 13 Aug 2018 09:47:12 +0000 (11:47 +0200)]
demux:mkv: map the StereoMode fields to VLC values

3 years agod3d11: add a function to release pixel shaders from a quad
Steve Lhomme [Mon, 13 Aug 2018 07:30:53 +0000 (09:30 +0200)]
d3d11: add a function to release pixel shaders from a quad

3 years agovout: move/inline ThreadInit()
Rémi Denis-Courmont [Sun, 12 Aug 2018 13:39:03 +0000 (16:39 +0300)]
vout: move/inline ThreadInit()

Move the concerned initialization from the vout thread into the existing
non-threaded initialization code.

3 years agovout: factor and inline ThreadClean() calls
Rémi Denis-Courmont [Sun, 12 Aug 2018 12:37:52 +0000 (15:37 +0300)]
vout: factor and inline ThreadClean() calls

3 years agokms: remove useless call
Rémi Denis-Courmont [Mon, 13 Aug 2018 08:30:04 +0000 (11:30 +0300)]
kms: remove useless call

3 years agokms: clean up
Juha-Pekka Heikkila [Fri, 10 Aug 2018 08:26:28 +0000 (11:26 +0300)]
kms: clean up

Address issues in KMS plugin pointed out by Steve Lhomme

Signed-off-by: Rémi Denis-Courmont <remi@remlab.net>
3 years agosrc: os2: fix mismatched arguments list
KO Myung-Hun [Tue, 7 Aug 2018 06:48:24 +0000 (15:48 +0900)]
src: os2: fix mismatched arguments list

Signed-off-by: Rémi Denis-Courmont <remi@remlab.net>
3 years agoaccess: dshow: set proper RGB masks
Francois Cartegnie [Sun, 12 Aug 2018 15:43:17 +0000 (17:43 +0200)]
access: dshow: set proper RGB masks

3 years agoRevert "DShow: fix RGB24 Colouring" (fix #21005)
Francois Cartegnie [Sun, 12 Aug 2018 15:13:18 +0000 (17:13 +0200)]
Revert "DShow: fix RGB24 Colouring" (fix #21005)

fix mentions documentation which says that's... BGR

This reverts commit 1ed99377d07a6f48e0c01d81fd00691c92570be0.

3 years agotest: bits: fail with exit code instead of assert
Francois Cartegnie [Fri, 10 Aug 2018 08:55:56 +0000 (10:55 +0200)]
test: bits: fail with exit code instead of assert

4 years agod3d11_shader: fix AYUV sampling coordinates
Steve Lhomme [Fri, 10 Aug 2018 13:49:34 +0000 (15:49 +0200)]
d3d11_shader: fix AYUV sampling coordinates

4 years agod3d11_quad: misc function cleaning
Steve Lhomme [Fri, 10 Aug 2018 12:07:45 +0000 (14:07 +0200)]
d3d11_quad: misc function cleaning

4 years agodirect3d11: split some functions to do the render target clean before displaying
Steve Lhomme [Fri, 10 Aug 2018 11:44:17 +0000 (13:44 +0200)]
direct3d11: split some functions to do the render target clean before displaying

4 years agod3d11_quad: add macros to simplify the width/height handling
Steve Lhomme [Tue, 7 Aug 2018 08:10:47 +0000 (10:10 +0200)]
d3d11_quad: add macros to simplify the width/height handling

4 years agovout: android: allow force select android-opaque
Zhao Zhili [Fri, 10 Aug 2018 02:45:00 +0000 (10:45 +0800)]
vout: android: allow force select android-opaque

This allows the following use case: the user of libvlc do render itself with
OpenGLES and interoperate with libvlc via SurfaceTexture, just as what VLC
gles2 module does.

Signed-off-by: Thomas Guillem <thomas@gllm.fr>
4 years agoaccess: live555: fix off by one
Francois Cartegnie [Thu, 9 Aug 2018 20:08:56 +0000 (22:08 +0200)]
access: live555: fix off by one

4 years agoRevert "picture: copy more than the visible lines"
Steve Lhomme [Thu, 9 Aug 2018 14:19:20 +0000 (16:19 +0200)]
Revert "picture: copy more than the visible lines"

This reverts commit 4594dedf117e40a1ba783ef55df995e12ea8e5fe.

This is the wrong way to do it. And breaks other things like magnify.
Either the visible area should account for the x/y offsets or there should be
and offset stored per plane.

We also need to decide in a picture copy copies only the visible area (and not
event the part in the x/y offset) or some of the decoder/crop padding too. The
current code leans towards the latter but still copies too much.

4 years agovlc_arrays: add ARRAY_FIND()
Romain Vimont [Wed, 18 Jul 2018 13:51:56 +0000 (15:51 +0200)]
vlc_arrays: add ARRAY_FIND()

TAB_FIND() was implemented, but not ARRAY_FIND(). It may be useful.

Signed-off-by: Thomas Guillem <thomas@gllm.fr>
4 years agovlc_arrays: add unit tests
Romain Vimont [Wed, 18 Jul 2018 13:51:55 +0000 (15:51 +0200)]
vlc_arrays: add unit tests

Add some tests for ARRAY_* macros.

Signed-off-by: Thomas Guillem <thomas@gllm.fr>
4 years agochroma: cvpx: fix possible buffer overflow
Thomas Guillem [Thu, 9 Aug 2018 11:30:13 +0000 (13:30 +0200)]
chroma: cvpx: fix possible buffer overflow

cf. https://code.videolan.org/videolan/vlc-ios/issues/261

A lot of crashes happen when doing the CVPX HW -> SW conversion. Unfortunately,
I was unable to reproduce it.

My best guess is that this buffer overflow is caused by the i_visible_height
that is too big.  This value should be correct since it comes from the hxxx
packetizer, but it may be different from the actual height of the cvpx buffer.

4 years agoci_filters: fix null-deref
Thomas Guillem [Thu, 9 Aug 2018 09:54:34 +0000 (11:54 +0200)]
ci_filters: fix null-deref

regression from 4c8b741e4844a80fb824caccd9606259d5958aa0

4 years agod3d11va: Remove tabs
Hugo Beauzée-Luyssen [Thu, 9 Aug 2018 07:58:40 +0000 (09:58 +0200)]
d3d11va: Remove tabs

4 years agodxva2: Fix memory leak on error
Hugo Beauzée-Luyssen [Thu, 9 Aug 2018 07:58:23 +0000 (09:58 +0200)]
dxva2: Fix memory leak on error

4 years agod3d11va: Fix memory leak on error
Hugo Beauzée-Luyssen [Thu, 9 Aug 2018 07:57:56 +0000 (09:57 +0200)]
d3d11va: Fix memory leak on error

4 years agomacosx: Fix model rebuilding after drop operation
David Fuhrmann [Wed, 8 Aug 2018 21:02:31 +0000 (23:02 +0200)]
macosx: Fix model rebuilding after drop operation

The old code does not take into account the index shifts if
dragging an item down the list.
Easy fix is to reload the whole model for now.

4 years agoQt: Fix tooltip position
Olivier Fourdan [Tue, 31 Jul 2018 08:55:45 +0000 (10:55 +0200)]
Qt: Fix tooltip position

commit 5815534 ("qt: make the time tooltip a tooltip") reintroduced the
bug fixed by previous commit ea99237 ("remove X11BypassWindowManagerHint
from time tooltip") meant to fix #17829.

The tooltip window is a shaped, override-redirect window which shows
when the pointer enters the slider and disappears when it leaves the
slider.

By placing the tooltip window too low, above the slider, vlc causes a
constant map/unmap of that window which will flood Xwayland and the
Wayland compositori.window manager and can up with a deadlock situation.

When the tooltip window is showing, the pointer will enter the tooltip
window and thus leave the slider, which will cause the tooltip to be
unmapped, which in turn causes the pointer to re-enter the slider area,
which will cause the tooltip to show again, so on and so forth.

On Wayland/Xwayland where the Wayland compositor (i.e. the display
server) is also the window manager, that can lead to a deadlock
situation because some X11 requests are blocking on rountrips to the
Xserver, which in the case of Xwayland is also a Wayland client, waiting
on the Wayland compositor for some operations, the Wayland compositor
being also a Window manager and an X11 client at the same time...

Avoid the issue by placing the tooltip so that it does not show up at
the same location where the slider is, without overlap, to avoid that
map/unmap requests storm.

Closes: https://gitlab.gnome.org/GNOME/mutter/issues/244
Signed-off-by: Olivier Fourdan <ofourdan@redhat.com>
Signed-off-by: Hugo Beauzée-Luyssen <hugo@beauzee.fr>
4 years agocodec: vpx: do proper color mapping
Francois Cartegnie [Wed, 8 Aug 2018 15:26:32 +0000 (17:26 +0200)]
codec: vpx: do proper color mapping

4 years agocodec: aom: do proper color mapping
Francois Cartegnie [Wed, 8 Aug 2018 14:54:12 +0000 (16:54 +0200)]
codec: aom: do proper color mapping

4 years agopacketizer: mpegvideo: simplify color setup
Francois Cartegnie [Wed, 8 Aug 2018 12:31:20 +0000 (14:31 +0200)]
packetizer: mpegvideo: simplify color setup

4 years agopackatizer: move color lookup tables for refactoring
Francois Cartegnie [Wed, 8 Aug 2018 12:25:28 +0000 (14:25 +0200)]
packatizer: move color lookup tables for refactoring

4 years agogstdecode: add a switch to toggle direct rendering
Vikram Fugro [Tue, 24 Jul 2018 14:36:12 +0000 (20:06 +0530)]
gstdecode: add a switch to toggle direct rendering

Currently, due to few changes in the gstreamer's buffer
handling, the direct-rendering (i.e gstreamer decoders
decoding directly into the downstream VLC provided buffers)
is unstable.

Hence, added a switch to toggle direct-rendering and is disabled
by default. Works fine otherwise (i.e non direct-rendering)

Signed-off-by: Thomas Guillem <thomas@gllm.fr>
4 years agomediacodec: fix rotation handling
Zhao Zhili [Tue, 7 Aug 2018 04:47:02 +0000 (12:47 +0800)]
mediacodec: fix rotation handling

Signed-off-by: Thomas Guillem <thomas@gllm.fr>
4 years agomediacodec: fix check on csd i_count
Zhao Zhili [Thu, 2 Aug 2018 08:53:19 +0000 (16:53 +0800)]
mediacodec: fix check on csd i_count

Signed-off-by: Thomas Guillem <thomas@gllm.fr>
4 years agodemux: adaptive: move lock to non buffered chunk
Francois Cartegnie [Wed, 8 Aug 2018 11:42:05 +0000 (13:42 +0200)]
demux: adaptive: move lock to non buffered chunk

4 years agodemux: adaptive: remove debug leftoff
Francois Cartegnie [Wed, 8 Aug 2018 11:39:08 +0000 (13:39 +0200)]
demux: adaptive: remove debug leftoff

4 years agodemux: adaptive: check connection for content-type
Francois Cartegnie [Wed, 8 Aug 2018 11:33:15 +0000 (13:33 +0200)]
demux: adaptive: check connection for content-type

4 years agodemux: es: add support for RE4 CCTV recordings
Francois Cartegnie [Wed, 8 Aug 2018 10:26:04 +0000 (12:26 +0200)]
demux: es: add support for RE4 CCTV recordings

4 years agodemux: es: change m4v demux priority
Francois Cartegnie [Wed, 8 Aug 2018 10:25:21 +0000 (12:25 +0200)]
demux: es: change m4v demux priority

changes nothing since that's .m4v forced or rejected

4 years agodemux: mpgv: improve probing
Francois Cartegnie [Wed, 8 Aug 2018 09:35:23 +0000 (11:35 +0200)]
demux: mpgv: improve probing

need to reject mpeg4 sequences

4 years agopacketizer: mpeg4video: remove unused members
Francois Cartegnie [Wed, 8 Aug 2018 08:44:09 +0000 (10:44 +0200)]
packetizer: mpeg4video: remove unused members

4 years agopacketizer: mpeg4video: workaround missing modulo_time_base
Francois Cartegnie [Tue, 7 Aug 2018 18:13:00 +0000 (20:13 +0200)]
packetizer: mpeg4video: workaround missing modulo_time_base

4 years agopacketizer: mpeg4video: update debug code
Francois Cartegnie [Tue, 7 Aug 2018 12:05:50 +0000 (14:05 +0200)]
packetizer: mpeg4video: update debug code

4 years agoqtsound: Fix configure detection and build
David Fuhrmann [Tue, 7 Aug 2018 22:01:39 +0000 (00:01 +0200)]
qtsound: Fix configure detection and build

QTKit header includes objc header files, therefore the configure
check must be done with an objc file. Also, fix build of qtsound
module.

4 years agocontribs: dvbpsi: fix duplicate pkt fake positives
Francois Cartegnie [Tue, 7 Aug 2018 15:46:58 +0000 (17:46 +0200)]
contribs: dvbpsi: fix duplicate pkt fake positives

4 years agod3d11va: make the OS detection not dependent on the app manifest
Steve Lhomme [Tue, 7 Aug 2018 12:18:04 +0000 (14:18 +0200)]
d3d11va: make the OS detection not dependent on the app manifest

hopefully the location won't change in future Windows versions

4 years agod3d11: test if a texture format can be used before deciding to use it
Steve Lhomme [Tue, 7 Aug 2018 11:16:48 +0000 (13:16 +0200)]
d3d11: test if a texture format can be used before deciding to use it

Some formats are not handled properly by drivers and so we should fallback
to working ones when looking for a display format.

Ref #19162
Ref #20681 (work around the conversion issue which I can't reproduce)

4 years agod3d11_fmt: pass an object and a d3d11_device_t to FindD3D11Format()
Steve Lhomme [Tue, 7 Aug 2018 11:17:40 +0000 (13:17 +0200)]
d3d11_fmt: pass an object and a d3d11_device_t to FindD3D11Format()

So we can test for more errors and log them.

4 years agod3d11_quad: fix support for rendering for some basic DXGI_FORMAT types
Steve Lhomme [Tue, 7 Aug 2018 11:14:35 +0000 (13:14 +0200)]
d3d11_quad: fix support for rendering for some basic DXGI_FORMAT types

If they are mentioned in dxgi_fmt they also have to be here (except for
DXGI_FORMAT_420_OPAQUE).

Ref #20681

4 years agodemux: avi: workaround broken RGB in Compression usage (fix #20475)
Francois Cartegnie [Tue, 7 Aug 2018 09:09:58 +0000 (11:09 +0200)]
demux: avi: workaround broken RGB in Compression usage (fix #20475)

refs broken_RV24_as_Compression.avi.bz2

4 years agoglwin32: don't activate on XP
Jean-Baptiste Kempf [Tue, 7 Aug 2018 07:46:20 +0000 (09:46 +0200)]
glwin32: don't activate on XP

Close #20580

4 years agotools: pick the right/available tool to do the sha512sum check
Steve Lhomme [Fri, 20 Jul 2018 07:05:24 +0000 (09:05 +0200)]
tools: pick the right/available tool to do the sha512sum check

shasum is not available on the latest msys2
these are the same tools in the same order as the contribs

4 years agodemux: dash: remove unused representation members
Francois Cartegnie [Mon, 6 Aug 2018 20:15:30 +0000 (22:15 +0200)]
demux: dash: remove unused representation members

4 years agod3d11_shaders: fix bogus error returned when the shader compilation fails
Steve Lhomme [Mon, 6 Aug 2018 11:10:23 +0000 (13:10 +0200)]
d3d11_shaders: fix bogus error returned when the shader compilation fails