platform/upstream/gstreamer.git
4 years agomsdk: query hardware when checking MFX availability
Aaron Boxer [Wed, 20 Nov 2019 19:19:02 +0000 (13:19 -0600)]
msdk: query hardware when checking MFX availability

msdk plugin is not used for sofware encode/decode as there are better
solutions available. Also, with MFX_IMPL_AUTO_ANY, if software decode
is not supported, the plugin will still load, but will then fail when trying to
run the (autoplugged) pipeline. With MFX_IMPL_HARDWARE_ANY,
the plugin fails and a better software decoder is auto-plugged.

4 years agomsdk: query platform when opening session
Aaron Boxer [Wed, 20 Nov 2019 19:09:34 +0000 (13:09 -0600)]
msdk: query platform when opening session

4 years agonvenc: Fix crash when nvenc was reused then freed without encoding
Seungha Yang [Thu, 14 Nov 2019 10:00:51 +0000 (19:00 +0900)]
nvenc: Fix crash when nvenc was reused then freed without encoding

GstNvBaseEnc::n_bufs was set from the previous encoding session
but it wasn't cleared after stop. That might result to invalid memory
access at the next start (no encoded data) and then stop sequence.
Instead of defining a variable for array length, use GArray::len
directly to avoid such confusion.

4 years agonvenc: Remove unused code path
Seungha Yang [Thu, 14 Nov 2019 09:57:14 +0000 (18:57 +0900)]
nvenc: Remove unused code path

refilling queue would not happen

4 years agowebrtcdatachannels: Don't leak strings
Edward Hervey [Thu, 21 Nov 2019 15:38:35 +0000 (16:38 +0100)]
webrtcdatachannels: Don't leak strings

They would leak in error cases

CID: 1455480

4 years agowebrtcbin: Fix memory leak
Edward Hervey [Thu, 21 Nov 2019 15:24:38 +0000 (16:24 +0100)]
webrtcbin: Fix memory leak

The structure is not used after this block

CID: 1455481

4 years agoadaptivedemux: fix 'utc now' gdatetime creation
Thiago Santos [Wed, 20 Nov 2019 03:29:26 +0000 (19:29 -0800)]
adaptivedemux: fix 'utc now' gdatetime creation

It broke after removal of usage of GTimeVal that was deprecated,
it requires seconds in this unix-based creation instead of microseconds.

The downside here is that it will create an extra object just to be
discarded in order to add the microsecond part to it.

It would end up segfaulting as it would return a NULL value

4 years agosrtobject: allow passing SRT Stream ID in stream URI
Jakub Adam [Mon, 18 Nov 2019 15:15:21 +0000 (16:15 +0100)]
srtobject: allow passing SRT Stream ID in stream URI

Based on Stream ID, the application can accept or reject the connection,
select the desired data stream, or set an appropriate passphrase for the
connection. Example usage:

  srt://127.0.0.1:1234?streamid=mystream

5 years agocurl: Require libcurl 7.55.0
Linus Svensson [Wed, 20 Nov 2019 10:34:15 +0000 (11:34 +0100)]
curl: Require libcurl 7.55.0

CURLINFO_CONTENT_LENGTH_DOWNLOAD_T is available from libcurl version
7.55.0.

5 years agomsdkdec: fix surface leak in msdkdec_handle_frame
Julien Isorce [Mon, 18 Nov 2019 22:26:31 +0000 (14:26 -0800)]
msdkdec: fix surface leak in msdkdec_handle_frame

Can be reproduced with:
  videotestsrc ! x264enc key-int-max=$N ! \
  h264parse ! msdkh264dec ! fakesink sync=1

It happens with any gop size but the smaller is the distance N
between key frames, the quicker it is leaking.

Fixes #1023

5 years agodash: Fix typo in meson.build
Xavier Claessens [Mon, 18 Nov 2019 20:54:42 +0000 (15:54 -0500)]
dash: Fix typo in meson.build

5 years agoavtpcvfdepay: Don't hide gst_pad_push return
Ederson de Souza [Fri, 1 Nov 2019 22:58:47 +0000 (15:58 -0700)]
avtpcvfdepay: Don't hide gst_pad_push return

avtpcvfdepay was effectively hiding any return from gst_pad_push, so no
errors or GST_FLOW_EOS would be propagated upstream.

Tests also added.

5 years agoavtpcvfpay: Do not hide or modify gst_pad_push errors
Ederson de Souza [Fri, 1 Nov 2019 22:39:25 +0000 (15:39 -0700)]
avtpcvfpay: Do not hide or modify gst_pad_push errors

Current code would change any non-ok return from gst_pad_push to
GST_FLOW_ERROR, thus hiding meaningful returns such as GST_FLOW_EOS.

Tests also added.

5 years agoavtpcvfdepay: Tone down some log messages
Ederson de Souza [Wed, 30 Oct 2019 22:24:40 +0000 (15:24 -0700)]
avtpcvfdepay: Tone down some log messages

Most of avtpcvfdepay messages are currently logged as warnings, which can
make some scenarios - such as receiving two AVTP streams on the same
pipeline - too verbose.

This patch tones those message down to INFO or DEBUG level - more in
sync with avtpaafdepay logging.

5 years agortpmanagerbad: allow setting multicast-iface
Marc Leeman [Mon, 18 Nov 2019 14:42:35 +0000 (15:42 +0100)]
rtpmanagerbad: allow setting multicast-iface

Allowing the UDP elements to bind on an interface is needed in more
complex networks where there are mutiple networks interfaces without
default gateway

5 years agotimecodestamper: Create LTC sink pad with the correct name according to the template
Sebastian Dröge [Tue, 19 Nov 2019 10:18:39 +0000 (12:18 +0200)]
timecodestamper: Create LTC sink pad with the correct name according to the template

Should be "ltc_sink" and not just "ltc"

5 years agovideoparsers: Disable gst_base_parse_set_infer_ts
Vivia Nikolaidou [Fri, 11 Oct 2019 13:19:26 +0000 (16:19 +0300)]
videoparsers: Disable gst_base_parse_set_infer_ts

From the documentation of gst_base_parse_set_infer_ts, it should be
disabled for non-audio data. Currently just disabling for all video
parsers that have reordered data: h264, h265, mpeg, mpeg4, vc1. Was
already disabled in h263.

5 years agoandroidmedia: Add new effects and scene modes to Camera parameters
Andrew Branson [Mon, 18 Nov 2019 22:38:49 +0000 (23:38 +0100)]
androidmedia: Add new effects and scene modes to Camera parameters

5 years agophotography: Add additional settings relevant to Android
Andrew Branson [Thu, 10 Oct 2019 16:18:26 +0000 (18:18 +0200)]
photography: Add additional settings relevant to Android

Exposure mode property, extra colour tone values (aqua, emboss, sketch, neon), extra scene modes (backlight, flowers, AR, HDR).
Missing vmethods for exposure mode, analog gain, lens focus, colour temperature, min & max exposure time

Contribs by Mohammed Sameer <msameer@foolab.org>, Adam Pigg <adam@piggz.co.uk>

5 years agotsmux: Fix copying of buffer region
Kyrylo Polezhaiev [Thu, 5 Sep 2019 01:16:28 +0000 (03:16 +0200)]
tsmux: Fix copying of buffer region

5 years agod3dvideosink: use sink dimensions when calculating overlay scaling
Aaron Boxer [Fri, 15 Nov 2019 19:12:48 +0000 (13:12 -0600)]
d3dvideosink: use sink dimensions when calculating overlay scaling

5 years agod3dvideosink: use explicit system memory feature in overlay composition caps
Aaron Boxer [Fri, 15 Nov 2019 03:06:09 +0000 (22:06 -0500)]
d3dvideosink: use explicit system memory feature in overlay composition caps

5 years agomsdk: Fixes for meson include directory setup
Jochen Henneberg [Tue, 5 Nov 2019 12:46:59 +0000 (13:46 +0100)]
msdk: Fixes for meson include directory setup

In case of pkg-config we need to create the include directories object
from the path using include_directories(). For INTELMEDIASDKROOT or
MFX_HOME we need to add the alternate include path ./include/mfx as
Intel MediaSDK now puts the headers there.

5 years agortpmanagerbad: name the element children
Marc Leeman [Mon, 23 Sep 2019 08:30:40 +0000 (10:30 +0200)]
rtpmanagerbad: name the element children

As discussed with RIST, it is best to name the children of the elements
since these are now created at the element initialisation.

5 years agocurlhttpsrc: add support for range GET
Alex Ashley [Fri, 24 May 2019 16:33:33 +0000 (17:33 +0100)]
curlhttpsrc: add support for range GET

To allow curlhttpsrc to support DASH streams that use the on-demand
profile, it needs to support HTTP Range GETs. In GStreamer, the RANGE
is specified by issuing a GST_FORMAT_BYTES seek to set the start and
end of the range. curlhttpsrc needs to implement seek and set the
appropriate curl options to make it add the Range header to the
request.

5 years agotsdemux: Always issue a DTS even when it's equal to PTS
Vivia Nikolaidou [Fri, 11 Oct 2019 14:25:04 +0000 (17:25 +0300)]
tsdemux: Always issue a DTS even when it's equal to PTS

Currently tsdemux timestamps only the PTS, and only issues the DTS if
it's different. In that case, parsers tend to estimate the next DTS
based on the previous DTS and the duration, which can accumulate
rounding errors.

5 years agovulkan/queue: be sure to take a lock around command submission
Matthew Waters [Wed, 13 Nov 2019 23:00:35 +0000 (10:00 +1100)]
vulkan/queue: be sure to take a lock around command submission

This ensures that only one thread is submitting commands at a time as
required by the Vulkan specification.

5 years agovulkan/render: fix indent command comment typo
Matthew Waters [Wed, 13 Nov 2019 22:56:49 +0000 (09:56 +1100)]
vulkan/render: fix indent command comment typo

5 years agod3d11window: Fix subclass procedure recursion
Seungha Yang [Wed, 13 Nov 2019 11:17:48 +0000 (20:17 +0900)]
d3d11window: Fix subclass procedure recursion

subclass window precedure should be cleared if it's no more used.

Fixes: https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/issues/1115

5 years agovulkan: NULL check destruction of vulkan resources
Matthew Waters [Wed, 13 Nov 2019 01:14:02 +0000 (12:14 +1100)]
vulkan: NULL check destruction of vulkan resources

If the element fails to start up, any number of vulkan resources could
have not been created.

5 years agovulkan: make new trash objects ref the fence
Matthew Waters [Wed, 13 Nov 2019 01:07:45 +0000 (12:07 +1100)]
vulkan: make new trash objects ref the fence

Avoids gst_vulkan_fence_ref at each call site of the trash object
creation

5 years agovulkan/wayland: advertise the current surface size
Matthew Waters [Wed, 13 Nov 2019 01:05:52 +0000 (12:05 +1100)]
vulkan/wayland: advertise the current surface size

Avoids vkswapper from creating a 0x0 output VkSurface and failing

5 years agoswitchbin: Free path objects on finalize
Jan Schmidt [Tue, 12 Nov 2019 11:06:45 +0000 (22:06 +1100)]
switchbin: Free path objects on finalize

Clean up path objects nicely when shutting down,
first by dropping pointers to elements during dispose,
and then by making sure to drop the ref to the path object
when finalizing the switch bin.

Fixes valgrind checks in the unit test.

5 years agoswitchbin: Add a basic unit-test
Jan Schmidt [Mon, 2 Jul 2018 14:30:12 +0000 (00:30 +1000)]
switchbin: Add a basic unit-test

Test the basic function of a switchbin - that it correctly
selects between 2 processing paths based on caps

5 years agoswitchbin: Add current-path property
Jan Schmidt [Mon, 2 Jul 2018 14:25:51 +0000 (00:25 +1000)]
switchbin: Add current-path property

Returns the index of the currently selected processing
path, or MAX-UINT if none

5 years agoswitchbin: Add docs
Jan Schmidt [Mon, 4 Nov 2019 14:40:10 +0000 (01:40 +1100)]
switchbin: Add docs

Add documentation clauses and enrol switchbin to generate
plugin docs

5 years agoswitchbin: Initial checkin
Jan Schmidt [Mon, 4 Nov 2019 14:40:04 +0000 (01:40 +1100)]
switchbin: Initial checkin

Add code from Stream Unlimited implementing a bin
which switches between different internal decoding/processing
chains based on input caps

5 years agod3d11videosink: only destroy loop if external_win_id is false
Aaron Boxer [Wed, 13 Nov 2019 01:54:46 +0000 (19:54 -0600)]
d3d11videosink: only destroy loop if external_win_id is false

Loop was created with this condition, so it should also be
destroyed under the same condition

5 years agomeson: Fix plugin symbol export for C++ sources/plugins
Jan Schmidt [Fri, 6 Sep 2019 09:13:46 +0000 (19:13 +1000)]
meson: Fix plugin symbol export for C++ sources/plugins

The symbol visibility=hidden flag was only being applied to C
compilation, so plugins implemented in C++ would leak extra symbols
than the 2 _get_desc() and _register().

That also showed that the gst-libs opencv C++ lib was not marking
symbols for export correctly because the BUILDING_GST_OPENCV define
wasn't in the C++ args, so fix that too.

5 years agortmp2: Fix NULL check in gst_rtmp_meta_transform
Jan Alexander Steffens (heftig) [Tue, 12 Nov 2019 11:04:48 +0000 (12:04 +0100)]
rtmp2: Fix NULL check in gst_rtmp_meta_transform

Coverity rightly complains that checking a pointer for NULL after
dereferencing it is pointless.

Remove the check, and to be safe, assert that gst_buffer_add_meta
returns non-NULL.

CID 1455485

5 years agortmp2: Check for missing GstRtmpMeta
Jan Alexander Steffens (heftig) [Tue, 12 Nov 2019 10:46:21 +0000 (11:46 +0100)]
rtmp2: Check for missing GstRtmpMeta

The message buffers are created using `gst_rtmp_message_new` and thus
always contain a GstRtmpMeta. Add checks to appease Coverity's static
analysis.

CID 1455596
CID 1455384

5 years agortmp2sink: Add a check that meta isn't NULL before accessing
Vivia Nikolaidou [Tue, 12 Nov 2019 10:31:48 +0000 (12:31 +0200)]
rtmp2sink: Add a check that meta isn't NULL before accessing

It really can't be NULL, this is just to convince coverity

CID 1455553

5 years agokmssink: Do not drain if imported buffer are from KMS
Nicolas Dufresne [Fri, 8 Nov 2019 23:00:46 +0000 (18:00 -0500)]
kmssink: Do not drain if imported buffer are from KMS

This adds a check to avoid draining when the imported buffers are in
fact own by kmssink. This happens since we export our kms buffer as
DMABuf. They are not really imported back as we pre-fill the cache,
but uses the same format as if they were external. This fixes
performance issues seen with videocrop2-test (found in -good).

5 years agokmssink: Avoid drain on caps changes
Nicolas Dufresne [Fri, 8 Nov 2019 22:57:58 +0000 (17:57 -0500)]
kmssink: Avoid drain on caps changes

Draining systematically on caps changes was a hack. Instead, properly
save the render information used to render last_render, and use that
information to drain. This fixes performance issues met with video crop
meta and per frame caps changes.

5 years agokmssink: Ensure we have an allocator before importing
Nicolas Dufresne [Fri, 8 Nov 2019 22:48:40 +0000 (17:48 -0500)]
kmssink: Ensure we have an allocator before importing

This fixes cases where the kms allocator API was called with a null
pointer.

5 years agovc1parse: Avoid division by zero assertion
Nicolas Dufresne [Sat, 13 Jul 2019 00:39:45 +0000 (20:39 -0400)]
vc1parse: Avoid division by zero assertion

A framerate of 0/1 is valid, but we cannot calculate the frame duration
in this context. Simply protect against this case.

Related to #660

5 years agovc1parser: Relax ASF Binding Byte validation
Nicolas Dufresne [Sun, 18 Feb 2018 00:38:22 +0000 (19:38 -0500)]
vc1parser: Relax ASF Binding Byte validation

According to the spec, the least significant bit is reserved and should
always we set to 1. Though, some wrong file has been found. Considering
how low important this reserved bit is, relax the validation.

Related to #660

5 years agovc1parser : fix a miswrite
Fuwei Tang [Mon, 11 Nov 2019 01:36:48 +0000 (09:36 +0800)]
vc1parser : fix a miswrite

5 years agovkhandle: expose a printf format specifier for a vulkan handle
Matthew Waters [Sun, 10 Nov 2019 23:50:58 +0000 (10:50 +1100)]
vkhandle: expose a printf format specifier for a vulkan handle

5 years agovkdescriptor: set the GError on the 'too many allocations' case
Matthew Waters [Sun, 10 Nov 2019 23:33:23 +0000 (10:33 +1100)]
vkdescriptor: set the GError on the 'too many allocations' case

5 years agovkswapper: add inherit support
Matthew Waters [Thu, 17 Oct 2019 12:25:14 +0000 (23:25 +1100)]
vkswapper: add inherit support

Used on android

5 years agovkswapper: output specific values when swapchain flags fail
Matthew Waters [Thu, 17 Oct 2019 11:27:44 +0000 (22:27 +1100)]
vkswapper: output specific values when swapchain flags fail

5 years agovulkan: add android WSI integration
Matthew Waters [Wed, 16 Oct 2019 06:17:51 +0000 (17:17 +1100)]
vulkan: add android WSI integration

5 years agovulkan: Fix build on ios
Nirbheek Chauhan [Sun, 10 Nov 2019 13:01:49 +0000 (18:31 +0530)]
vulkan: Fix build on ios

These little bits were missed during the refactor in
https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/merge_requests/821

5 years agoamc: Change plugin name if it's built for Magic Leap
Xavier Claessens [Thu, 24 Oct 2019 19:27:42 +0000 (15:27 -0400)]
amc: Change plugin name if it's built for Magic Leap

5 years agoamc: Add MLSDK implementation
Xavier Claessens [Mon, 19 Nov 2018 18:40:35 +0000 (13:40 -0500)]
amc: Add MLSDK implementation

5 years agovulkan: Fix build on Windows
Seungha Yang [Fri, 8 Nov 2019 14:42:08 +0000 (23:42 +0900)]
vulkan: Fix build on Windows

gstvkwindow_win32.c(166): error C2065: 'msg_source': undeclared identifier

5 years agohlsdemux: Don't use deprecated SSL methods
Edward Hervey [Wed, 6 Nov 2019 14:07:44 +0000 (15:07 +0100)]
hlsdemux: Don't use deprecated SSL methods

And instead use the fixed-size variants (which aren't deprecated)

5 years agobad: Avoid using deprecated API
Edward Hervey [Wed, 6 Nov 2019 13:36:11 +0000 (14:36 +0100)]
bad: Avoid using deprecated API

GTimeval is deprecated

5 years agomsdk: remove msdkvp8enc
Haihao Xiang [Thu, 7 Nov 2019 10:45:55 +0000 (18:45 +0800)]
msdk: remove msdkvp8enc

MediaSDK doesn't support vp8 encode which is not going to be
implemented [1], so remove msdkvp8enc from this plugin

[1]: https://github.com/Intel-Media-SDK/MediaSDK/issues/947

5 years agovulkan: remove the private struct from the public struct
Matthew Waters [Wed, 6 Nov 2019 15:41:10 +0000 (02:41 +1100)]
vulkan: remove the private struct from the public struct

Remove any references to CamelTypePrivate from the public CamelType
struct.  They can be accessed as needed using
camel_type_get_instance_private().

5 years agovulkan: implement proper descriptor set handling
Matthew Waters [Wed, 6 Nov 2019 11:19:42 +0000 (22:19 +1100)]
vulkan: implement proper descriptor set handling

The major functionality gain this provides is proper reference counting
for a descriptor set.  Overall this allows us to create descriptor sets
when they are needed (or reused from a cache) without violating any of
vulkan's object synchronisation requirements.

As there are a fixed number of sets available in a pool, the number of
descriptors in elements is currently hardcoded to 32.  This can be extended
in a future change to create pools on the fly if that limit is ever overrun.

5 years agovulkan/fence: add always-signalled fence type
Matthew Waters [Tue, 5 Nov 2019 22:34:36 +0000 (09:34 +1100)]
vulkan/fence: add always-signalled fence type

Allows a cleaner control flow when there is no fence available for use
with the trash list.  An always signalled fence type will always return
TRUE for gst_vulkan_fence_is_signalled.

5 years agovulkan: add handle type for arbitrary vulkan handles
Matthew Waters [Tue, 5 Nov 2019 22:29:51 +0000 (09:29 +1100)]
vulkan: add handle type for arbitrary vulkan handles

Serve two purposes:
1. refcounting of vulkan handles with associated destruction.  When
   combined with the trash list, the user can ensure destruction at
   the correct time according to the vulkan rules.
2. avoids polluting our API with 32-bit vs 64-bit integer/pointers
   differences as exposed through the vulkan API.  on 32-bit, vulkan
   non-dispatchable handles are 64-bit integers and on 64-bit, they
   are pointers.

5 years agovulkanviewconvert: fix typo of output image view name
Matthew Waters [Wed, 6 Nov 2019 11:09:02 +0000 (22:09 +1100)]
vulkanviewconvert: fix typo of output image view name

5 years agovulkan: fix non-dispatchable handles on 32-bit platforms
Matthew Waters [Wed, 16 Oct 2019 06:47:33 +0000 (17:47 +1100)]
vulkan: fix non-dispatchable handles on 32-bit platforms

non-dispatchable handles are 64-bit integers on 32-bit platforms

5 years agovulkan: use VK_NULL_HANDLE in more places
Matthew Waters [Wed, 16 Oct 2019 06:42:33 +0000 (17:42 +1100)]
vulkan: use VK_NULL_HANDLE in more places

Fixes compiler warnings on 32-bit platforms assigning a void * to a
64-bit integer value.

5 years agovulkan: use the provided VKAPI_ATTR for the debug callback
Matthew Waters [Wed, 16 Oct 2019 06:27:16 +0000 (17:27 +1100)]
vulkan: use the provided VKAPI_ATTR for the debug callback

Ensures that we get the calling convention correct for the platform we
are using.

5 years agovulkan: dump surface information
Matthew Waters [Sun, 3 Nov 2019 10:50:39 +0000 (21:50 +1100)]
vulkan: dump surface information

5 years agovulkan: print criticals/warnings for vulkan errors/warnings
Matthew Waters [Wed, 30 Oct 2019 08:33:25 +0000 (19:33 +1100)]
vulkan: print criticals/warnings for vulkan errors/warnings

Simplifies finding the erronous cases in using the Vulkan API
incorrectly.

5 years agovulkan/image: use the full video info for returning vulkan formats
Matthew Waters [Tue, 29 Oct 2019 13:57:55 +0000 (00:57 +1100)]
vulkan/image: use the full video info for returning vulkan formats

We may need some colorspace information for returning sRGB vs no sRGB.

5 years agotsdemux: Handle continuity mismatch in more cases
Edward Hervey [Wed, 6 Nov 2019 13:22:07 +0000 (14:22 +0100)]
tsdemux: Handle continuity mismatch in more cases

Packets of a given PID are meant to have sequential continuity counters
(modulo 16). If there are not sequential, this is the sign of a broken
stream, which we then consider as a discontinuity.

But if that new packet is a frame start (PUSI is true), then we can resume
from that packet without any damage.

5 years agovulkan: Fix build error when gstvulkan is not installed
Yeongjin Jeong [Fri, 1 Nov 2019 05:22:46 +0000 (14:22 +0900)]
vulkan: Fix build error when gstvulkan is not installed

The following build error occurs:

vkdeviceprovider.h:30:10: fatal error: gst/vulkan/vulkan.h: No such file or directory
  #include <gst/vulkan/vulkan.h>
           ^~~~~~~~~~~~~~~~~~~~~

5 years agodebugutils: clockselect, a pipeline that enables clock selection
Ederson de Souza [Wed, 23 Oct 2019 17:11:46 +0000 (10:11 -0700)]
debugutils: clockselect, a pipeline that enables clock selection

Sometimes, one wants to force a clock on some pipelines - for instance,
when testing TSN related pipelines, one usually uses GstPtpClock or
CLOCK_REALTIME (assuming system realtime clock is in sync with network
one). Until now, one needs to write an application for that - not
difficult, but quite boring if one just wants to test something. This
patch presents a new element to help that: clockselect.

clockselect is a pipeline with two properties to select a clock. One
property, "clock-id", enables one to choose between "monotonic",
"realtime", "ptp" or "default" clock - where default keeps pipeline
behaviour of choosing a clock based on its elements. The other property,
"ptp-domain" gives one the choice of which PTP domain should be used.

Some very simple tests also added for this new element.

5 years agoDon't pass default GLib marshallers for signals
Niels De Graef [Tue, 27 Aug 2019 05:59:27 +0000 (07:59 +0200)]
Don't pass default GLib marshallers for signals

By passing NULL to `g_signal_new` instead of a marshaller, GLib will
actually internally optimize the signal (if the marshaller is available
in GLib itself) by also setting the valist marshaller. This makes the
signal emission a bit more performant than the regular marshalling,
which still needs to box into `GValue` and call libffi in case of a
generic marshaller.

Note that for custom marshallers, one would use
`g_signal_set_va_marshaller()` with the valist marshaller instead.

5 years agosrt: split incoming buffer up into srt chunk
Justin Kim [Mon, 28 Oct 2019 04:42:15 +0000 (13:42 +0900)]
srt: split incoming buffer up into srt chunk

5 years agowasapi: minor cleanup
Ignacio Casal Quinteiro [Sat, 2 Nov 2019 15:29:02 +0000 (16:29 +0100)]
wasapi: minor cleanup

5 years agosdp: don't leak the ghost pad
Michael Olbrich [Tue, 27 Aug 2019 13:14:31 +0000 (15:14 +0200)]
sdp: don't leak the ghost pad

The peer is already gone when pad_removed_cb() called, so the ghost cannot
be removed. Use g_object_set_data() instead to remember the ghost pad.

Copied from similar code in GstRTPBin.

5 years agod3dvideosink: support OverlayComposition for GPU overlay compositing
Aaron Boxer [Tue, 22 Oct 2019 18:10:30 +0000 (14:10 -0400)]
d3dvideosink: support OverlayComposition for GPU overlay compositing

5 years agobasetsmux: allow null J2K profile
Aaron Boxer [Tue, 5 Nov 2019 01:42:19 +0000 (20:42 -0500)]
basetsmux: allow null J2K profile

Since we are not requiring that profile equals GST_JPEG2000_PARSE_PROFILE_BC_SINGLE,
(as the standard requires) we can allow profile to be null. We relax this condition because
OpenJPEG can't create broadcast profiles.

5 years agojpeg2000parse: fail caps negotiation if caps are NOT fixed
Aaron Boxer [Sun, 3 Nov 2019 10:56:12 +0000 (05:56 -0500)]
jpeg2000parse: fail caps negotiation if caps are NOT fixed

5 years agojpeg2000parse: use pre_push_frame to reset parser
Aaron Boxer [Thu, 8 Aug 2019 19:27:11 +0000 (15:27 -0400)]
jpeg2000parse: use pre_push_frame to reset parser

5 years agojpeg2000parse: parse_event: call base class at end
Aaron Boxer [Thu, 8 Aug 2019 19:26:22 +0000 (15:26 -0400)]
jpeg2000parse: parse_event: call base class at end

derived class should do it's work first before calling base

5 years agojpeg2000parse: do hard reset if gst_base_parse_finish_frame fails
Aaron Boxer [Tue, 6 Aug 2019 01:53:54 +0000 (21:53 -0400)]
jpeg2000parse: do hard reset if gst_base_parse_finish_frame fails

5 years agojpeg2000parse: initialize some variables to make valgrind happy
Aaron Boxer [Mon, 5 Aug 2019 21:15:57 +0000 (17:15 -0400)]
jpeg2000parse: initialize some variables to make valgrind happy

5 years agojpeg2000parse: add unit test
Aaron Boxer [Fri, 9 Aug 2019 13:29:22 +0000 (09:29 -0400)]
jpeg2000parse: add unit test

5 years agojpeg2000parse: use GST_INT in caps for profile
Aaron Boxer [Fri, 9 Aug 2019 13:28:53 +0000 (09:28 -0400)]
jpeg2000parse: use GST_INT in caps for profile

Negotiation failed with GST_UINT

5 years agojpeg2000parse: make explicit that codec_format is for src caps
Aaron Boxer [Mon, 5 Aug 2019 19:38:08 +0000 (15:38 -0400)]
jpeg2000parse: make explicit that codec_format is for src caps

5 years agojpeg2000parse: refactor
Aaron Boxer [Mon, 5 Aug 2019 19:24:49 +0000 (15:24 -0400)]
jpeg2000parse: refactor

1. only recalculate src codec format if sink caps change
2. use correct value for "jp2c" magic in J2C box ID
3. only parse J2K magic once, and store result
4. more sanity checks comparing caps to parsed codec

5 years agojpeg2000parse: set parsed to TRUE in src caps
Aaron Boxer [Mon, 5 Aug 2019 19:34:08 +0000 (15:34 -0400)]
jpeg2000parse: set parsed to TRUE in src caps

5 years agojpeg2000parse: only cache caps parameters when caps have in fact changed
Aaron Boxer [Mon, 5 Aug 2019 19:33:33 +0000 (15:33 -0400)]
jpeg2000parse: only cache caps parameters when caps have in fact changed

5 years agojpeg2000parse: fix typos in media format
Aaron Boxer [Mon, 5 Aug 2019 19:23:24 +0000 (15:23 -0400)]
jpeg2000parse: fix typos in media format

5 years agojpeg2000parse: add reset method
Aaron Boxer [Mon, 5 Aug 2019 19:19:12 +0000 (15:19 -0400)]
jpeg2000parse: add reset method

Also add three new struct members, currently unused.

5 years agodocumentation: fixed a heap o' typos
Aaron Boxer [Mon, 2 Sep 2019 19:08:44 +0000 (15:08 -0400)]
documentation: fixed a heap o' typos

5 years agoAdd files from gst-rtmp
Vivia Nikolaidou [Tue, 5 Nov 2019 13:52:55 +0000 (13:52 +0000)]
Add files from gst-rtmp

For master, without autotools.

5 years agoav1enc: Add tile-{columns,rows} properties
Wonchul Lee [Sun, 6 Oct 2019 13:46:52 +0000 (22:46 +0900)]
av1enc: Add tile-{columns,rows} properties

It provides to set tile-columns and tile-rows configurations. The av1
codec allows an input image frame be partitioned into separate vertical
or horizontal tile which can be encoded or decoded independently. It
helps to encode/decode parallel.

5 years agoav1enc: Enable row-mt by default
Wonchul Lee [Sun, 6 Oct 2019 08:20:12 +0000 (17:20 +0900)]
av1enc: Enable row-mt by default

Enabling row-mt property can help to increase cpu utilization and reduce
encoding speed, so set it to on by default.

5 years agocurlhttpsrc: Hook up libcurl logging message to gstreamer
Yeongjin Jeong [Tue, 23 Jul 2019 09:24:11 +0000 (18:24 +0900)]
curlhttpsrc: Hook up libcurl logging message to gstreamer

CURLOPT_DEBUGFUNCTION option replaces the standard debug function
used when CURLOPT_VERBOSE is in effect. This callback receives various debug information.

5 years agoristsrc: Apply BINDTODEVICE to socket created by udpsrc too
Olivier Crête [Fri, 20 Sep 2019 12:52:15 +0000 (14:52 +0200)]
ristsrc: Apply BINDTODEVICE to socket created by udpsrc too

5 years agoccconverter: Instead of erroring out on too big input drop additional data
Sebastian Dröge [Sun, 3 Nov 2019 08:54:40 +0000 (09:54 +0100)]
ccconverter: Instead of erroring out on too big input drop additional data