platform/upstream/gstreamer.git
6 years agoraw1394: avoid including <sys/poll.h> directly
Andre McCurdy [Thu, 4 Feb 2016 02:12:38 +0000 (18:12 -0800)]
raw1394: avoid including <sys/poll.h> directly

Note from Edward Hervey: Patch from git.yoctoproject.org

musl libc generates warnings if <sys/poll.h> is included directly.

Upstream-Status: Pending

Signed-off-by: Andre McCurdy <armccurdy@gmail.com>
6 years agoqtdemux_parse_segments: remove superfluous variable
Alicia Boya García [Fri, 23 Feb 2018 12:38:32 +0000 (13:38 +0100)]
qtdemux_parse_segments: remove superfluous variable

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

6 years agoflvmux: Remove custom get_next_time implementation
Olivier Crête [Mon, 23 Apr 2018 17:29:30 +0000 (13:29 -0400)]
flvmux: Remove custom get_next_time implementation

GstAggregator now does the same thing in the simple implementation.

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

6 years agortpsession: Add tests for PLI and FIR
Havard Graff [Tue, 15 May 2018 10:50:30 +0000 (11:50 +0100)]
rtpsession: Add tests for PLI and FIR

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

6 years agortpsession: make "clear-pt-map" action signal actually work
Havard Graff [Mon, 30 Apr 2018 06:41:19 +0000 (08:41 +0200)]
rtpsession: make "clear-pt-map" action signal actually work

Needed for PLI + FIR unit tests in follow-up commit.

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

6 years agortpsession: Avoid unnecessary copy of stats structure
Mikhail Fludkov [Thu, 6 Oct 2016 14:08:38 +0000 (16:08 +0200)]
rtpsession: Avoid unnecessary copy of stats structure

The code before copied GstStructure twice. The first time inside
gst_value_set_structure and the second time in g_value_array_append.
Optimized version does no copies, just transfers ownership to
GValueArray. It takes advantage of the fact that array has already
enough elements preallocated and the memory is zero initialized.

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

6 years agoRevert "BugFix : Change peak value to normalize audio file with fallback gain"
Tim-Philipp Müller [Tue, 15 May 2018 09:35:09 +0000 (10:35 +0100)]
Revert "BugFix : Change peak value to normalize audio file with fallback gain"

This reverts commit 36e49fd6f872f0b3f33083107a55fb7f671a47d0.

Breaks unit test, someone needs to investigate if it's the
patch's fault or if the test needs adjusting/updating.

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

6 years agortpsession: Drop packet if trying to send from non-internal source
Stian Selnes [Tue, 13 Dec 2016 09:13:52 +0000 (10:13 +0100)]
rtpsession: Drop packet if trying to send from non-internal source

If obtain_internal_source() returns a source that is not internal it
means there exists a non-internal source with the same ssrc. Such an
ssrc collision should be handled by sending a GstRTPCollision event
upstream and choose a new ssrc, but for now we simply drop the packet.
Trying to process the packet further will cause it to be pushed
usptream (!) since the source is not internal (see source_push_rtp()).

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

6 years agomatroskademux: tag disabled streams with FLAG_UNSELECT
Tim-Philipp Müller [Sun, 13 May 2018 23:29:24 +0000 (00:29 +0100)]
matroskademux: tag disabled streams with FLAG_UNSELECT

So they're never picked as default, only by explicit
user action.

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

6 years agoqtmux: Print expected/actual values in debug log on mismatch in prefill mode
Sebastian Dröge [Mon, 14 May 2018 18:06:55 +0000 (21:06 +0300)]
qtmux: Print expected/actual values in debug log on mismatch in prefill mode

This helps debugging a lot.

6 years agortpsession: Try media_ssrc if no src can be found for PLI sender_ssrc
Havard Graff [Tue, 10 Apr 2018 16:05:47 +0000 (18:05 +0200)]
rtpsession: Try media_ssrc if no src can be found for PLI sender_ssrc

Some RTP stacks out there does not set the sender_ssrc. In order to be
more robust, try to lookup the media_ssrc before dropping the PLI.

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

6 years agortpsession: Fix on-feedback-rtcp race
Mikhail Fludkov [Fri, 25 Aug 2017 09:59:00 +0000 (11:59 +0200)]
rtpsession: Fix on-feedback-rtcp race

If there is an external source which is about to timeout and be removed
from the source hashtable and we receive feedback RTCP packet with the
media ssrc of the source, we unlock the session in
rtp_session_process_feedback before emitting 'on-feedback-rtcp' signal
allowing rtcp timer to kick in and grab the lock. It will get rid of
the source and rtp_session_process_feedback will be left with RTPSource
with ref count 0.

The fix is to grab the ref to the RTPSource object in
rtp_session_process_feedback.

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

6 years agortpsession: Add missing lock around sess->ssrcs iteration
Stian Selnes [Mon, 27 Nov 2017 09:56:47 +0000 (10:56 +0100)]
rtpsession: Add missing lock around sess->ssrcs iteration

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

6 years agortpsession: do not emit RBs for internal senders.
John-Mark Bell [Fri, 25 Aug 2017 09:22:47 +0000 (11:22 +0200)]
rtpsession: do not emit RBs for internal senders.

These are the sources we send from, so there is no reason to
report receive statistics for them (as we do not receive on them,
and the remote side has no knowledge of them).

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

6 years agotests: rtpsession: fix indentation
Havard Graff [Tue, 10 Apr 2018 16:22:57 +0000 (18:22 +0200)]
tests: rtpsession: fix indentation

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

6 years agov4l2: Fix typo in debug messages
Edward Hervey [Sat, 12 May 2018 06:03:28 +0000 (08:03 +0200)]
v4l2: Fix typo in debug messages

It's a decoder, not an encoder :)

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

6 years agosplitmuxsink: Added caption_%u pad template
Vivia Nikolaidou [Thu, 22 Mar 2018 17:00:37 +0000 (18:00 +0100)]
splitmuxsink: Added caption_%u pad template

For closed-caption-enabled muxers (e.g. qtmux)

6 years agoqtdemux: Initialize riff library
Edward Hervey [Thu, 10 May 2018 11:57:30 +0000 (13:57 +0200)]
qtdemux: Initialize riff library

Avoids debugging message issues. Also just use the main riff header

6 years agotests: qtdemux: Add test for stream change
Seungha Yang [Tue, 8 May 2018 11:31:41 +0000 (20:31 +0900)]
tests: qtdemux: Add test for stream change

Add test case to verify track-id change and stream change

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

6 years agoqtdemux: Protect _expose_streams() from flush event
Seungha Yang [Tue, 8 May 2018 11:30:18 +0000 (20:30 +0900)]
qtdemux: Protect _expose_streams() from flush event

Flush during stream change can break autoplugging or the
flush event could be dropped.

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

6 years agoqtdemux: Try to expose whenever got new moov or new stream-start
Seungha Yang [Tue, 8 May 2018 11:26:41 +0000 (20:26 +0900)]
qtdemux: Try to expose whenever got new moov or new stream-start

Whenever got new moov or new stream-start,
demux will try to expose new pad by following rule.

Comparing stream-id in the current moov with previous one, then
* If matched stream-id is found from previous one,
  reuse existing pad (most common case)
* Otherwise, expose new pad with new stream-start
* No more used stream will be freed

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

6 years agoqtdemux: Remove duplication of initializing member variables
Seungha Yang [Tue, 8 May 2018 11:10:39 +0000 (20:10 +0900)]
qtdemux: Remove duplication of initializing member variables

Most initialization of variables in gst_qtdemux_init() are duplicated in
gst_qtdemux_reset() function.

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

6 years agoqtdemux: Create stream whenever got new moov
Seungha Yang [Tue, 8 May 2018 11:09:10 +0000 (20:09 +0900)]
qtdemux: Create stream whenever got new moov

Whenever demux got moov, demux will create new stream. Only exception is
duplicated track-id in a moov box. In that case the first stream
will be accepted. This patch is pre-work for rework of moov handling.

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

6 years agoqtdemux: Store stream-id to manage streams
Seungha Yang [Tue, 8 May 2018 10:57:11 +0000 (19:57 +0900)]
qtdemux: Store stream-id to manage streams

In order to figure out stream change such as
track-id change or stream-id change, demux will store
 stream-id per QtDemuxStream structure.

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

6 years agoqtdemux: Use GList to manage QtDemuxStream
Seungha Yang [Tue, 8 May 2018 10:39:02 +0000 (19:39 +0900)]
qtdemux: Use GList to manage QtDemuxStream

* Move to GList from static array
* Logging track-id instead of array index. It's more meaningful.

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

6 years agoqtdemux: Adjust the number of args of some functions
Seungha Yang [Tue, 8 May 2018 09:44:15 +0000 (18:44 +0900)]
qtdemux: Adjust the number of args of some functions

To be used with g_list_free_full in the next patch

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

6 years agoqtdemux: Add parentheses in macro
Seungha Yang [Tue, 8 May 2018 09:22:58 +0000 (18:22 +0900)]
qtdemux: Add parentheses in macro

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

6 years agoisomp4: Use full date time if available
Marinus Schraal [Mon, 19 Mar 2018 22:36:13 +0000 (23:36 +0100)]
isomp4: Use full date time if available

The ©day tag contains a full date time, use it for the DATE_TIME tag
instead of just the DATE tag. This overrules the unreliable qt creation
time.

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

6 years agortspsrc: Fix doc comment markers
Jan Schmidt [Thu, 15 Mar 2018 11:59:39 +0000 (22:59 +1100)]
rtspsrc: Fix doc comment markers

6 years agoicydemux: avoid timestamp field initialisation for tag event
Kyrylo Polezhaiev [Tue, 2 Feb 2016 16:58:24 +0000 (18:58 +0200)]
icydemux: avoid timestamp field initialisation for tag event

This field is not used and will be removed in 2.0 API.

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

6 years agodcaparse: do not accept header with invalid channel count
Matej Knopp [Sun, 5 Oct 2014 13:51:18 +0000 (15:51 +0200)]
dcaparse: do not accept header with invalid channel count

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

6 years agomeson: Update option names to omit disable_ and with- prefixes
Nirbheek Chauhan [Sat, 5 May 2018 13:57:24 +0000 (19:27 +0530)]
meson: Update option names to omit disable_ and with- prefixes

Also yield common options to the outer project (gst-build in our case)
so that they don't have to be set manually.

6 years agoBugFix : Change peak value to normalize audio file with fallback gain
Anthony Violo [Thu, 12 Apr 2012 07:53:24 +0000 (09:53 +0200)]
BugFix : Change peak value to normalize audio file with fallback gain

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

6 years agortpvrawpay: don't use buffer lists if everything fits into one buffer
Tim-Philipp Müller [Sat, 5 May 2018 14:32:59 +0000 (16:32 +0200)]
rtpvrawpay: don't use buffer lists if everything fits into one buffer

People might use very large mtu sizes where every payload
fits into a single output packet.

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

6 years agoconfigure: Fix hard-coded enabled v4l2 probe on Linux/ARM
Kirill Marinushkin [Wed, 4 Apr 2018 13:50:55 +0000 (15:50 +0200)]
configure: Fix hard-coded enabled v4l2 probe on Linux/ARM

Currently, enable_v4l2_probe is hard-coded to "yes" on linux, platforms
arm and aarch64. This even overrides the --disable-v4l2-probe argument.
As a result, it is impossible to disable v4l2_probe. It becomes a problem
for use-cases, when startup time is critical, because the v4l2_probe
feature increases the initialization time.

This commit makes the v4l2_probe feature configurable.
On linux, platforms arm and aarch64, the default value is still "yes".
But now it can be disabled by the --disable-v4l2-probe argument.

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

6 years agoflvmux: Don't wake up the muxer unless there is data
Olivier Crête [Mon, 23 Apr 2018 15:26:12 +0000 (11:26 -0400)]
flvmux: Don't wake up the muxer unless there is data

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

6 years agoflvmux: Save the current position in the output segment
Olivier Crête [Mon, 23 Apr 2018 15:19:18 +0000 (11:19 -0400)]
flvmux: Save the current position in the output segment

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

6 years agoflvmux: Wait for caps from both srcs before writing header
Olivier Crête [Thu, 19 Apr 2018 21:53:51 +0000 (17:53 -0400)]
flvmux: Wait for caps from both srcs before writing header

Wait for caps on all pads to start writing data even when source is live.

Includes unit test by Havard Graff that simulates it.

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

6 years agov4l2: rely on gst_v4l2_dup() to set no_initial_format and keep_aspect
Guillaume Desmottes [Fri, 13 Apr 2018 11:29:06 +0000 (13:29 +0200)]
v4l2: rely on gst_v4l2_dup() to set no_initial_format and keep_aspect

gst_v4l2_dup() will now take care of setting
v4l2capture->no_initial_format and keep_aspect instead of doing it
manually.

Fix a typo as keep_aspect was set twice on v4l2output but never on
v4l2capture.

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

6 years agoMeson: Generate pc file for all plugins in good
Xavier Claessens [Tue, 24 Apr 2018 18:06:10 +0000 (14:06 -0400)]
Meson: Generate pc file for all plugins in good

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

6 years agomeson: use -Wl,-Bsymbolic-functions where supported
Tim-Philipp Müller [Wed, 25 Apr 2018 09:58:41 +0000 (10:58 +0100)]
meson: use -Wl,-Bsymbolic-functions where supported

Just like the autotools build.

6 years agoqtmux: Read caption from input buffer
Edward Hervey [Wed, 25 Apr 2018 08:37:40 +0000 (10:37 +0200)]
qtmux: Read caption from input buffer

And not from unallocated output buffer GstMapInfo

CID #1435131

6 years agoisomp4: qtmux: Add Closed Caption support
Edward Hervey [Wed, 7 Feb 2018 10:00:18 +0000 (11:00 +0100)]
isomp4: qtmux: Add Closed Caption support

Supports CEA 608 and CEA 708 CC streams

Also supports usage in "Robust Prefill" mode if the incoming caption
stream is constant (i.e. there is one incoming CC buffer for each
video frame).

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

6 years agoisomp4: Make 'gmhd' atom usage more generic
Edward Hervey [Tue, 6 Feb 2018 14:38:00 +0000 (15:38 +0100)]
isomp4: Make 'gmhd' atom usage more generic

Only the 'gmin' atom is required. Any other entry within it are
optional.

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

6 years agojpegenc: Accept sof-marker=4
Thibault Saunier [Sun, 22 Apr 2018 13:40:19 +0000 (10:40 -0300)]
jpegenc: Accept sof-marker=4

sof-marker is 4 when input is in the RGB colorspace.

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

6 years agoulpfecdec: output perfect seqnums
Mathieu Duponchelle [Mon, 2 Apr 2018 14:06:35 +0000 (16:06 +0200)]
ulpfecdec: output perfect seqnums

ULP FEC, as defined in RFC 5109, has the protected and protection
packets sharing the same ssrc, and a different payload type, and
implies rewriting the seqnums of the protected stream when encoding
the protection packets. This has the unfortunate drawback of not
being able to tell whether a lost packet was a protection packet.

rtpbasedepayload relies on gaps in the seqnums to set the DISCONT
flag on buffers it outputs. Before that commit, this created two
problems:

* The protection packets don't make it as far as the depayloader,
  which means it will mark buffers as DISCONT every time the previous
  packets were protected

* While we could work around the previous issue by looking at
  the protection packets ignored and dropped in rtpptdemux, we
  would still mark buffers as DISCONT when a FEC packet was lost,
  as we cannot know that it was indeed a FEC packet, even though
  this should have no impact on the decoding of the stream

With this commit, we consider that when using ULPFEC, gaps in
the seqnums are not a reliable indicator of whether buffers should
be marked as DISCONT or not, and thus rewrite the seqnums on
the decoding side as well to form a perfect sequence, this
obviously doesn't prevent the jitterbuffer from doing its job
as the ulpfec decoder is downstream from it.

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

6 years agoRevert "rtspsrc: Fix up sendonly/recvonly attribute handling"
Sebastian Dröge [Tue, 17 Apr 2018 14:57:16 +0000 (17:57 +0300)]
Revert "rtspsrc: Fix up sendonly/recvonly attribute handling"

This reverts commit af273b4de9eb292c0b6af63665e10ca015895902.

While RFC 3264 (SDP) says that sendonly/recvonly are from the point of view of
the requester, the actual RTSP RFCs (RFC 2326 / 7826) disagree and say
the opposite, just like the ONVIF standard.

Let's follow those RFCs as we're doing RTSP here, and add a property at
a later time if needed to switch to the SDP RFC behaviour.

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

6 years agoflacparse: Drain the parser when a CAPS event is received
Sebastian Dröge [Mon, 16 Apr 2018 18:27:47 +0000 (21:27 +0300)]
flacparse: Drain the parser when a CAPS event is received

After a CAPS event, in theory a new stream can start and it might start
with the FLAC headers again. We can't detect FLAC headers in the middle
of the stream, so we drain the parser to be able to detect either FLAC
headers after the CAPS event or the continuation of the previous stream.

This fixes for example

gst-launch-1.0 audiotestsrc num-buffers=200 ! flacenc ! c. \
    audiotestsrc num-buffers=200 freq=880 ! flacenc ! c. \
    concat name=c ! rtpgstpay ! udpsink host=127.0.0.1 port=5000

gst-launch-1.0 udpsrc multicast-group=127.0.0.1 port=5000 \
    caps=application/x-rtp,media=application,clock-rate=90000,encoding-name=X-GST ! \
    rtpgstdepay ! flacparse ! flacdec ! audioconvert ! pulsesin

6 years agoAutomatic update of common submodule
Tim-Philipp Müller [Mon, 16 Apr 2018 09:52:56 +0000 (10:52 +0100)]
Automatic update of common submodule

From 3fa2c9e to ed78bee

6 years agomeson: add build files for the qml plugin
Matthew Waters [Thu, 5 Apr 2018 06:05:12 +0000 (16:05 +1000)]
meson: add build files for the qml plugin

Tested on linux with X11/wayland and semi-tested on Windows.

Windows crashes on item destruction however this is better than nothing.

Fix up some win32 build issues on the way with mismatched {} and
G_STMT_{START,END}

6 years agoflvmux test: refactor looped test.
Mathieu Duponchelle [Fri, 13 Apr 2018 21:02:26 +0000 (23:02 +0200)]
flvmux test: refactor looped test.

Looping the test 500 times to only execute the test once every
33 times means we inited and deinited gstreamer 467 times
for no reason at all, which was annoying when running the test
with valgrind.

6 years agoflvmux: unref return of aggregator_pad_peek_buffer
Mathieu Duponchelle [Fri, 13 Apr 2018 21:01:20 +0000 (23:01 +0200)]
flvmux: unref return of aggregator_pad_peek_buffer

We ended up leaking every single buffer going through the
muxer, which is far from ideal

6 years agoqtmux: Fix leak
Mathieu Duponchelle [Fri, 13 Apr 2018 20:49:43 +0000 (22:49 +0200)]
qtmux: Fix leak

gst_qt_mux_can_renegotiate () gets called everywhere following
that pattern:

return gst_qt_mux_can_renegotiate (ref(self));

This means the reference must be released both in the success
and failure cases, it was only done in the success case.

6 years agoflvmux: aggregate should not push EOS itself
Mathieu Duponchelle [Fri, 13 Apr 2018 20:44:14 +0000 (22:44 +0200)]
flvmux: aggregate should not push EOS itself

Instead it is expected to return GST_FLOW_EOS, and let the
base class handle that.

6 years agovalgrind supps: ignore gnutls leaking a certificate
Mathieu Duponchelle [Fri, 13 Apr 2018 19:19:02 +0000 (21:19 +0200)]
valgrind supps: ignore gnutls leaking a certificate

After investigating, we do dispose of the TLS connections
appropriately in the souphttpsrc test, which in turn
calls gnutls_deinit, but certificates get leaked anyway.

6 years agosouphttpsrc test: free g_get_current_dir return
Mathieu Duponchelle [Fri, 13 Apr 2018 18:35:24 +0000 (20:35 +0200)]
souphttpsrc test: free g_get_current_dir return

6 years agovalgrind supps: bring getaddrinfo suppression from -base
Mathieu Duponchelle [Fri, 13 Apr 2018 18:31:07 +0000 (20:31 +0200)]
valgrind supps: bring getaddrinfo suppression from -base

6 years agovalgrind supps: ignore more twolame conditional moves
Mathieu Duponchelle [Fri, 13 Apr 2018 18:28:35 +0000 (20:28 +0200)]
valgrind supps: ignore more twolame conditional moves

6 years agortpulpfec tests: Fix leaks
Mathieu Duponchelle [Fri, 13 Apr 2018 15:37:47 +0000 (17:37 +0200)]
rtpulpfec tests: Fix leaks

6 years agomatroskademux: Add comment about Opus clipping
Alicia Boya García [Fri, 16 Feb 2018 22:40:50 +0000 (23:40 +0100)]
matroskademux: Add comment about Opus clipping

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

6 years agov4l2object: Disable DMABuf for emulated formats
Whoopie [Wed, 11 Apr 2018 20:28:00 +0000 (20:28 +0000)]
v4l2object: Disable DMABuf for emulated formats

libv4l2 does not prevent exporting DMABuf even when emulated formats are
in use. As a side effect, userspace ends up with buffers of the original
formats which will cause issues.

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

6 years agov4l2object: Only use BT2020_12 for BT2020 v4l2 colorspace
Nicolas Dufresne [Mon, 9 Apr 2018 00:42:16 +0000 (20:42 -0400)]
v4l2object: Only use BT2020_12 for BT2020 v4l2 colorspace

BT2020_12 is not represented in V4L2, so drivers providing full colority
for BT2020 will set V4L2_XFER_FUNC_709 transfer function. To fix the
issue, we bump this to BT2020_12 if the resoltion is 4K, but we should
only do that if the colorspace is BT2020 to start with, otherwise it's
not possible to use normal BT709 for 4K 8bit formats.

6 years agov4l2object: Always set the colorimetry in S_FMT
Nicolas Dufresne [Sun, 8 Apr 2018 17:43:56 +0000 (13:43 -0400)]
v4l2object: Always set the colorimetry in S_FMT

So far we were only setting colorimetry for OUTPUT devices (v4l2sink or
m2m sink pad). This prevented selecting through caps negotiation the
colorimetry for CAPTURE devices (v4l2src or m2m src pad). This is rarely
selectable, but trying is harmless.

6 years agomonoscope: Only fixate pixel-aspect-ratio if the field exists
Sebastian Dröge [Wed, 11 Apr 2018 19:41:58 +0000 (21:41 +0200)]
monoscope: Only fixate pixel-aspect-ratio if the field exists

6 years agosplitmuxsink: Don't send fragment-opened-closed message if the reference ctx is NULL
Vivia Nikolaidou [Wed, 11 Apr 2018 14:54:38 +0000 (17:54 +0300)]
splitmuxsink: Don't send fragment-opened-closed message if the reference ctx is NULL

It can happen during teardown that the reference context becomes NULL.
In that case, trying to send the fragment-opened-closed message would
lead to a crash.

6 years agosplitmuxsink: Run gst_iterator_foreach() as long as it returns GST_ITERATOR_RESYNC
Sebastian Dröge [Wed, 11 Apr 2018 07:12:09 +0000 (09:12 +0200)]
splitmuxsink: Run gst_iterator_foreach() as long as it returns GST_ITERATOR_RESYNC

CID 1434160

6 years agoqtdemux: Fix comparision for extra caption atom
Edward Hervey [Wed, 11 Apr 2018 06:51:32 +0000 (08:51 +0200)]
qtdemux: Fix comparision for extra caption atom

We want to make sure we have *enough* data for the potential 2nd
caption atom.

CID #1434161

6 years agoqtdemux: Handle bogus caption samples
Edward Hervey [Wed, 11 Apr 2018 06:42:54 +0000 (08:42 +0200)]
qtdemux: Handle bogus caption samples

Corrupted files could potentially have multiple cdat/cdt2 atoms in
a sample entry, which is unclear how to handle.

Ignore repeated ones.

CID #1434162
CID #1434159

6 years agomonoscope: Fixate pixel-aspect-ratio too and make sure the final caps are completely...
Sebastian Dröge [Tue, 10 Apr 2018 19:15:48 +0000 (21:15 +0200)]
monoscope: Fixate pixel-aspect-ratio too and make sure the final caps are completely fixated

Otherwise e.g. this fails with assertions:
gst-launch-1.0 audiotestsrc ! audioconvert ! monoscope ! videoconvert ! \
    videoscale ! video/x-raw,width=800,height=600 ! ximagesink

6 years agoqtmux: Add comments and doc about prefill mode
Edward Hervey [Thu, 8 Mar 2018 09:10:01 +0000 (10:10 +0100)]
qtmux: Add comments and doc about prefill mode

6 years agoqtmux: Refactor pad re-negotiation code
Edward Hervey [Tue, 6 Feb 2018 13:36:50 +0000 (14:36 +0100)]
qtmux: Refactor pad re-negotiation code

It was similar for all pads

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

6 years agoqtdemux: Detect and expose CEA 608/708 Closed Caption tracks
Edward Hervey [Wed, 31 Jan 2018 14:10:03 +0000 (15:10 +0100)]
qtdemux: Detect and expose CEA 608/708 Closed Caption tracks

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

6 years agortxsend: fix wrong memory layout assumption
Mathieu Duponchelle [Tue, 3 Apr 2018 23:48:44 +0000 (01:48 +0200)]
rtxsend: fix wrong memory layout assumption

The code responsible for creating retransmitted buffers
assumed the stored buffer had been created with
rtp_buffer_new_allocate when copying the extension data,
which isn't necessarily the case, for example when
the rtp buffers come from a udpsrc.

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

6 years agortpbin: new signal "get-storage"
Mathieu Duponchelle [Mon, 2 Apr 2018 21:04:06 +0000 (23:04 +0200)]
rtpbin: new signal "get-storage"

Similar to the get-session and get-internal-session signals,
we expose a get-storage signal in addition to the
get-internal-storage signal to give access to the actual
element for applications that need to set properties on the
element, in particular "size-time"

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

6 years agosplitmuxsink: Add new reset-muxer property
Sebastian Dröge [Thu, 29 Mar 2018 16:19:21 +0000 (19:19 +0300)]
splitmuxsink: Add new reset-muxer property

With this the muxer is not set to NULL after each segment but instead
only flush events are sent to it to reset the EOS state.

As a result, the muxer will keep stream state and e.g. mpegtsmux will
keep the packet continuity counter continuous between segments as needed
by hlssink2.

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

6 years agotests: remove broken and now pointless v4l2src-test
Tim-Philipp Müller [Mon, 2 Apr 2018 11:48:50 +0000 (12:48 +0100)]
tests: remove broken and now pointless v4l2src-test

This tests APIs that don't exist any longer and also doesn't
work at all, and was last touched in a meaningful way in 2006.

6 years agov4l2: Fix unknown type name ‘off_t’ error
Seungha Yang [Tue, 20 Mar 2018 15:19:37 +0000 (00:19 +0900)]
v4l2: Fix unknown type name ‘off_t’ error

Fix following build error

gstv4l2object.h:197:17: error: unknown type name ‘off_t’
       gint fd,  off_t offset);
                 ^

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

6 years agortspsrc: reject segment seeks
Mathieu Duponchelle [Thu, 25 May 2017 01:44:39 +0000 (03:44 +0200)]
rtspsrc: reject segment seeks

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

6 years agoqtdemux: Handle variant of vorbis in mp4
Edward Hervey [Tue, 13 Feb 2018 10:50:05 +0000 (11:50 +0100)]
qtdemux: Handle variant of vorbis in mp4

Comes from gpac apparently. The codec_data uses the same packing
mechanism as matroska.

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

6 years agoqtdemux: Check sample count is valid in PIFF parsing
Edward Hervey [Thu, 22 Mar 2018 14:20:47 +0000 (15:20 +0100)]
qtdemux: Check sample count is valid in PIFF parsing

The value stored in cenc_aux_sample_count wasn't in sync with the
parsing code that followed which checks whether all entries are
valid and present.

Only write the actual sample count when we know for sure.

CID #1427087

6 years agoqt: Get EGL native display from QPA if platform header is available
Carlos Rafael Giani [Sun, 4 Mar 2018 14:14:08 +0000 (15:14 +0100)]
qt: Get EGL native display from QPA if platform header is available

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

6 years agoudpsrc: switch to using a buffer pool
Petr Kulhavy [Tue, 6 Mar 2018 01:14:34 +0000 (02:14 +0100)]
udpsrc: switch to using a buffer pool

This exposes a new property, mtu, which is used to determine the
initial size of buffers from the buffer pool. If received data
exceeds this, the element gracefully handles that in a manner similar
to what we had previously: a large memory gets filled and reallocated
at the next call to "fill".

The default size is set to 1500, which should cover most use cases.

With contributions from Mathieu Duponchelle <mathieu@centricular.com>

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

6 years agoudpsrc: optimize GstUdpSrc object for cache performance
Petr Kulhavy [Tue, 15 Nov 2016 08:39:31 +0000 (09:39 +0100)]
udpsrc: optimize GstUdpSrc object for cache performance

Optimize GstUdpSrc for cache performance.

Move the hot properties, which are used by the read function, to the top:
@used_socket, @addr, @cancellable, @skip_first_bytes, @timeout,
@retrieve_sender_address.

Remove the unused property @ttl.

Where needed reorder so that holes are avoided (the 64-bit @timeout)

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

6 years agoqtdemux: Fix seeking on streams with frame reordering
Sebastian Dröge [Mon, 5 Mar 2018 10:48:15 +0000 (12:48 +0200)]
qtdemux: Fix seeking on streams with frame reordering

The samples table is sorted by DTS, not PTS. As such we can only get the
correct result when using a binary search on it, if we search for the
DTS.
Also if we only ever search for the frame, where the following frame is
the first one with a PTS after the search position, we will generally
stop searching too early if frames are reordered.

In forwards playback this is not really a problem (after the decoder
reordered the frames, clipping is happening), in reverse playback
it means that we can output one or more frames too few as we stop too
early and the decoder would never receive it.

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

6 years agortp: Fix compilation with non-C99 compilers
Sebastian Dröge [Tue, 20 Mar 2018 09:36:32 +0000 (11:36 +0200)]
rtp: Fix compilation with non-C99 compilers

By moving variable declarations out of loop headers.

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

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

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

6 years agortpulpfecdec: fix build with older gcc
Tim-Philipp Müller [Mon, 19 Mar 2018 18:39:08 +0000 (18:39 +0000)]
rtpulpfecdec: fix build with older gcc

As on Ubuntu Trusty.

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

6 years agosplitmuxsink: Allow splitting at exactly the time/bytes threshold
Sebastian Dröge [Mon, 19 Mar 2018 08:58:28 +0000 (10:58 +0200)]
splitmuxsink: Allow splitting at exactly the time/bytes threshold

76e458a119926424e9dd5acf3210a592a314d713 changed the conditions from
"queued > threshold" to "queued >= threshold", which broke hlssink2 and
resulting in too small fragments being created although keyframes would
be at *exactly* the configured threshold.

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

6 years agortpulpfec: fix unconditional use of __attribute__ ((packed))
Tim-Philipp Müller [Sat, 17 Mar 2018 20:29:35 +0000 (20:29 +0000)]
rtpulpfec: fix unconditional use of __attribute__ ((packed))

Fix compilation with MSVC. We still assume that attribute
is supported by all other relevant compilers, which seems
to be the case since we haven't had any complaints about
similar code in rtpsbcpay.

6 years agortpulpfec: don't use non-portable notation for 64-bit int constants
Tim-Philipp Müller [Sat, 17 Mar 2018 13:04:47 +0000 (13:04 +0000)]
rtpulpfec: don't use non-portable notation for 64-bit int constants

Use GLib macro instead, even if it's a bit unwieldy.

6 years agortpulpfecdec: don't use __builtin_ctzll unconditionally
Tim-Philipp Müller [Sat, 17 Mar 2018 12:55:57 +0000 (12:55 +0000)]
rtpulpfecdec: don't use __builtin_ctzll unconditionally

Fixes build with MSVC, and possibly other compilers too.

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

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

6 years agodocs: rtpbin: add some Since markers for new properties
Tim-Philipp Müller [Mon, 12 Mar 2018 13:21:08 +0000 (13:21 +0000)]
docs: rtpbin: add some Since markers for new properties

6 years agomeson: Add deviceprovider changes to directsoundsink
Nirbheek Chauhan [Sat, 10 Mar 2018 13:27:38 +0000 (18:57 +0530)]
meson: Add deviceprovider changes to directsoundsink

These were missed when they were added to Makefile.am

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 agov4l2: Fix support for 32bit mmap
Nicolas Dufresne [Wed, 7 Mar 2018 19:16:02 +0000 (14:16 -0500)]
v4l2: Fix support for 32bit mmap

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

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