Haihao Xiang
c778686a3c
test: enlarge the number
...
This is to make sure the case can pass after adding new video formats.
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-base/-/merge_requests/1141 >
2021-05-11 12:24:41 +08:00
Nicolas Dufresne
d3ac7bfcbf
codec: Introduce GstVideoCodecAlphaMeta
...
This meta hold one buffer of the same codec data as the parent memory. This
extra frame luma will be used as the alpha values for the final combined
frame. This is notably used to support VP8/VP9 alpha as defined in WebM and
matroska specification.
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-base/-/merge_requests/1128 >
2021-05-10 16:33:11 -04:00
He Junyan
64b596103a
va: Do not use a common parent_class in vabasedec.
...
We have only one copy of gst_va_base_dec_parent_class inside the
vabasedec, so it can not handle the case when there are multi va
decoders inside one pipeline. The pipeline:
gst-launch-1.0 filesrc location=xxx.h264 ! h264parse \
! vah264dec ! msdkh265enc ! vah265dec ! fakesink
generates a assertion of
"invalid cast from 'GstVaH264Dec' to 'GstH265Decoder"
and gets a crash.
We should keep the parent_class for each decoder type.
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/2231 >
2021-05-10 22:47:11 +08:00
Haihao Xiang
c5f36d67fb
mediatype-video-raw: add RGBP and BGRP formats
...
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-docs/-/merge_requests/153 >
2021-05-10 16:28:32 +08:00
Doug Nazar
294ad1d564
tests: Run ges-launch tests non-interactively
...
It's not needed for the tests and fixes an occasional issue where
the terminal is left in -echo mode.
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-editing-services/-/merge_requests/248 >
2021-05-10 02:09:10 +00:00
Víctor Manuel Jáquez Leal
da27722351
libs: codecs: h264decoder: Assert output_picture virtual method.
...
For new code it's nice to assert if the derived class implemented the
output_picture virtual method. Otherwise a segmentation fault
occurs. All other decoders assert this method.
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/2228 >
2021-05-07 20:20:59 +00:00
Jan Alexander Steffens (heftig)
c9a04ca979
wpe: Properly free property fields
...
The set location (in two places) and loaded bytes were not freed when
the element is destroyed.
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/2222 >
2021-05-07 16:01:49 +00:00
Jan Alexander Steffens (heftig)
950d5eedf9
wpe: Properly lock property fields
...
Use the object lock for the following fields:
- `bytes`: Written by the `load-bytes` signal unless running; consumed
on start.
- `draw_background`: Read and written by the `draw-background`
property.
- `location`: Read and written by the `location` property and the URI
handler.
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/2222 >
2021-05-07 16:01:49 +00:00
Jan Alexander Steffens (heftig)
3d02559002
rtpsrc: Plug leak of rtcp_send_addr
...
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/2226 >
2021-05-07 12:34:20 +00:00
Jan Alexander Steffens (heftig)
88d7141ba4
rtpsink: Return proper pad from _request_new_pad
...
Bizarrely, it returned a pad from the child rtpbin. I noticed because
our application leaked the implicitly created ghost pad. Make an
explicit ghost pad so this works properly.
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/2227 >
2021-05-07 12:07:05 +00:00
Jan Alexander Steffens (heftig)
ddac6ab91d
rist: Plug leak of rtcp_send_addr
...
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/2225 >
2021-05-07 11:06:53 +00:00
Jan Alexander Steffens (heftig)
0ff50d6723
udpsrc: Plug leaks of saddr in error cases
...
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-good/-/merge_requests/977 >
2021-05-07 10:09:38 +00:00
Jan Alexander Steffens (heftig)
e425bcada5
udpsrc: Whitespace
...
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-good/-/merge_requests/977 >
2021-05-07 10:09:38 +00:00
Jan Alexander Steffens (heftig)
fa1cc0a81f
deinterlace: Plug a method subobject leak
...
Changing the method would leak the previous method.
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-good/-/merge_requests/976 >
2021-05-07 09:31:48 +00:00
Víctor Manuel Jáquez Leal
bd2bbadeb0
va: av1dec: Avoid structure overwrite.
...
VADecPictureParameterBufferAV1.mode_control_fields.bits were filled
twice, overwriting to zeros the first assignation. This patch unifies
both assignations.
Also it makes explicit an enum casting between libva and gstreamer; it
removes the assignation to zero a deprecated parameter; and use an
appropriate assertion.
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/2223 >
2021-05-07 11:22:33 +02:00
Doug Nazar
24f0370c2d
sparsefile: Fix sparsefile on Win32
...
When switching between read/write a fseek() or fflush() is required.
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/814 >
2021-05-06 23:04:27 -04:00
Doug Nazar
c71805c565
downloadbuffer: close file before trying to remove
...
On Windows, the file handles must be closed before you can delete a file.
Also, it would cause an error if you try to close an already closed handle.
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/814 >
2021-05-06 23:04:27 -04:00
Doug Nazar
135f517ea3
downloadbuffer: return flow error on read error
...
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/814 >
2021-05-06 23:04:27 -04:00
Nicolas Dufresne
d9a0313aa0
vp9enc: Add color range support
...
When setting the colorspace, we now clear the range to reduced range,
the default, and then we also set the range so the VP9 encoder encodes
the right information in the bitstream.
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-good/-/merge_requests/975 >
2021-05-06 16:00:47 -04:00
Nicolas Dufresne
91da1c3c08
vp9enc: Move colorspace configuration in VP9 enc
...
This is not supported by VP8 and was causing a warning.
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-good/-/merge_requests/975 >
2021-05-06 16:00:47 -04:00
Nikolay Sivov
41ee497b90
gstutils: Fix typo in the comment.
...
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/813 >
2021-05-06 22:20:57 +03:00
Nicolas Dufresne
3e97236844
vpxdenc: Add a GstVideoCodecState to configure_encoder virtual
...
This will be needed to configure the VP9 specific colorimetry, which is
currently configured for VP8 casing warning.
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-good/-/merge_requests/975 >
2021-05-06 15:07:01 -04:00
Matthew Waters
a78c907597
webrtc: only add nack pli by default if kind is video
...
Sending/receiving PLI's (Picture Loss Indication) for non-video doesn't
really make sense. This also matches what the browsers do.
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/2220 >
2021-05-06 12:19:51 +00:00
Matthew Waters
1470660976
webrtc: move webrtc_kind_from_caps() to utils
...
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/2220 >
2021-05-06 12:19:51 +00:00
Jan Alexander Steffens (heftig)
4ad1c8b7c9
multiqueue: Ensure peer pad exists when iterating internal links
...
The pads can be NULL when we're racing with pad removal, e.g. when the
pads get removed between `gst_pad_iterate_internal_links` acquiring the
parent element and `gst_multi_queue_iterate_internal_links` locking the
multiqueue.
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/810 >
2021-05-06 13:08:26 +02:00
Seungha Yang
90edef103c
wasapi2: Propagate HRESULT error code everywhere
...
... instead of boolean value which cannot notify the reason
of the operation failure.
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/2219 >
2021-05-06 08:40:37 +00:00
Sebastian Dröge
da0e6b0afc
hlssink(2): Don't write deprecated EXT-X-ALLOW-CACHE metadata
...
It's deprecated since quite a few versions and various validators
complain about it. Instead of the in-manifest metadata this should be
handled by the normal HTTP caching headers.
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/2221 >
2021-05-06 10:46:15 +03:00
Chris White
b48e32ab00
gst_child_proxy_get_property: accept G_VALUE_INIT
...
gst_child_proxy_get_property() can now take a value initialized to
G_VALUE_INIT. This parallels the corresponding change in
g_object_get_property(), GLib 2.60+.
https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/724#note_738531
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/809 >
2021-05-06 10:35:51 +03:00
Bastien Nocera
04fdfc4bf1
gtk: Remove coordinates double-translation
...
Remove our own translation in the mouse event capture code, as that
translation will be done through the navigation interface.
Tested by resizing the window created by:
gst-launch-1.0 -v videotestsrc ! navigationtest ! glupload ! glcolorconvert ! tee name=t ! gtkglsink
and checking that the cursor follows the mouse as expected.
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-good/-/merge_requests/974 >
2021-05-06 01:18:18 +00:00
Bastien Nocera
9cd6d02cff
gtk: Translate navigation events coordinates
...
If the application passed down some pointer coordinates, translate those
from display coordinates to stream coordinates, so things work as
expected even if the video is resized.
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-good/-/merge_requests/974 >
2021-05-06 01:18:18 +00:00
Bastien Nocera
604278a194
gtk: Export _display_size_to_stream_size()
...
Export _display_size_to_stream_size() so that GstNavigation implementors
can translate from display coordinates to stream coordinates before
pushing the events upstream to the DVD source, for example.
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-good/-/merge_requests/974 >
2021-05-06 01:18:18 +00:00
David Fernandez
056f8ce6ca
matroska-mux: Change accepted caps width and height from [16, MAX] to [1, MAX]
...
There are cases where the video size might be less than 16x16.
This change allows the Matroska muxer to accept this cases.
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-good/-/merge_requests/539 >
2021-05-05 16:31:33 -04:00
David Fernandez
828d1d0d18
x264enc: Change accepted caps width and height from [16, MAX] to [1, MAX]
...
There are cases where the video size might be less than 16x16.
This change allows the x264 encoder to accept this cases.
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-ugly/-/merge_requests/44 >
2021-05-05 16:29:13 -04:00
Nicolas Dufresne
ac54f073d8
video: Sort includes in video.h
...
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-base/-/merge_requests/1128 >
2021-05-05 16:20:37 -04:00
Seungha Yang
81ac09cfda
decklinkvideosrc: Fix crash when mode is not specified
...
In that case, we will get "VideoInputFrameArrived" callback
without "VideoInputFormatChanged"
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/2218 >
2021-05-06 01:37:33 +09:00
Sebastian Dröge
5a65f5f3b7
multihandlesink: Use the monotonic clock for detecting timeouts and connection durations
...
Otherwise real-time clock changes can wrongly trigger timeouts, or not
cause timeouts to happen in time.
Unfortunately real-time clock times still have to be kept track inside
the elements for the statistics. Switching those over to the monotonic
clock would cause behaviour changes from the application point of view.
The statistics are extended with fields with monotonic times though.
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-base/-/merge_requests/1137 >
2021-05-05 16:12:38 +00:00
Sebastian Dröge
26b8a96b84
appsrc: Add test for testing the max-* and leaky-type properties
...
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-base/-/merge_requests/1133 >
2021-05-05 15:13:33 +00:00
Sebastian Dröge
02530e9d3e
appsrc: Implement a leaky property similar to the queue element
...
This allows dropping the newest or oldest buffer when the internal queue
is full instead of blocking or continuing to grow.
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-base/-/merge_requests/1133 >
2021-05-05 15:13:33 +00:00
Sebastian Dröge
d987ec21f2
appsrc: Add new max-buffers / max-time / current-level-buffers / current-level-time properties
...
These work the same way as the corresponding properties on queue and
allow to control the internal buffer size of the appsrc in a more
flexible way.
Unlike in queue the max-buffers and max-time properties are 0 (i.e.
disabled) by default for backwards compatibility reasons.
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-base/-/merge_requests/1133 >
2021-05-05 15:13:33 +00:00
Doug Nazar
6c9d6fd986
rtsp-media: fix leak when adding converter
...
Free the previous caps before reusing the variable for the converter caps.
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-rtsp-server/-/merge_requests/204 >
2021-05-05 10:02:48 +00:00
Doug Nazar
4c6e57ad33
rtsp-client: fix leak adding headers
...
gst_rtsp_message_add_header() makes a copy of the header, instead
of taking ownership.
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-rtsp-server/-/merge_requests/204 >
2021-05-05 10:02:48 +00:00
Thibault Saunier
4b0e54b1fb
track-element: Fix and cleanup annotations
...
Making the class subclass able by bindings
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-editing-services/-/merge_requests/231 >
2021-05-05 10:02:44 +00:00
Thibault Saunier
906654de87
ges: Move GESVideo/AudioSource::create_source to GESSource
...
Deprecating the old variants which were not introspectable
and cleaning a bit the API.
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-editing-services/-/merge_requests/231 >
2021-05-05 10:02:44 +00:00
Nirbheek Chauhan
4c4f031207
h265parse: don't invalidate the last PPS when parsing a new SPS
...
This is a port of https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/2019
to h265parse.
When a SPS is received then any previous PPS remains valid. So don't clear
the PPS flag from the parser state.
This is important because there are encoders that don't generated a PPS after
every SPS.
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/2217 >
2021-05-05 10:02:28 +00:00
Stéphane Cerveau
1fd8c1501a
validate: add config file support
...
Each test can now use a config file for
the given media file used to test.
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-devtools/-/merge_requests/243 >
2021-05-05 10:58:10 +02:00
François Laignel
ca7a964fb1
Use gst_element_request_pad_simple...
...
Instead of the deprecated gst_element_get_request_pad.
2021-05-05 11:55:54 +03:00
François Laignel
39f0905a7e
Use gst_element_request_pad_simple
...
Instead of the deprecated gst_element_get_request_pad.
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-good/-/merge_requests/958 >
2021-05-05 06:17:20 +00:00
François Laignel
ad3d7d34cc
Use gst_element_request_pad_simple...
...
Instead of the deprecated gst_element_get_request_pad.
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/2180 >
2021-05-05 06:17:14 +00:00
François Laignel
875e01e90a
Use gst_element_request_pad_simple...
...
Instead of the deprecated gst_element_get_request_pad.
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-examples/-/merge_requests/35 >
2021-05-05 06:17:06 +00:00
François Laignel
5f5b812844
Use gst_element_request_pad_simple...
...
Instead of the deprecated gst_element_get_request_pad.
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-rtsp-server/-/merge_requests/195 >
2021-05-05 06:17:00 +00:00