platform/upstream/gstreamer.git
6 years agodecklink: Use g_thread_new instead of g_thread_create
Nirbheek Chauhan [Tue, 27 Mar 2018 07:17:13 +0000 (12:47 +0530)]
decklink: Use g_thread_new instead of g_thread_create

It's deprecated, and causes a build failure in Cerbero because we pass
-DG_DISABLE_DEPRECATED.

6 years agodecklink: fix initialization fails in windows binary
Takeshi Sato [Tue, 27 Mar 2018 03:24:30 +0000 (12:24 +0900)]
decklink: fix initialization fails in windows binary

There is no log of gst_decklink_com_thread () which initializes COM.
The initialization part is not valid with #ifdef MSC_VER.
Windows binaries are built with gcc.
As with other codes, it was avoidable by setting it to G_OS_WIN32
instead of MSC_VER.

https://bugzilla.gnome.org/show_bug.cgi?id=794652

6 years agowasapi: Print the hresult hex value on error
Nirbheek Chauhan [Sun, 25 Mar 2018 12:38:58 +0000 (18:08 +0530)]
wasapi: Print the hresult hex value on error

This helps figure out precisely what error enum value was returned,
which can be necessary when the description is too generic

6 years agoladspa: Fix critical during plugin load on Windows
Nirbheek Chauhan [Fri, 23 Mar 2018 03:45:38 +0000 (09:15 +0530)]
ladspa: Fix critical during plugin load on Windows

https://bugzilla.gnome.org/show_bug.cgi?id=794611

6 years agox265enc: no //-style comments
Tim-Philipp Müller [Mon, 26 Mar 2018 18:52:50 +0000 (19:52 +0100)]
x265enc: no //-style comments

6 years agox265enc: Add "key-int-max" property
James Stevenson [Fri, 23 Mar 2018 14:14:12 +0000 (14:14 +0000)]
x265enc: Add "key-int-max" property

https://bugzilla.gnome.org/show_bug.cgi?id=794623

6 years agogl: Rename gstglutils.h functions to prevent symbol conflicts with static linking
Sebastian Dröge [Sun, 25 Mar 2018 09:53:06 +0000 (12:53 +0300)]
gl: Rename gstglutils.h functions to prevent symbol conflicts with static linking

The gl plugin in -base has the same function.

6 years agoopus: Rename opusheader functions to prevent symbol conflicts with static linking
Sebastian Dröge [Sun, 25 Mar 2018 09:52:32 +0000 (12:52 +0300)]
opus: Rename opusheader functions to prevent symbol conflicts with static linking

The opus plugin in -base has the same functions.

6 years agox265: Fix tagging of keyframes on output buffers
James Stevenson [Fri, 23 Mar 2018 13:42:05 +0000 (13:42 +0000)]
x265: Fix tagging of keyframes on output buffers

https://bugzilla.gnome.org/show_bug.cgi?id=794620

6 years agomeson: webrtc: use gnome.mkenums_simple() to generate enumtypes files
Tim-Philipp Müller [Thu, 22 Mar 2018 14:07:53 +0000 (14:07 +0000)]
meson: webrtc: use gnome.mkenums_simple() to generate enumtypes files

6 years agowebrtc: use right export define in generated enumtypes file
Tim-Philipp Müller [Thu, 22 Mar 2018 13:43:52 +0000 (13:43 +0000)]
webrtc: use right export define in generated enumtypes file

6 years agowebrtc: fix g-ir-scanner complaining about unstable API
Tim-Philipp Müller [Thu, 22 Mar 2018 13:42:31 +0000 (13:42 +0000)]
webrtc: fix g-ir-scanner complaining about unstable API

6 years agomeson: use gnome.mkenums_simple() to generate enumtypes files
Alessandro Decina [Thu, 20 Jul 2017 07:47:55 +0000 (17:47 +1000)]
meson: use gnome.mkenums_simple() to generate enumtypes files

Means we no longer need our custom scripts, nor template files.

6 years agopkgconfig: remove some cruft
Tim-Philipp Müller [Thu, 22 Mar 2018 10:35:25 +0000 (10:35 +0000)]
pkgconfig: remove some cruft

gl has moved to -base, remove leftover files.

6 years agomeson: fix ladspa dependencies
Patrik Nilsson [Mon, 5 Mar 2018 16:43:26 +0000 (17:43 +0100)]
meson: fix ladspa dependencies

There are two issues, both related to dependency checking with the meson
support for the ladspa plugin.

With autotools, lrdf is handled like an optional dependency. But with
meson it is required. This makes the meson support less flexible and
inconsistent with autotools.

When autotools is used it properly checks if ladspa.h is available.
But with meson it does not, instead it treats lrdf as the main
dependency. This could cause a build failure if lrdf is installed, but
the ladspa sdk is not.

https://bugzilla.gnome.org/show_bug.cgi?id=794350

6 years agomeson: enable bs2b compilation
Patrik Nilsson [Mon, 5 Mar 2018 17:23:09 +0000 (18:23 +0100)]
meson: enable bs2b compilation

Add meson build system support to bs2b plugin.

https://bugzilla.gnome.org/show_bug.cgi?id=794346

6 years agompegtsmux: Explicitly resend PAT/SI/PMT on force-keyunit events
Sebastian Dröge [Wed, 21 Mar 2018 11:42:30 +0000 (13:42 +0200)]
mpegtsmux: Explicitly resend PAT/SI/PMT on force-keyunit events

And don't randomly change the PCR stream, which would cause a new PMT
version to be generated instead and could confuse players.

6 years agompegtsmux: Deterministically set the PCR stream to the first stream of the program
Sebastian Dröge [Wed, 21 Mar 2018 11:34:17 +0000 (13:34 +0200)]
mpegtsmux: Deterministically set the PCR stream to the first stream of the program

Otherwise it would be randomly set to the first stream of the program
that receives a buffer.

6 years agompegtsmux: Reset a few more fields in mpegtsmux_reset() to their original values
Sebastian Dröge [Wed, 21 Mar 2018 09:05:23 +0000 (11:05 +0200)]
mpegtsmux: Reset a few more fields in mpegtsmux_reset() to their original values

6 years agotsmux: Don't use GST_DEBUG_OBJECT() with non-GObject types
Sebastian Dröge [Wed, 21 Mar 2018 08:59:29 +0000 (10:59 +0200)]
tsmux: Don't use GST_DEBUG_OBJECT() with non-GObject types

6 years agoh264parse: reset internal 'state' variable properly
Brendan Shanks [Tue, 20 Mar 2018 18:49:19 +0000 (11:49 -0700)]
h264parse: reset internal 'state' variable properly

Reset the internal 'state' variable when the parser is started, fixes
errors when parser is being re-used.

https://bugzilla.gnome.org/show_bug.cgi?id=794537

6 years agoshmsink: Fix compilation with latest GLib
Sebastian Dröge [Tue, 20 Mar 2018 14:16:19 +0000 (16:16 +0200)]
shmsink: Fix compilation with latest GLib

g_object_ref() forwards its arguments type.

gstshmsink.c: In function ‘gst_shm_sink_allocator_alloc_locked’:
/usr/include/glib-2.0/gobject/gobject.h:512:32: error: passing argument 3 of ‘gst_memory_init’ from incompatible pointer type [-Werror=incompatible-pointer-types]
 #define g_object_ref(Obj)      ((__typeof__(Obj)) (g_object_ref) (Obj))
                                ^
gstshmsink.c:292:45: note: in expansion of macro ‘g_object_ref’
     gst_memory_init (memory, params->flags, g_object_ref (self), NULL,
                                             ^~~~~~~~~~~~

6 years agoBack to development
Tim-Philipp Müller [Tue, 20 Mar 2018 09:39:17 +0000 (09:39 +0000)]
Back to development

6 years agoRelease 1.14.0
Tim-Philipp Müller [Mon, 19 Mar 2018 20:24:05 +0000 (20:24 +0000)]
Release 1.14.0

6 years agoUpdate docs
Tim-Philipp Müller [Mon, 19 Mar 2018 20:24:05 +0000 (20:24 +0000)]
Update docs

6 years agowasapi: try to satisfy both mingw and msvc
Tim-Philipp Müller [Sun, 18 Mar 2018 14:11:53 +0000 (14:11 +0000)]
wasapi: try to satisfy both mingw and msvc

Fix-up for previous commit, hopefully.

6 years agokmssink: Add Amlogic upstreamer DRM driver support
Nicolas Dufresne [Sun, 18 Mar 2018 13:50:51 +0000 (09:50 -0400)]
kmssink: Add Amlogic upstreamer DRM driver support

Amlogic Upstream driver is named meson, not to be confuse with the build
system.

6 years agowasapi: fix indentation
Tim-Philipp Müller [Sat, 17 Mar 2018 23:52:31 +0000 (23:52 +0000)]
wasapi: fix indentation

6 years agowasapi: fix unresolved symbol linker error with vs2017 on win10
Tim-Philipp Müller [Sat, 17 Mar 2018 23:48:13 +0000 (23:48 +0000)]
wasapi: fix unresolved symbol linker error with vs2017 on win10

ERROR: unresolved external symbol PKEY_AudioEngine_DeviceFormat

Apparently the order of the header includes matters, and initguid.h
must be included first. Let's hope this doesn't break anything on
the other toolchains.

https://social.msdn.microsoft.com/Forums/windowsdesktop/en-US/ceff4e2d-8f63-4ab6-b09b-fdac65d62a80/pkeyaudioenginedeviceformat-link-error?forum=windowspro-audiodevelopment

6 years agowebrtc: Fix make distcheck for g-i build
Sebastian Dröge [Fri, 16 Mar 2018 17:21:31 +0000 (19:21 +0200)]
webrtc: Fix make distcheck for g-i build

ERROR: ../../../../../gst-libs/gst/webrtc/webrtc-enumtypes.c: no such a file or directory

6 years agowebrtc: Include webrtc-enumtypes in the g-i build
Sebastian Dröge [Fri, 16 Mar 2018 15:00:56 +0000 (17:00 +0200)]
webrtc: Include webrtc-enumtypes in the g-i build

6 years agowebrtcbin: Remove parameter from gst_webrtc_rtp_sender_new()
Sebastian Dröge [Fri, 16 Mar 2018 09:07:01 +0000 (11:07 +0200)]
webrtcbin: Remove parameter from gst_webrtc_rtp_sender_new()

6 years agowebrtc: Remove unused parameter from rtpsender constructor
Sebastian Dröge [Thu, 15 Mar 2018 15:32:24 +0000 (17:32 +0200)]
webrtc: Remove unused parameter from rtpsender constructor

https://bugzilla.gnome.org/show_bug.cgi?id=794363

6 years agowebrtc: Add some locks to setters and remove non-existing functions from headers
Sebastian Dröge [Thu, 15 Mar 2018 15:31:50 +0000 (17:31 +0200)]
webrtc: Add some locks to setters and remove non-existing functions from headers

https://bugzilla.gnome.org/show_bug.cgi?id=794363

6 years agowebrtc: Rename GstWebRTCIceRole to GstWebRTCICERole for consistency
Sebastian Dröge [Thu, 15 Mar 2018 14:58:40 +0000 (16:58 +0200)]
webrtc: Rename GstWebRTCIceRole to GstWebRTCICERole for consistency

Everything else is ICE, not Ice.

https://bugzilla.gnome.org/show_bug.cgi?id=794362

6 years agowebrtc: Fix gobject-introspection build with meson
Sebastian Dröge [Thu, 15 Mar 2018 14:45:46 +0000 (16:45 +0200)]
webrtc: Fix gobject-introspection build with meson

6 years agowebrtc: Add gobject-introspection integration
Sebastian Dröge [Thu, 15 Mar 2018 10:04:00 +0000 (12:04 +0200)]
webrtc: Add gobject-introspection integration

https://bugzilla.gnome.org/show_bug.cgi?id=794347

6 years agosrt: Add missing gstsrt.h to noinst_HEADERS
Jan Alexander Steffens (heftig) [Wed, 14 Mar 2018 10:42:42 +0000 (11:42 +0100)]
srt: Add missing gstsrt.h to noinst_HEADERS

Reorder the list to match the SOURCES.

https://bugzilla.gnome.org/show_bug.cgi?id=794320

6 years agomsdk: libva: remove unnecessary code and comments
Hyunjun Ko [Tue, 13 Mar 2018 22:21:40 +0000 (14:21 -0800)]
msdk: libva: remove unnecessary code and comments

https://bugzilla.gnome.org/show_bug.cgi?id=794276

6 years agomsdk: adds new debug category
Hyunjun Ko [Tue, 13 Mar 2018 22:20:50 +0000 (14:20 -0800)]
msdk: adds new debug category

https://bugzilla.gnome.org/show_bug.cgi?id=794276

6 years agomsdk: fix typo
Hyunjun Ko [Tue, 13 Mar 2018 22:18:23 +0000 (14:18 -0800)]
msdk: fix typo

https://bugzilla.gnome.org/show_bug.cgi?id=794276

6 years agomsdk: Fix the I420 video format support
Wang,Fei [Tue, 13 Mar 2018 21:54:17 +0000 (13:54 -0800)]
msdk: Fix the I420 video format support

Make sure I420 surface mapping works as expected by using
YV12 format and swap U/V plane's offset and pitches.

https://bugzilla.gnome.org/show_bug.cgi?id=793865

6 years agoRelease 1.13.91
Tim-Philipp Müller [Tue, 13 Mar 2018 19:22:10 +0000 (19:22 +0000)]
Release 1.13.91

6 years agoUpdate docs
Tim-Philipp Müller [Tue, 13 Mar 2018 19:22:10 +0000 (19:22 +0000)]
Update docs

6 years agodocs: update api decorators to ignore
Tim-Philipp Müller [Tue, 13 Mar 2018 13:14:58 +0000 (13:14 +0000)]
docs: update api decorators to ignore

6 years agowebrtc: GST_EXPORT -> GST_WEBRTC_API
Tim-Philipp Müller [Tue, 13 Mar 2018 13:11:17 +0000 (13:11 +0000)]
webrtc: GST_EXPORT -> GST_WEBRTC_API

We need different export decorators for the different libs.
For now no actual change though, just rename before the release,
and add prelude headers to define the new decorator to GST_EXPORT.

6 years agowayland: GST_EXPORT -> GST_WAYLAND_API
Tim-Philipp Müller [Tue, 13 Mar 2018 13:09:28 +0000 (13:09 +0000)]
wayland: GST_EXPORT -> GST_WAYLAND_API

We need different export decorators for the different libs.
For now no actual change though, just rename before the release,
and add prelude headers to define the new decorator to GST_EXPORT.

6 years agovideo: GST_EXPORT -> GST_URI_VIDEO_BAD_API
Tim-Philipp Müller [Tue, 13 Mar 2018 13:07:52 +0000 (13:07 +0000)]
video: GST_EXPORT -> GST_URI_VIDEO_BAD_API

We need different export decorators for the different libs.
For now no actual change though, just rename before the release,
and add prelude headers to define the new decorator to GST_EXPORT.

6 years agouridownloader: GST_EXPORT -> GST_URI_DOWNLOADER_API
Tim-Philipp Müller [Tue, 13 Mar 2018 13:05:45 +0000 (13:05 +0000)]
uridownloader: GST_EXPORT -> GST_URI_DOWNLOADER_API

We need different export decorators for the different libs.
For now no actual change though, just rename before the release,
and add prelude headers to define the new decorator to GST_EXPORT.

6 years agoplayer: GST_EXPORT -> GST_PLAYER_API
Tim-Philipp Müller [Tue, 13 Mar 2018 13:02:54 +0000 (13:02 +0000)]
player: GST_EXPORT -> GST_PLAYER_API

We need different export decorators for the different libs.
For now no actual change though, just rename before the release,
and add prelude headers to define the new decorator to GST_EXPORT.

6 years agoopencv: GST_EXPORT -> GST_OPENCV_API
Tim-Philipp Müller [Tue, 13 Mar 2018 12:57:56 +0000 (12:57 +0000)]
opencv: GST_EXPORT -> GST_OPENCV_API

We need different export decorators for the different libs.
For now no actual change though, just rename before the release,
and add prelude headers to define the new decorator to GST_EXPORT.

6 years agompegts: GST_EXPORT -> GST_MPEGTS_API
Tim-Philipp Müller [Tue, 13 Mar 2018 12:47:03 +0000 (12:47 +0000)]
mpegts: GST_EXPORT -> GST_MPEGTS_API

We need different export decorators for the different libs.
For now no actual change though, just rename before the release,
and add prelude headers to define the new decorator to GST_EXPORT.

6 years agoisoff: GST_EXPORT -> GST_ISOFF_API
Tim-Philipp Müller [Tue, 13 Mar 2018 12:43:00 +0000 (12:43 +0000)]
isoff: GST_EXPORT -> GST_ISOFF_API

We need different export decorators for the different libs.
For now no actual change though, just rename before the release,
and add prelude headers to define the new decorator to GST_EXPORT.

6 years agophotography: GST_EXPORT -> GST_PHOTOGRAPHY_API
Tim-Philipp Müller [Tue, 13 Mar 2018 12:41:42 +0000 (12:41 +0000)]
photography: GST_EXPORT -> GST_PHOTOGRAPHY_API

We need different export decorators for the different libs.
For now no actual change though, just rename before the release,
and add prelude headers to define the new decorator to GST_EXPORT.

6 years agoinsertbin: GST_EXPORT -> GST_INSERT_BIN_API
Tim-Philipp Müller [Tue, 13 Mar 2018 12:36:26 +0000 (12:36 +0000)]
insertbin: GST_EXPORT -> GST_INSERT_BIN_API

We need different export decorators for the different libs.
For now no actual change though, just rename before the release,
and add prelude headers to define the new decorator to GST_EXPORT.

6 years agocodecparsers: GST_EXPORT -> GST_CODEC_PARSERS_API
Tim-Philipp Müller [Tue, 13 Mar 2018 12:34:24 +0000 (12:34 +0000)]
codecparsers: GST_EXPORT -> GST_CODEC_PARSERS_API

We need different export decorators for the different libs.
For now no actual change though, just rename before the release,
and add prelude headers to define the new decorator to GST_EXPORT.

6 years agobasecamerabinsrc: GST_EXPORT -> GST_BASE_CAMERA_BIN_SRC_API
Tim-Philipp Müller [Tue, 13 Mar 2018 12:29:08 +0000 (12:29 +0000)]
basecamerabinsrc: GST_EXPORT -> GST_BASE_CAMERA_BIN_SRC_API

We need different export decorators for the different libs.
For now no actual change though, just rename before the release,
and add prelude headers to define the new decorator to GST_EXPORT.

6 years agoaudio: GST_EXPORT -> GST_AUDIO_BAD_API
Tim-Philipp Müller [Tue, 13 Mar 2018 12:21:39 +0000 (12:21 +0000)]
audio: GST_EXPORT -> GST_AUDIO_BAD_API

We need different export decorators for the different libs.
For now no actual change though, just rename before the release,
and add prelude headers to define the new decorator to GST_EXPORT.

6 years agoadaptivedemux: GST_EXPORT -> GST_ADAPTIVE_DEMUX_API
Tim-Philipp Müller [Tue, 13 Mar 2018 12:17:50 +0000 (12:17 +0000)]
adaptivedemux: GST_EXPORT -> GST_ADAPTIVE_DEMUX_API

We need different export decorators for the different libs.
For now no actual change though, just rename before the release,
and add prelude headers to define the new decorator to GST_EXPORT.

6 years agodocs: plugins: add some more elements and plugins
Tim-Philipp Müller [Mon, 12 Mar 2018 20:10:02 +0000 (20:10 +0000)]
docs: plugins: add some more elements and plugins

6 years agowasapi: Minor fixes for debug logging
Nirbheek Chauhan [Sat, 10 Mar 2018 13:21:14 +0000 (18:51 +0530)]
wasapi: Minor fixes for debug logging

6 years agomeson: Add deviceprovider changes to directsoundsrc
Nirbheek Chauhan [Sat, 10 Mar 2018 13:19:59 +0000 (18:49 +0530)]
meson: Add deviceprovider changes to directsoundsrc

These were missed when they were added to Makefile.am

6 years agowasapi: Guard IAudioClient2 structs and enums
Nirbheek Chauhan [Fri, 9 Mar 2018 16:35:49 +0000 (22:05 +0530)]
wasapi: Guard IAudioClient2 structs and enums

These are already defined in the audioclient.h provided by the latest
MinGW headers, and the existing #ifndef were obviously wrong.

https://bugzilla.gnome.org/show_bug.cgi?id=794197

6 years agodocs: add wasapi elements
Tim-Philipp Müller [Sat, 10 Mar 2018 11:41:54 +0000 (11:41 +0000)]
docs: add wasapi elements

6 years agomeson: fix build when msdk is not found
Tim-Philipp Müller [Fri, 9 Mar 2018 23:59:16 +0000 (23:59 +0000)]
meson: fix build when msdk is not found

6 years agotests: add msdkh264enc element unit test
Wang,Fei [Fri, 9 Mar 2018 19:48:11 +0000 (10:48 -0900)]
tests: add msdkh264enc element unit test

https://bugzilla.gnome.org/show_bug.cgi?id=793236

6 years agomsdk: Fix the misspelled file name in meson build
Sreerenj Balachandran [Fri, 9 Mar 2018 19:32:40 +0000 (10:32 -0900)]
msdk: Fix the misspelled file name in meson build

6 years agowasapi: ship audioclient3 header in tarballs
Emilio Pozuelo Monfort [Fri, 9 Mar 2018 10:11:40 +0000 (11:11 +0100)]
wasapi: ship audioclient3 header in tarballs

https://bugzilla.gnome.org/show_bug.cgi?id=794197

6 years agomsdk: enc: fix missing some frames to be encoded
Hyunjun Ko [Thu, 8 Mar 2018 20:39:25 +0000 (11:39 -0900)]
msdk: enc: fix missing some frames to be encoded

There was not handling the end of encoding sequence in encoder.
This patch does drain any remaining internal streams while decoder
already does this.

Document says:
"To mark the end of the encoding sequence, call this function with a
NULL surface
pointer. Repeat the call to drain any remaining internally cached
bitstreams—one
frame at a time—until MFX_ERR_MORE_DATA is returned."

https://bugzilla.gnome.org/show_bug.cgi?id=793236

6 years agomsdk: dec: fix leaks when flushing
Hyunjun Ko [Thu, 8 Mar 2018 20:38:52 +0000 (11:38 -0900)]
msdk: dec: fix leaks when flushing

https://bugzilla.gnome.org/show_bug.cgi?id=793708

6 years agomsdk: manage child sessions on parent GstMsdkContext
Hyunjun Ko [Thu, 8 Mar 2018 20:38:30 +0000 (11:38 -0900)]
msdk: manage child sessions on parent GstMsdkContext

Sometimes parent context is released before its children get released.
In this case MFXClose of parent session fails.

To make sure that child sessions are closed before closing a parent
session,
Parent context needs to manage child sessions and close them first when
it's released.

https://bugzilla.gnome.org/show_bug.cgi?id=793412

6 years agomsdk: dec: remove code to manage buffers with locked surface
Hyunjun Ko [Thu, 8 Mar 2018 20:37:52 +0000 (11:37 -0900)]
msdk: dec: remove code to manage buffers with locked surface

https://bugzilla.gnome.org/show_bug.cgi?id=793413

6 years agomsdk: manage MSDK surfaces seperately
Hyunjun Ko [Thu, 8 Mar 2018 20:37:12 +0000 (11:37 -0900)]
msdk: manage MSDK surfaces seperately

Currently a gst buffer has one mfxFrameSurface when it's allocated and
can't be changed.
This is based on that the life of gst buffer and mfxFrameSurface would
be same.
But it's not true. Sometimes even if a gst buffer of a frame is finished
on downstream,
mfxFramesurface coupled with the gst buffer is still locked, which means
it's still being used in the driver.

So this patch does this.
Every time a gst buffer is acquired from the pool, it confirms if the
surface coupled with the buffer is unlocked.
If not, replace it with new unlocked one.
In this way, user(decoder or encoder) doesn't need to manage gst buffers
including locked surface.

To do that, this patch includes the following:
1. GstMsdkContext
- Manages MSDK surfaces available, used, locked respectively as the
following:
  1\ surfaces_avail : surfaces which are free and unused anywhere
  2\ surfaces_used : surfaces coupled with a gst buffer and being used
now.
  3\ surfaces_locked : surfaces still locked even after the gst buffer
is released.

- Provide an api to get MSDK surface available.
- Provide an api to release MSDK surface.

2. GstMsdkVideoMemory
- Gets a surface available when it's allocated.
- Provide an api to get an available surface with new unlocked one.
- Provide an api to release surface in the msdk video memory.

3. GstMsdkBufferPool
- In acquire_buffer, every time a gst buffer is acquired, get new
available surface from the list.
- In release_buffer, it confirms if the buffer's surface is unlocked or
not.
  - If unlocked, it is put to the available list.
  - If still locked, it is put to the locked list.

This also fixes bug #793525.

https://bugzilla.gnome.org/show_bug.cgi?id=793413
https://bugzilla.gnome.org/show_bug.cgi?id=793525

6 years agoconfigure.ac: enable largefile support if possible
Michael Tretter [Thu, 8 Mar 2018 09:12:16 +0000 (10:12 +0100)]
configure.ac: enable largefile support if possible

https://bugzilla.gnome.org/show_bug.cgi?id=793103

6 years agotests: player: disable broken test_play_media_info test
Tim-Philipp Müller [Mon, 5 Mar 2018 19:37:06 +0000 (19:37 +0000)]
tests: player: disable broken test_play_media_info test

Until someone can be bothered to debug + fix it.

https://bugzilla.gnome.org/show_bug.cgi?id=787372
https://bugzilla.gnome.org/show_bug.cgi?id=787374

6 years agoh265parser: allow partial matching on range extension profile
Guillaume Desmottes [Mon, 5 Mar 2018 13:21:14 +0000 (14:21 +0100)]
h265parser: allow partial matching on range extension profile

Best to return a valid profiles rather than no profile if bitstream uses
a not standard profile.

https://bugzilla.gnome.org/show_bug.cgi?id=793876

6 years agoh265parse: add support for 'Format range extensions profiles'
Guillaume Desmottes [Mon, 26 Feb 2018 16:26:07 +0000 (17:26 +0100)]
h265parse: add support for 'Format range extensions profiles'

Those profiles have been introduced in version 2 of the HEVC spec
(A.3.5).

https://bugzilla.gnome.org/show_bug.cgi?id=793876

6 years agoh265parser: parse extra profile fields
Guillaume Desmottes [Tue, 27 Feb 2018 10:30:15 +0000 (11:30 +0100)]
h265parser: parse extra profile fields

Those fields have been introduced in version 2 and later to define new
profiles like the format range extensions profiles (A.3.5).

NOTE: This patch breaks the parser ABI, rebuild needed.

https://bugzilla.gnome.org/show_bug.cgi?id=793876

6 years agoh265parser: decouple GstH265Profile and GstH265ProfileIDC
Guillaume Desmottes [Thu, 1 Mar 2018 10:08:44 +0000 (11:08 +0100)]
h265parser: decouple GstH265Profile and GstH265ProfileIDC

We used to have the same enum to represent H265 profiles and idc values.
Those are no longer the same with extension profiles defined from
version 2 of the spec.
Split those enums so the semantic of each is clearer and we'll be able
to add extension profiles to GstH265Profile.

Also add gst_h265_profile_tier_level_get_profile() to retrieve the
GstH265Profile from the GstH265ProfileTierLevel. It will be used to
implement the detection of extension profiles.

https://bugzilla.gnome.org/show_bug.cgi?id=793876

6 years agoRelease 1.13.90
Tim-Philipp Müller [Sat, 3 Mar 2018 22:39:27 +0000 (22:39 +0000)]
Release 1.13.90

6 years agoUpdate docs
Tim-Philipp Müller [Sat, 3 Mar 2018 22:39:27 +0000 (22:39 +0000)]
Update docs

6 years agoiqa: Fix build with latest aggregator API changes
Sebastian Dröge [Fri, 2 Mar 2018 19:53:47 +0000 (21:53 +0200)]
iqa: Fix build with latest aggregator API changes

6 years agoRevert "h265parse: early set src caps when input not byte-stream"
Nicolas Dufresne [Fri, 2 Mar 2018 15:37:53 +0000 (10:37 -0500)]
Revert "h265parse: early set src caps when input not byte-stream"

This reverts commit 93d29e80300f566b7a8e7d86beecb578fe03821c.

6 years agoRevert "h264parse: early set src caps when input is avc"
Nicolas Dufresne [Fri, 2 Mar 2018 15:37:45 +0000 (10:37 -0500)]
Revert "h264parse: early set src caps when input is avc"

This reverts commit 5ac886d85aab4b919f84fb80e2d1ef36dc8e647d.

6 years agomeson: enable more warnings
Mathieu Duponchelle [Thu, 1 Mar 2018 17:44:13 +0000 (18:44 +0100)]
meson: enable more warnings

6 years agoRemove schroedinger plugin
Tim-Philipp Müller [Thu, 1 Mar 2018 15:24:39 +0000 (15:24 +0000)]
Remove schroedinger plugin

No upstream (website disappeared), no maintainer, and
pretty much a fringe format anyway.

https://bugzilla.gnome.org/show_bug.cgi?id=776215

6 years agoPort to latest GstAggregator segment API
Mathieu Duponchelle [Wed, 28 Feb 2018 23:34:40 +0000 (00:34 +0100)]
Port to latest GstAggregator segment API

The aggregator segment is now exposed on the src pad

https://bugzilla.gnome.org/show_bug.cgi?id=793946

6 years agowasapi: Increase rank to prefer over directsoundsrc
Nirbheek Chauhan [Thu, 1 Mar 2018 09:59:27 +0000 (15:29 +0530)]
wasapi: Increase rank to prefer over directsoundsrc

Directsoundsrc/sink have multiple issues, most of which cannot be
fixed at all because the API is deprecated and is implemented as a
compatibility wrapper around WASAPI since Vista.

Users and developers should now use the wasapisrc/sink elements, and
future development efforts should go towards that.

6 years agomxfmux: instantiate adapter at the correct place
Mathieu Duponchelle [Wed, 28 Feb 2018 22:46:32 +0000 (23:46 +0100)]
mxfmux: instantiate adapter at the correct place

6 years agodocs: add new audiolatency element to docs and update docs for git
Tim-Philipp Müller [Wed, 28 Feb 2018 00:06:41 +0000 (00:06 +0000)]
docs: add new audiolatency element to docs and update docs for git

6 years agoaudiolatency: Fix string format specifier and use microseconds everywhere
Nirbheek Chauhan [Tue, 27 Feb 2018 19:26:38 +0000 (00:56 +0530)]
audiolatency: Fix string format specifier and use microseconds everywhere

Should fix warnings or build errors on 32-bit platforms and on Windows.

Also clarify in logging that all timestamps are in microseconds.

6 years agoaudiolatency: Fix cerbero build failure
Nirbheek Chauhan [Tue, 27 Feb 2018 19:10:21 +0000 (00:40 +0530)]
audiolatency: Fix cerbero build failure

Average latency is a 64-bit integer.

https://ci.gstreamer.net/job/GStreamer-master/9962/

6 years agox265enc: Add format example for option-string
Alicia Boya García [Tue, 27 Feb 2018 14:47:40 +0000 (15:47 +0100)]
x265enc: Add format example for option-string

https://bugzilla.gnome.org/show_bug.cgi?id=793881

6 years agoaudiolatency: New plugin for measuring audio latency
Nirbheek Chauhan [Mon, 26 Feb 2018 13:08:58 +0000 (18:38 +0530)]
audiolatency: New plugin for measuring audio latency

Measures the audio latency between the source pad and the sink pad by
outputting period ticks on the source pad and measuring how long they
take to arrive on the sink pad.

Very useful for quantifying latency improvements in audio pipelines.
This plugin was particularly useful during development of the
low-latency features of the wasapi plugin.

https://bugzilla.gnome.org/show_bug.cgi?id=793839

6 years agottml: Add support for IMSC 1.0.1 fillLineGap attribute
Chris Bass [Tue, 27 Feb 2018 10:07:18 +0000 (10:07 +0000)]
ttml: Add support for IMSC 1.0.1 fillLineGap attribute

Strictly speaking, the TTML spec requires that text backgrounds extend
only to the font height of the related text, rather than to the vertical
distance between lines. The result of this is that there will typically
be vertical gaps between line backgrounds through which moving video can
be seen. Since this was unnacceptable to some content providers, v1.0.1
of the IMSC spec (which profiles TTML) adds a new attribute,
itts:fillLineGap[1], that allows content authors to specify that clients
should extend text backgrounds such that there are no gaps between
lines. This attribute is also going to be included in the next release
of EBU-TT-D.

This patch adds support for fillLineGap to ttmlparse and ttmlrender.

[1] https://www.w3.org/TR/ttml-imsc1.0.1/#itts-fillLineGap

https://bugzilla.gnome.org/show_bug.cgi?id=787071

6 years agodocs: plugins: add some more elements
Tim-Philipp Müller [Mon, 26 Feb 2018 11:20:51 +0000 (11:20 +0000)]
docs: plugins: add some more elements

Many will still be missing corresponding doc
sections in the source code though.

6 years agowasapi: Clarify usage of low-latency property, add myself as author
Nirbheek Chauhan [Mon, 26 Feb 2018 10:38:28 +0000 (16:08 +0530)]
wasapi: Clarify usage of low-latency property, add myself as author

The low-latency property is *always* safe to enable, so applications
that do realtime communication should set it, and the elements will
automatically configure WASAPI to use the lowest possible device
period, and the audioringbuffer in audiobasesink will also be
configured accordingly.

Applications can also use exclusive mode during capture and playback
for the lowest possible latency if they know that the device will not
be used by any other application.

In this mode, the latency-time and buffer-time properties will be
completely ignored.

6 years agowasapi: Add a property for trying the AudioClient3 API
Nirbheek Chauhan [Mon, 26 Feb 2018 10:25:19 +0000 (15:55 +0530)]
wasapi: Add a property for trying the AudioClient3 API

The AudioClient3 API is only available on Windows 10, and we will
automatically detect when it is available and use it.

However, using it for capturing audio with low latency and without
glitches seems to require setting the realtime priority of the entire
pipeline to "critical", which we cannot do from inside the element.

Hence, we can only enable that by default for wasapisink since
apps should be able to safely set the low-latency property to TRUE if
they need low-latency capture or playback.

6 years agowasapi: Set realtime thread priority at runtime
Nirbheek Chauhan [Wed, 14 Feb 2018 14:42:07 +0000 (20:12 +0530)]
wasapi: Set realtime thread priority at runtime

Use LoadLibrary() to set the thread characteristics at runtime so it
works automagically regardless of where or how the plugin was built.

6 years agowasapi: Use IAudioClient3 interface when available
Nirbheek Chauhan [Wed, 14 Feb 2018 06:43:36 +0000 (12:13 +0530)]
wasapi: Use IAudioClient3 interface when available

This allows us to request ultra-low-latency device periods even in
shared mode. However, this requires good drivers and Windows 10, so
we only enable this when we detect that we are running on Windows 10
at runtime.

You can forcibly disable this feature on Windows 10 by setting
GST_WASAPI_DISABLE_AUDIOCLIENT3=1 in the environment.