Michael Olbrich [Sun, 10 Nov 2019 20:19:09 +0000 (21:19 +0100)]
souphttpsrc: don't update the size on error
Any data corresponding length in the message is not part of the requested
file.
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-good/-/merge_requests/385>
Matthew Waters [Thu, 18 Jun 2020 09:12:46 +0000 (19:12 +1000)]
qt/gloverlay: fix using OpenGL after destroying Qml
Qml somewhat unhelpfully seems to uncurrent our OpenGL context on its
destruction. Work around that by uncurrenting and recurrenting again.
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-good/-/merge_requests/632>
Tim-Philipp Müller [Wed, 8 Jul 2020 16:02:34 +0000 (17:02 +0100)]
meson: set release date from .doap file for releases
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-good/-/merge_requests/664>
Sebastian Dröge [Tue, 7 Jul 2020 09:36:01 +0000 (12:36 +0300)]
qtmux: Don't lock object lock twice in prefill mode
Fixes https://gitlab.freedesktop.org/gstreamer/gst-plugins-good/-/issues/762
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-good/-/merge_requests/663>
Tim-Philipp Müller [Sat, 4 Jul 2020 00:02:02 +0000 (01:02 +0100)]
meson: add update-orc-dist target
Add target to update backup orc -dist.[ch] files.
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-good/-/merge_requests/662>
Xavier Claessens [Tue, 26 May 2020 14:27:35 +0000 (10:27 -0400)]
v4l2: Do not renegotiate if only framerate changed
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-good/-/merge_requests/602>
Sebastian Dröge [Thu, 2 Jul 2020 06:15:08 +0000 (09:15 +0300)]
flacenc: Pass audio info from set_format() to query_total_samples() explicitly
This fixes writing of the seek table header.
gst_audio_encoder_get_audio_info() will still return old/unset audio
info until set_format() has actually returned, which then results in
query_total_samples() to always return 0.
Thanks to Jacob Kauffmann for debugging this and finding the main cause.
Fixes https://gitlab.freedesktop.org/gstreamer/gst-plugins-good/-/issues/756
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-good/-/merge_requests/661>
Tim-Philipp Müller [Fri, 3 Jul 2020 01:03:33 +0000 (02:03 +0100)]
Back to development
Tim-Philipp Müller [Thu, 2 Jul 2020 23:27:47 +0000 (00:27 +0100)]
Release 1.17.2
Nirbheek Chauhan [Thu, 2 Jul 2020 02:23:14 +0000 (07:53 +0530)]
deinterlace: Disable nasm support on x32
The assembly assumes pointers are 64-bit, so just disable it.
Closes https://gitlab.freedesktop.org/gstreamer/gst-plugins-good/-/issues/757
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-good/-/merge_requests/660>
Nirbheek Chauhan [Wed, 1 Jul 2020 12:49:09 +0000 (18:19 +0530)]
deinterlace: Fix build on x32
Need to pass `-f elfx32` to nasm in that case.
Fixes https://gitlab.freedesktop.org/gstreamer/gst-plugins-good/-/issues/757
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-good/-/merge_requests/657>
Jan Schmidt [Wed, 1 Jul 2020 06:17:19 +0000 (16:17 +1000)]
matroska-mux: Wait for caps on sparse streams
Don't set sparse streams to non-waiting at the collectpads
level until after capa arrive, as we need caps on all
pads before the file headers get written, or else the
subtitle track will be silently absent in the final file.
Fixes https://gitlab.freedesktop.org/gstreamer/gst-plugins-good/-/issues/724
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-good/-/merge_requests/656>
Jan Schmidt [Wed, 1 Jul 2020 06:13:27 +0000 (16:13 +1000)]
matroska-mux: Warn on late caps arrival
As well as warning when caps change after the headers
were already written, make sure to warn if the *first* caos
arrive late too.
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-good/-/merge_requests/656>
Sebastian Dröge [Tue, 30 Jun 2020 15:37:06 +0000 (18:37 +0300)]
imagefreeze: Return TRUE from the LATENCY query handling
We always answer it successfully no matter what.
The default return value in the function is FALSE even if the code below
sets it again to FALSE.
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-good/-/merge_requests/654>
Sebastian Dröge [Mon, 29 Jun 2020 08:53:39 +0000 (11:53 +0300)]
imagefreeze: Add test for new live mode
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-good/-/merge_requests/653>
Sebastian Dröge [Mon, 29 Jun 2020 07:10:09 +0000 (10:10 +0300)]
imagefreeze: Add a live mode
Previously imagefreeze would always operate as non-live element and
output frames as fast as possible according to the configured segment
(via SEEK events) and the negotiated framerate from start to stop or the
other way around.
With the new live mode (enabled via the is-live property) it would only
output frames in PLAYING. Frames would be output according to the
negotiated framerate unless it would be too late, in which case it would
jump ahead and skip over the requirement amount of frames.
This makes it possible to actually use imagefreeze in live pipelines
without having to manually ensure somehow that it would start outputting
at the current running time and without still risking to fall behind
without recovery.
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-good/-/merge_requests/653>
Sebastian Dröge [Sun, 28 Jun 2020 19:26:23 +0000 (22:26 +0300)]
imagefreeze: Correctly answer the LATENCY query
We never run as a live element, even if upstream is live, and never
output any buffers with latency but immediately generate buffers as
fast as we can according to the negotiated framerate.
Passing the query upstream would proxy whatever mode of operation
upstream has, which has nothing to do with how we produce buffers.
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-good/-/merge_requests/653>
Nicolas Dufresne [Thu, 25 Jun 2020 18:15:51 +0000 (14:15 -0400)]
v4l2: Fix threading issues in orphaning mechanism
The pool orphaning function was colling internal _stop() virtual function
implementation. This is not thread safe, as a private lock inside the buffer
pool is supposed to be held. Fix this by keeping delayed _stop() and orphaning
the GstV4L2Allocator instead (REQBUFS(0)).
Then, protect the orphaned boolean with the object lock for the case a buffer
is being released after we have orphaned the buffer. That would otherwise
cause a QBUF to happen while the queue is no longer owned by the buffer pool.
This boolean is otherwise used and set from the streaming lock, or after
threads have been stopped (final cleanup).
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-good/-/merge_requests/648>
Nicolas Dufresne [Fri, 26 Jun 2020 20:43:37 +0000 (16:43 -0400)]
v4l2bufferpoool: Fix requeueue after seek when importing
When the buffer pool is importing buffer, it will requeue num_allocated on
streamon. As this value was not set for DMABuf import and USERPTR, no buffer
was queued back.
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-good/-/merge_requests/651>
Nicolas Dufresne [Fri, 26 Jun 2020 20:39:42 +0000 (16:39 -0400)]
Revert "v4l2bufferpool: request the maximum number of buffers for USERPTR"
This reverts commit
6bf9f4bd77a4c6cce8786893feea7d601a6e6030.
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-good/-/merge_requests/651>
Nicolas Dufresne [Fri, 26 Jun 2020 20:37:06 +0000 (16:37 -0400)]
Revert "v4l2bufferpool: request the maximum number of buffers for DMABUF"
This reverts commit
94e323c10f2d7fa85bf63f357d203ca5305800c6.
Fixes #754
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-good/-/merge_requests/651>
Nicolas Dufresne [Fri, 26 Jun 2020 18:48:14 +0000 (14:48 -0400)]
v4l2bufferpool: Only resurrect the right amount of buffers
On streamon, we need to resurrect (queue back) some buffers, as during
flushign seek we'd endup with an empty queued. We initially started with
resurrecting as many as we could without blocking, but that miss-behaved with
dynamic CREATE_BUFS, causing the pool to grow dramatically. This was limited
by the number of allocated buffers, but this still tried to resurrect too many
buffers for the first run, as activating the pool will queued buffers.
In this patch, we calculte the missing detal in the queue and only try and
resurrect that amount of buffers.
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-good/-/merge_requests/651>
Nicolas Dufresne [Fri, 26 Jun 2020 17:11:04 +0000 (13:11 -0400)]
v4l2object: Only offer inactive pools and if needed
Avoid offering a pool if it's not needed or if it's still active.
This works around the fact the we only have one pool in V4L2.
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-good/-/merge_requests/651>
Nirbheek Chauhan [Wed, 24 Jun 2020 16:28:07 +0000 (21:58 +0530)]
qt: Rework how we find the Qt QPA header
Instead of querying the Qt include path from the dependency or from
qmake, rely on the qt5qml_dep to set the include path to QtGui
correctly, and look for the header inside the private includedir.
Then we can use that path to include the header directly.
Reported in https://gitlab.freedesktop.org/gstreamer/gst-plugins-base/-/issues/780#note_548092
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-good/-/merge_requests/640>
Nirbheek Chauhan [Wed, 24 Jun 2020 16:34:55 +0000 (22:04 +0530)]
qt: Only check for moc-qt5/moc in PATH if not cross-compiling
This is an extra check that's only needed for working around Linux
distribution packaging. `moc` is not required in the cross file.
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-good/-/merge_requests/640>
Nicolas Dufresne [Fri, 26 Jun 2020 17:10:00 +0000 (13:10 -0400)]
v4l2allocator: Don't do REQBUFS(0) on inactive allocator
If the allocator is no longer active, it means the memory has already
been freed, calling REQBUF(0) would make no sense.
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-good/-/merge_requests/649>
Nicolas Dufresne [Fri, 26 Jun 2020 15:05:25 +0000 (11:05 -0400)]
v4l2bufferpool: Avoid set_flushing warning
The gst_buffer_pool_set_flushing() warns when that function is called
on an inactive pool. Avoid the warning by checking the state, this is
similar to what we do in gst_v4l2_object_unlock().
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-good/-/merge_requests/649>
Nicolas Dufresne [Fri, 26 Jun 2020 13:53:13 +0000 (09:53 -0400)]
v4l2allocator: Fix data offset / bytesused size validation
The check was too strict causing spurious warning. Now check for <= so that 0
sized buffer do not cause a warning.
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-good/-/merge_requests/649>
Nicolas Dufresne [Thu, 25 Jun 2020 20:46:23 +0000 (16:46 -0400)]
v4l2videoenc: Fix negotiation caps leak
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-good/-/merge_requests/649>
Tim-Philipp Müller [Fri, 26 Jun 2020 18:28:31 +0000 (19:28 +0100)]
splitmuxsink: flesh out docs for format-location* signals
Make explicit that the returned strings need to be g_free()-able.
Fixes #753
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-good/-/merge_requests/652>
Nicolas Dufresne [Thu, 25 Jun 2020 20:47:42 +0000 (16:47 -0400)]
v4l2videoenc: Skip negotiation of profiles/level if no codec
The codec structure is optional and not used for fwht test codec. This
was leading to a crash dereferencing NULL pointer.
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-good/-/merge_requests/650>
Havard Graff [Sun, 3 May 2020 11:17:46 +0000 (13:17 +0200)]
rtpstats: guard against division by zero
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-good/-/merge_requests/646>
Havard Graff [Wed, 17 Jun 2020 21:23:58 +0000 (23:23 +0200)]
rtptwcc: fix pruning of ack'ed twcc-packets
Fixes #750
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-good/-/merge_requests/645>
Nirbheek Chauhan [Wed, 24 Jun 2020 15:45:47 +0000 (21:15 +0530)]
meson: Build Qt5 tests with -std=c++11
We already do this for the plugin.
https://gitlab.freedesktop.org/gstreamer/gst-plugins-base/-/issues/780#note_548179
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-good/-/merge_requests/642>
Sebastian Dröge [Thu, 25 Jun 2020 09:58:48 +0000 (12:58 +0300)]
splitmuxsink: Add new properties for setting muxer/sink presets
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-good/-/merge_requests/644>
Mathieu Duponchelle [Wed, 24 Jun 2020 15:04:51 +0000 (17:04 +0200)]
autodetect: mark filter-caps property as DOC_SHOW_DEFAULT
When generating the cache we inspect the base class through
an instance of one of its subclasses. We don't want potential
assignments in subclasses initialization to leak into the
base class documentation
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-good/-/merge_requests/641>
Mathieu Duponchelle [Wed, 24 Jun 2020 14:45:27 +0000 (16:45 +0200)]
vpxenc: mark all properties as GST_DOC_SHOW_DEFAULT
When generating the cache we inspect the base class through
an instance of one of its subclasses. We don't want potential
assignments in subclasses initialization to leak into the
base class documentation
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-good/-/merge_requests/641>
Mathieu Duponchelle [Tue, 23 Jun 2020 17:04:03 +0000 (19:04 +0200)]
docs: mark GstIirEqualizer as plugin API
Thibault Saunier [Tue, 23 Jun 2020 16:47:44 +0000 (12:47 -0400)]
vpx: Fix links to baseclass properties
Mathieu Duponchelle [Tue, 23 Jun 2020 00:50:35 +0000 (02:50 +0200)]
docs: mark more types as plugin API
Mathieu Duponchelle [Mon, 22 Jun 2020 22:02:34 +0000 (00:02 +0200)]
plugins_cache: add base classes
Mathieu Duponchelle [Mon, 22 Jun 2020 22:02:21 +0000 (00:02 +0200)]
meson: mark plugins cache target as always stale
Mathieu Duponchelle [Sat, 20 Jun 2020 23:34:43 +0000 (01:34 +0200)]
docs: mark more types as plugin API
Thibault Saunier [Sat, 20 Jun 2020 02:54:38 +0000 (22:54 -0400)]
doc: Stop documenting properties from parents
He Junyan [Sun, 21 Jun 2020 12:11:06 +0000 (20:11 +0800)]
deinterlace: Add the missing ORC_RESTRICT define.
ORC_RESTRICT may not be defined in yadif.c and cause build error.
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-good/-/merge_requests/637>
Havard Graff [Thu, 6 Jun 2019 07:41:13 +0000 (09:41 +0200)]
rtpsession: make tests more stable
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-good/-/merge_requests/410>
Tim-Philipp Müller [Sat, 20 Jun 2020 19:42:37 +0000 (20:42 +0100)]
docs: update plugin cache for new version
Some default values include our version string, like
user agent strings.
Tim-Philipp Müller [Fri, 19 Jun 2020 23:28:11 +0000 (00:28 +0100)]
Back to development
Tim-Philipp Müller [Fri, 19 Jun 2020 18:18:59 +0000 (19:18 +0100)]
Release 1.17.1
Seungha Yang [Fri, 19 Jun 2020 11:24:12 +0000 (20:24 +0900)]
meson: deinterlace: Check host cpu type for asm build
Add host cpu type check as we would enable asm only for x86_64
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-good/-/merge_requests/636>
Seungha Yang [Fri, 19 Jun 2020 10:54:08 +0000 (19:54 +0900)]
meson: Fix build error with MSVC caused by ARCH_X86_64 define
ARCH_X86_64 define will enable GCC specific code path in dv_types.h
while building dv plugin.
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-good/-/merge_requests/636>
Tim-Philipp Müller [Fri, 19 Jun 2020 09:32:45 +0000 (10:32 +0100)]
shout2: advertise documentation caps properly
shout2send caps depend on what the libshout2
version in question supports, but the
documentation caps should always be the same.
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-good/-/merge_requests/635>
Jan Schmidt [Sun, 26 May 2019 10:20:03 +0000 (20:20 +1000)]
qtdemux: Split tag reading functions out
Move some code out of the enormous qtdemux.c into a separate
qtdemux_tags helper, and make some structs available via qtdemux.h
to accommodate that.
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-good/-/merge_requests/634>
Jan Schmidt [Sat, 25 May 2019 19:05:06 +0000 (05:05 +1000)]
qtdemux: Move some tree parsing files out to a separate file.
Reduce a tiny bit of the bulk of qtdemux.c by moving some
agnostic helper functions out.
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-good/-/merge_requests/634>
Jan Schmidt [Sat, 25 May 2019 15:24:54 +0000 (01:24 +1000)]
qtdemux: Factor out svmi parsing. Fix bounds checking.
Move the SVMI stereoscopic atom parsing out to a helper
function to shrink qtdemux_parse_trak a bit.
Add a bounds check that the received atom is large enough
before parsing it.
Add a note to the atom parser that svmi comes from the
MPEG-A spec 23000-11.
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-good/-/merge_requests/634>
Guillaume Desmottes [Mon, 15 Jun 2020 11:05:49 +0000 (13:05 +0200)]
pulse: fix discovery of newly added devices
Fix regression introduced in
7bc5e28d85992b03e5852879b8d4d96043496caf
preventing the device provider to send the device-added message for new
devices.
By early returning the patch was discarding add/remove events.
Fix #735
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-good/-/merge_requests/626>
Tim-Philipp Müller [Thu, 18 Jun 2020 09:47:28 +0000 (10:47 +0100)]
examples: qmlsink: rename qrc file to avoid naming conflicts with older meson versions
Would get "Tried to create target "qt5-qmlsink_qrc", but a
target of that name already exists." with older meson versions.
Work around that by renaming the qrc file.
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-good/-/merge_requests/633>
Nirbheek Chauhan [Wed, 17 Jun 2020 11:12:16 +0000 (16:42 +0530)]
meson: Check the nasm version with run_command
Fixes https://gitlab.freedesktop.org/gstreamer/gst-plugins-good/-/issues/751
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-good/-/merge_requests/631>
Seungha Yang [Tue, 16 Jun 2020 10:34:01 +0000 (19:34 +0900)]
rtspsrc: Don't return TRUE for unhandled query
Expected return value for unhandled query is FALSE
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-good/-/merge_requests/629>
Vivia Nikolaidou [Tue, 16 Jun 2020 08:52:38 +0000 (11:52 +0300)]
deinterlace: Add yadif ASM optimisations
Measured to be about 3.4x faster than C
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-good/-/merge_requests/621>
Vivia Nikolaidou [Fri, 12 Jun 2020 10:21:02 +0000 (13:21 +0300)]
deinterlace: Fix invalid read in yadif
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-good/-/merge_requests/621>
Matthew Waters [Fri, 12 Jun 2020 02:18:11 +0000 (12:18 +1000)]
qt/gloverlay: reset OpenGL state after Qt drawing
Reset to the original OpenGL state as required by the GStreamer OpenGL
API contract. Fixes output with a glimagesink element downstream.
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-good/-/merge_requests/623>
Matthew Waters [Fri, 12 Jun 2020 02:16:49 +0000 (12:16 +1000)]
qt/gloverlay: reset current OpenGL context after Qt
Qt may replace the drawable with its own which breaks output if Qt is
not displaying the resulting video as used with e.g. glimagesink.
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-good/-/merge_requests/623>
Sebastian Dröge [Fri, 12 Jun 2020 06:52:56 +0000 (09:52 +0300)]
flvdemux: Change a GST_ERROR_OBJECT() back to GST_DEBUG_OBJECT()
It was accidentally changed in https://gitlab.freedesktop.org/gstreamer/gst-plugins-good/-/merge_requests/436
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-good/-/merge_requests/624>
Jordan Petridis [Thu, 11 Jun 2020 17:39:33 +0000 (20:39 +0300)]
Use gst_element_class_set_metadata when passing dynamic strings
gst_element_class_set_metadata is meant to only be used with
static or inlined strings, which isn't the case for the 2 elements
here resulting in use-after-free later on.
https://gstreamer.freedesktop.org/documentation/gstreamer/gstelement.html?gi-language=c#gst_element_class_set_static_metadata
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-good/-/merge_requests/622>
Sebastian Dröge [Wed, 10 Jun 2020 13:56:22 +0000 (13:56 +0000)]
Revert "rtpjitterbuffer: Avoid deadlock on flush"
This reverts commit
54810bf44f27d9c180730f58f16f6e172c7b0bc8
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-good/-/merge_requests/620>
Thibault Saunier [Tue, 9 Jun 2020 19:12:13 +0000 (15:12 -0400)]
docs: Update plugins cache
U. Artie Eoff [Tue, 9 Jun 2020 20:09:20 +0000 (13:09 -0700)]
rtpjitterbuffer: g_queue_clear_full introduced in glib 2.60
Define g_queue_clear_full if glib < 2.60.
Fixes #747
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-good/-/merge_requests/619>
Thibault Saunier [Mon, 8 Jun 2020 15:33:16 +0000 (11:33 -0400)]
rtpsession: Make internal-ssrc as show default for doc
Thibault Saunier [Mon, 8 Jun 2020 14:56:02 +0000 (10:56 -0400)]
docs: Update plugins cache
Tim-Philipp Müller [Tue, 9 Jun 2020 14:21:25 +0000 (15:21 +0100)]
tests: don't pull in all -bad plugin, only allow the one we need
Set up our plugin include list for tests in such a way that
we don't pull in *all* plugins from -bad but only the one
used in the splitmuxsink unit test, i.e. the timecode plugin,
so we don't accidentally use other encoders/decoders such as
nvenc/dec for example.
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-good/-/merge_requests/617>
Nicolas Dufresne [Mon, 8 Jun 2020 21:41:13 +0000 (17:41 -0400)]
rtptimerqueue: Fix leak on timer collision
While the caller should make sure this does not happen, make sure timer
collision are not silently ignored and leaked.
Fixes #726
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-good/-/merge_requests/616>
Nicolas Dufresne [Fri, 27 Mar 2020 19:48:32 +0000 (15:48 -0400)]
rtpjitterbuffer: Keep JBUF lock while processing timers
Until now, do_expected_timeout() was shortly dropping the JBUF_LOCK in order
to push RTX event event without causing deadlock. As a side effect, some
CPU hung would happen as the timerqueue would get filled while looping over
the due timers. To mitigate this, we were processing the lost timer first and
placing into a queue the remainign to be processed later.
In the gap caused by an unlock, we could endup receiving one of the seqnum
present in the pending timers. In that case, the timer would not be found and
a new one was created. When we then update the expected timer, the seqnum
would already exist and the updated timer would be lost.
In this patch we remove the unlock from do_expected_timeout() and place all
pending RTX event into a queue (instead of pending timer). Then, as soon as
we have selected a timer to wait (or if there is no timer to wait for) we send
all the upstream RTX events. As we no longer unlock, we no longer need to pop
more then one timer from the queue, and we do so with the lock held, which
blocks any new colliding timers from being created.
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-good/-/merge_requests/616>
Guillaume Desmottes [Mon, 8 Jun 2020 07:33:10 +0000 (09:33 +0200)]
tests: vp9enc: enforce I420 format
Test was not enforcing a video format on videotestsrc. I420 was picked
as it was the first format in GST_VIDEO_FORMATS_ALL which will no longer
be true (gst-plugins-base!689).
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-good/-/merge_requests/615>
Edward Hervey [Sat, 30 May 2020 06:55:19 +0000 (08:55 +0200)]
rtpjitterbuffer: Avoid deadlock on flush
When a GST_EVENT_FLUSH_START reaches the jitterbuffer, there is a chance that
our task is currently blocking waiting for a timer.
There was two problems:
* That wait wasn't checking for flushing situations
* The flushing handling wasn't waking up that conditional (to check whether it
should abort)
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-good/-/merge_requests/608>
Mathieu Duponchelle [Fri, 5 Jun 2020 22:42:25 +0000 (00:42 +0200)]
plugins: uddate gst_type_mark_as_plugin_api() calls
Sebastian Dröge [Fri, 5 Jun 2020 08:49:17 +0000 (11:49 +0300)]
rtpbin: Initialize uninitialized variable correctly
`last_out` would be used uninitialized if the element has no `set-active`
signal. Initialize it to -1 as that's what the "default" value is
further below.
CID 1455443
Fixes https://gitlab.freedesktop.org/gstreamer/gst-plugins-good/-/issues/727
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-good/-/merge_requests/613>
Mikhail Fludkov [Thu, 26 Nov 2015 16:52:29 +0000 (17:52 +0100)]
vpxenc: Add new bit-per-pixel property to select a better "default" bitrate
As part of this also change the default bitrate value to 0. The default
value was 256000 previously. In reality, if the property was not set the
bitrate value would be scaled according to the resolution which is not
very intuitive behavior. It is better to use 0 for this purpose. Now
together with newly introduced property "bits-per-pixel" 0 means to
assign the bitrate according to resolution/framerate.
The default bitrates are now
- 1.2Mbps for VP8 720p@30fps
- 0.8Mbps for VP9 720p@30fps
and scaled accordingly for different resolutions/framerates.
Previously the default bitrate was also not scaled according to the
framerate but only took the resolution into account.
This also fixes the side effect of setting bitrate to 0. Previously
encoder would not produce any data at all.
Addition from Sebastian Dröge <sebastian@centricular.com> to assume
30fps if no framerate is given in the caps instead of not calculating
any bitrate at all.
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-good/-/merge_requests/611>
Thibault Saunier [Wed, 3 Jun 2020 22:35:58 +0000 (18:35 -0400)]
doc: Require hotdoc >= 0.11.0
Thibault Saunier [Tue, 2 Jun 2020 18:58:47 +0000 (14:58 -0400)]
doc: Fix wrong link to GString in rtpjitterbuffer
Sebastian Dröge [Wed, 27 May 2020 13:01:22 +0000 (16:01 +0300)]
docs: Update gst_plugins_cache.json
Mathieu Duponchelle [Fri, 29 May 2020 23:29:03 +0000 (01:29 +0200)]
plugins: Use gst_type_mark_as_plugin_api() for all non-element plugin types
Stian Selnes [Wed, 28 Feb 2018 14:46:51 +0000 (15:46 +0100)]
vpxdec: Check that output width and height != 0
For VP8 it's possible to signal width or height to be 0, but it does
not make sense to do so. For VP9 it's impossible. Hence, we most
likely have a corrupt stream. Trying to negotiate caps downstream with
either width or height as 0 will fail with something like
gst_video_decoder_negotiate_default: assertion 'GST_VIDEO_INFO_WIDTH (&state->info) != 0' failed
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-good/-/merge_requests/610>
Seungha Yang [Thu, 28 May 2020 15:45:03 +0000 (00:45 +0900)]
speex: Fix crash on Windows caused by cross-CRT issue
Use speex_header_free() to free memory which was allocated by
library. Cross-CRT issue should not happen on 1.17 Cerbero build
but might happen custom build or so.
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-good/-/merge_requests/606>
Sebastian Dröge [Wed, 27 May 2020 19:33:31 +0000 (22:33 +0300)]
rtspsrc: Use the correct type for storing the max-rtcp-rtp-time-diff property
It's an integer property and rtpbin also expects an integer. Passing it
as a GstClockTime (guint64) to g_object_set() will cause problems, and
on big endian MIPS apparently causes crashes.
Fixes https://gitlab.freedesktop.org/gstreamer/gst-plugins-good/-/issues/737
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-good/-/merge_requests/605>
Tim-Philipp Müller [Wed, 27 May 2020 11:42:38 +0000 (12:42 +0100)]
tests: fix meson test env setup to make sure we use the right gst-plugin-scanner
If core is built as a subproject (e.g. as in gst-build), make sure to use
the gst-plugin-scanner from the built subproject. Without this, gstreamer
might accidentally use the gst-plugin-scanner from the install prefix if
that exists, which in turn might drag in gst library versions we didn't
mean to drag in. Those gst library versions might then be older than
what our current build needs, and might cause our newly-built plugins
to get blacklisted in the test registry because they rely on a symbol
that the wrongly-pulled in gst lib doesn't have.
This should fix running of unit tests in gst-build when invoking
meson test or ninja test from outside the devenv for the case where
there is an older or different-version gst-plugin-scanner installed
in the install prefix.
In case no gst-plugin-scanner is installed in the install prefix, this
will fix "GStreamer-WARNING: External plugin loader failed. This most
likely means that the plugin loader helper binary was not found or
could not be run. You might need to set the GST_PLUGIN_SCANNER
environment variable if your setup is unusual." warnings when running
the unit tests.
In the case where we find GStreamer core via pkg-config we use
a newly-added pkg-config var "pluginscannerdir" to get the right
directory. This has the benefit of working transparently for both
installed and uninstalled pkg-config files/setups.
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-good/-/merge_requests/603>
Thibault Saunier [Tue, 26 May 2020 00:11:31 +0000 (20:11 -0400)]
rtspsrc: Error out when failling to receive message response
And let it rety twice.
Fixes https://gitlab.freedesktop.org/gstreamer/gst-plugins-good/-/issues/717
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-good/-/merge_requests/601>
Nicolas Dufresne [Thu, 21 May 2020 21:12:55 +0000 (17:12 -0400)]
v4l2: videodec: Fix broken template caps
The profiles and levels were applied to the common caps instead of the copy.
That had the side effect of setting profiles/level from one CODEC onto
another. Leaving to encoder not being registered or not-negotiated errors.
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-good/-/merge_requests/599>
Nicolas Dufresne [Thu, 21 May 2020 21:09:39 +0000 (17:09 -0400)]
v4l2: codec: Fix GValue leak
The levels and profiles probe function returned a dynamically allocated GValue
that was leaked. Simplify this by using a stack allocated GValue and a boolean
return value.
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-good/-/merge_requests/599>
Nicolas Dufresne [Thu, 21 May 2020 20:39:53 +0000 (16:39 -0400)]
v4l2codec: Remove uneeded factorisation
There is only one user of that function and the split only increase
complexicity.
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-good/-/merge_requests/599>
Nicolas Dufresne [Wed, 20 May 2020 21:30:59 +0000 (17:30 -0400)]
v4l2src: Ignore non-increasing sequence number
With older kernel, older driver or just broken drivers, the sequence number
may not be increasing. This simply ignore the sequence in this case. This
would otherwise miss-leading large amount of lost frame being reported.
Fixes #729
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-good/-/merge_requests/598>
Matthew Waters [Mon, 18 May 2020 03:17:14 +0000 (13:17 +1000)]
qtoverlay: add the root item as a property
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-good/-/merge_requests/595>
Sebastian Dröge [Wed, 20 May 2020 10:17:13 +0000 (13:17 +0300)]
flvdemux: Send gap events if one of the streams falls behind the other by more than 3s
Same mechanism and threshold as in other demuxers.
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-good/-/merge_requests/597>
Sebastian Dröge [Wed, 20 May 2020 09:53:56 +0000 (12:53 +0300)]
flvdemux: Remove unused audio_linked/video_linked booleans
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-good/-/merge_requests/597>
Edward Hervey [Wed, 20 May 2020 08:46:45 +0000 (10:46 +0200)]
flvdemux: Answer bitrate queries from upstream
If upstream (such as queue2 in urisourcebin) asks for our bitrate, check if we
have stored audio/video bitrates, and use them.
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-good/-/merge_requests/596>
Edward Hervey [Wed, 20 May 2020 08:45:16 +0000 (10:45 +0200)]
flvdemux: Handle empty metadata strings
g_utf8_validate() errors out on empty string. But empty strings are valid,
so only check if they're not
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-good/-/merge_requests/596>
Edward Hervey [Wed, 20 May 2020 08:44:19 +0000 (10:44 +0200)]
flvdemux: Set ACCEPT_TEMPLATE flag on sinkpad
A demuxer can accept any caps matching its sinkpad template caps
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-good/-/merge_requests/596>
Raul Tambre [Fri, 15 May 2020 16:20:45 +0000 (19:20 +0300)]
qtglrenderer.cc: Fix compiling
46bfb7d247aef880c15300dad63eb2bbf6dc4928 fixed a format warning without checking if it actually compiled.
toUtf8() returns QByteArray so we need to assign it to a temporary variable to be able to get the raw string data from it.
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-good/-/merge_requests/593>
Raul Tambre [Fri, 15 May 2020 06:07:25 +0000 (06:07 +0000)]
qtglrenderer.cc: Fix -Wformat-security warning
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-good/-/merge_requests/592>
Nirbheek Chauhan [Mon, 11 May 2020 23:05:37 +0000 (04:35 +0530)]
meson: Pass native: false to add_languages()
This is needed for cross-compiling without a build machine compiler
available. The option was added in 0.54, but we only need this in
Cerbero and it doesn't break older versions so it should be ok.
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-good/-/merge_requests/589>