platform/upstream/gstreamer.git
7 years agovideoaggregator: add CAST macros
Tim-Philipp Müller [Thu, 2 Nov 2017 12:56:57 +0000 (12:56 +0000)]
videoaggregator: add CAST macros

7 years agoaudioaggregator: use new gst_element_foreach_sink_pad()
Tim-Philipp Müller [Thu, 2 Nov 2017 12:46:26 +0000 (12:46 +0000)]
audioaggregator: use new gst_element_foreach_sink_pad()

Instead of gst_aggregator_iterate_sinkpads() which will
soon be removed.

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

7 years agogl: use new gst_element_foreach_sink_pad()
Tim-Philipp Müller [Thu, 2 Nov 2017 12:17:38 +0000 (12:17 +0000)]
gl: use new gst_element_foreach_sink_pad()

Instead of gst_aggregator_iterate_sinkpads() which will
soon be removed.

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

7 years agovideoaggregator: drop ABI compat in padding for new struct member
Tim-Philipp Müller [Thu, 2 Nov 2017 11:57:24 +0000 (11:57 +0000)]
videoaggregator: drop ABI compat in padding for new struct member

Don't really have to do that while it's in -bad and most users
are in-tree anyway.

7 years agoaudioaggregator: make class padding larger
Tim-Philipp Müller [Mon, 23 Oct 2017 20:03:22 +0000 (22:03 +0200)]
audioaggregator: make class padding larger

7 years agoaggregator: add more comments
Stefan Sauer [Wed, 1 Nov 2017 14:18:08 +0000 (15:18 +0100)]
aggregator: add more comments

7 years agomsdk: adds msdkvp8dec
Hyunjun Ko [Mon, 30 Oct 2017 06:06:32 +0000 (15:06 +0900)]
msdk: adds msdkvp8dec

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

7 years agomsdk: Allow building against mfx_dispatcher
Sebastian Dröge [Mon, 30 Oct 2017 16:17:40 +0000 (18:17 +0200)]
msdk: Allow building against mfx_dispatcher

E.g. from https://github.com/lu-zero/mfx_dispatch

7 years agovtdec: destroy and create the GL context on start()/stop()
Matthew Waters [Fri, 22 Sep 2017 04:27:51 +0000 (14:27 +1000)]
vtdec: destroy and create the GL context on start()/stop()

Removes a reference count loop

7 years agovtdec: flush decoder on stop
Nicola Murino [Mon, 23 Oct 2017 08:42:51 +0000 (10:42 +0200)]
vtdec: flush decoder on stop

fix a memory leak if the decoder shut down before EOS

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

7 years agovtenc: flush encoder on stop
Nicola Murino [Mon, 23 Oct 2017 08:40:43 +0000 (10:40 +0200)]
vtenc: flush encoder on stop

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

7 years agogl/shader: allow setting non-square matrices as uniforms on gles platforms
Matthew Waters [Sat, 28 Oct 2017 10:34:08 +0000 (21:34 +1100)]
gl/shader: allow setting non-square matrices as uniforms on gles platforms

It is possible with GLES3

7 years agogl/query: split tests and fix some corresponding issues in usage
Matthew Waters [Sat, 28 Oct 2017 07:33:44 +0000 (18:33 +1100)]
gl/query: split tests and fix some corresponding issues in usage

7 years agoadaptivedemux: add replaced flag to not error out on bitrate change
Thiago Santos [Sat, 14 Oct 2017 20:22:18 +0000 (13:22 -0700)]
adaptivedemux: add replaced flag to not error out on bitrate change

When switching bitrates we set the old streams as cancelled, but it
could also be confused with a cancel due to other reasons (as an error)
and it would lead the element to stop the pipeline mistankely. This
would happen when the stream being replaced was waiting for a manifest
update on live. Ss make it sure that we are stopping for switching
bitrates to avoid erroring out.

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

7 years agoconfigure.ac: fix fdk-aac version check
Florent Thiéry [Wed, 25 Oct 2017 14:11:58 +0000 (16:11 +0200)]
configure.ac: fix fdk-aac version check

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

7 years agofdkaacenc: check fdk-aac version in meson.build
Mathieu Duponchelle [Wed, 25 Oct 2017 12:35:12 +0000 (14:35 +0200)]
fdkaacenc: check fdk-aac version in meson.build

configure.ac used to set -DHAVE_FDK_AAC_0_1_4 , which enables
7.1 support.

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

7 years agoavwait: Added end-timecode property
Vivia Nikolaidou [Tue, 24 Oct 2017 13:17:28 +0000 (16:17 +0300)]
avwait: Added end-timecode property

avwait can now be configured to stop when a given timecode has been
reached. It will start at the timecode indicated with start-timecode and
end at the timecode indicated with end-timecode. If end-timecode is
NULL (default), the previous functionality is preserved: keep going and
not end.

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

7 years agotests: comment and logging cleanups for audiomixer and aggregator
Stefan Sauer [Mon, 23 Oct 2017 09:52:38 +0000 (11:52 +0200)]
tests: comment and logging cleanups for audiomixer and aggregator

Remove some references to 'collectpads'. Logs pads through the object variants.
Add some more comments. Remove a left over comment.

7 years agoaggregator: fix type for latency property (int64 -> GStClockTime)
Stefan Sauer [Sun, 22 Oct 2017 17:43:17 +0000 (19:43 +0200)]
aggregator: fix type for latency property (int64 -> GStClockTime)

The value is used as GstClockTiem in the code. Adapt the hack^H^H^H^Hcode
in live-adder.

7 years agoaudioaggregator: Accept buffer with no data, but duration and gap flag
Olivier Crête [Thu, 13 Jul 2017 23:09:43 +0000 (19:09 -0400)]
audioaggregator: Accept buffer with no data, but duration and gap flag

These are produced from GAP events by the base class.

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

7 years agoaggregator: Don't take flush lock from output thread
Olivier Crête [Thu, 13 Jul 2017 23:03:19 +0000 (19:03 -0400)]
aggregator: Don't take flush lock from output thread

Instead just take it in the chain function.

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

7 years agoaggregator: Don't block if adding to the tail of the queue
Olivier Crête [Thu, 13 Jul 2017 22:38:34 +0000 (18:38 -0400)]
aggregator: Don't block if adding to the tail of the queue

If we're adding to the tail of the queue, it's because we're converting
a gap event, so don't block there it means we're calling from the output
thread.

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

7 years agoopenjpeg: Remove compatibility with openjpeg 2.0
Jan Alexander Steffens (heftig) [Fri, 20 Oct 2017 09:44:50 +0000 (11:44 +0200)]
openjpeg: Remove compatibility with openjpeg 2.0

Everyone seems to be shipping 2.1 as the oldest v2 version, even debian
oldstable (jessie).

Also remove an unneeded (debug?) #include <stdio.h>.

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

7 years agoopenjpeg: Support building with openjpeg 2.3, simpler
Jan Alexander Steffens (heftig) [Thu, 19 Oct 2017 14:36:17 +0000 (16:36 +0200)]
openjpeg: Support building with openjpeg 2.3, simpler

OpenJPEG 2.3 installs its headers to /usr/include/openjpeg-2.3. However,
since libopenjp2.pc seems to provide the right includedir CFLAGS at
least since version 2.1, instead of adding yet another version check,
just remove the subdir and the check for 2.2.

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

7 years agoRevert "openjpeg: Support building with openjpeg 2.3"
Jan Alexander Steffens (heftig) [Thu, 19 Oct 2017 14:26:45 +0000 (16:26 +0200)]
Revert "openjpeg: Support building with openjpeg 2.3"

This reverts commit ef4d6b93e6078b7056c51a928f5620b13e55e323.

A better fix follows.

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

7 years agoipcpipeline: work around gcc bug in struct initializers
Stefan Sauer [Fri, 20 Oct 2017 08:32:23 +0000 (10:32 +0200)]
ipcpipeline: work around gcc bug in struct initializers

Unfortunately we need to use an extra set of parenthesis for each data level.

For details see:
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=53119
Affected versions are e.g.
gcc (Ubuntu 4.8.4-2ubuntu1~14.04.3) 4.8.4
which is the default on ubuntu-trusty. I looks like the fix was never
backported.

7 years agovtenc: fix memory leak
Nicola Murino [Wed, 27 Sep 2017 09:37:26 +0000 (11:37 +0200)]
vtenc: fix memory leak

finish encoding and clean buffers queue on flush. This avoid a memory leak
if the element shuts down before EOS

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

7 years agoUse value instead of version macro when testing for mac OS version
Jérôme Laheurte [Sun, 1 Oct 2017 17:04:15 +0000 (19:04 +0200)]
Use value instead of version macro when testing for mac OS version

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

7 years agolcms: Add LCMS ICC color correction element
Andreas Frisch [Thu, 19 Oct 2017 14:01:46 +0000 (16:01 +0200)]
lcms: Add LCMS ICC color correction element

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

7 years agom3u8: Refine sequence update debug messages
Jan Alexander Steffens (heftig) [Wed, 27 Sep 2017 07:17:07 +0000 (09:17 +0200)]
m3u8: Refine sequence update debug messages

Actually give some details about why it failed.

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

7 years agom3u8: Don't try to match URIs when we have media sequences
Jan Alexander Steffens (heftig) [Wed, 27 Sep 2017 07:27:12 +0000 (09:27 +0200)]
m3u8: Don't try to match URIs when we have media sequences

It is legal for a stream to reuse segments (marking discontinuities as
needed). Uplynk delivers such playlists for their placeholder loops.

Leave the URI scanning in place for playlists which have no
EXT-X-MEDIA-SEQUENCE tag. This should be harmless since the spec
requires these playlists to not be missing segments (RFC8216 6.2.2),
so we should be always matching on the first segment.

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

7 years agom3u8: Ignore empty playlists in check_media_seqnums
Jan Alexander Steffens (heftig) [Wed, 27 Sep 2017 07:39:02 +0000 (09:39 +0200)]
m3u8: Ignore empty playlists in check_media_seqnums

Let these error in the immediately following check in gst_m3u8_update.

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

7 years agom3u8: Split gst_m3u8_update_check_consistent_media_seqnums
Jan Alexander Steffens (heftig) [Fri, 15 Sep 2017 06:57:03 +0000 (08:57 +0200)]
m3u8: Split gst_m3u8_update_check_consistent_media_seqnums

The function was basically one big if-else. Move the branch to the
one caller.

Currently, it's never called with previous_files == NULL. Assert that
this continues.

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

7 years agom3u8: Simplify control flow for sequence update
Jan Alexander Steffens (heftig) [Fri, 15 Sep 2017 06:42:49 +0000 (08:42 +0200)]
m3u8: Simplify control flow for sequence update

Split the tail from the rest of the loop.

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

7 years agodecklink: Add read-only property to read the device serial number
Sebastian Dröge [Wed, 4 Oct 2017 11:53:35 +0000 (13:53 +0200)]
decklink: Add read-only property to read the device serial number

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

7 years agoaggregator: review code related to time level
Stefan Sauer [Tue, 17 Oct 2017 06:03:02 +0000 (08:03 +0200)]
aggregator: review code related to time level

Add a comment for when the state matters. Use a local var for priv in
update_time_level() to improve readability. Move the our_latency local
var below the query results checks.

7 years agoaggregator: init latency values with 0 instead of FALSE
Stefan Sauer [Tue, 17 Oct 2017 05:51:51 +0000 (07:51 +0200)]
aggregator: init latency values with 0 instead of FALSE

7 years agoopencv: Support smoothing only part of the image
Michał Górny [Mon, 9 Oct 2017 16:08:47 +0000 (18:08 +0200)]
opencv: Support smoothing only part of the image

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

7 years agoopencv: Add 'kernel' prefix to width/height
Michał Górny [Wed, 11 Oct 2017 20:03:24 +0000 (22:03 +0200)]
opencv: Add 'kernel' prefix to width/height

Rename width to kernel-width, and height to kernel-height to avoid
ambiguity in the name.

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

7 years agoopenjpeg: Support building with openjpeg 2.3
Thibault Saunier [Mon, 16 Oct 2017 08:43:28 +0000 (10:43 +0200)]
openjpeg: Support building with openjpeg 2.3

And avoid failling the build each time openjpeg releases a new version.

7 years agoaggregator: code cleanup for event and query func
Stefan Sauer [Sun, 15 Oct 2017 18:46:09 +0000 (20:46 +0200)]
aggregator: code cleanup for event and query func

Only look up klass for non serialized events/queries. For events remove
superfluous assignment for the return value in the flushing case.

7 years agoaggregator: simplify pad_event_func for FLUSH_STOP events
Stefan Sauer [Sun, 15 Oct 2017 15:46:45 +0000 (17:46 +0200)]
aggregator: simplify pad_event_func for FLUSH_STOP events

We want to skip serialization for FLUSH_STOP events (apparently). We can
simplify the code to add it to the top-level conditions. There was nothing
done in the first code path if the event was FLUSH_STOP.

7 years agoaggregator: drop special casing for eos
Stefan Sauer [Sun, 15 Oct 2017 14:57:13 +0000 (16:57 +0200)]
aggregator: drop special casing for eos

Just queue it like any other serialized event. This way we don't need to
check if there still are buffers in the queue.

Validated with the tests and gst-launch-1.0 pipelines.

7 years agoaggregator: add a doc-blob for the event_func
Stefan Sauer [Sun, 15 Oct 2017 14:51:21 +0000 (16:51 +0200)]
aggregator: add a doc-blob for the event_func

7 years agoaggregator: rename a local variable
Stefan Sauer [Sun, 15 Oct 2017 14:48:21 +0000 (16:48 +0200)]
aggregator: rename a local variable

The variable tracks wheter the queue is not empty, but num_buffers==0. That
means we have events or queries to process. Rename accordingly.

7 years agoaggregator: remove commented code
Stefan Sauer [Sun, 15 Oct 2017 10:17:42 +0000 (12:17 +0200)]
aggregator: remove commented code

The SEGMENT_DONE event does not require any special treatment. This is
commented out in 6efc106a67.

7 years agoaggregator: move the comment for the locks to the lock macros
Stefan Sauer [Sun, 15 Oct 2017 10:14:28 +0000 (12:14 +0200)]
aggregator: move the comment for the locks to the lock macros

Looks like some code was inserted afterwards.

7 years agoaggregator: improve section docs
Stefan Sauer [Sun, 15 Oct 2017 08:44:44 +0000 (10:44 +0200)]
aggregator: improve section docs

Mention how data ends up in the queues. Document the relation of the pad
functions and the class vmethods to get events and queries.

7 years agoaudioaggregator: improve readability in offset calculation
Stefan Sauer [Sun, 15 Oct 2017 08:29:20 +0000 (10:29 +0200)]
audioaggregator: improve readability in offset calculation

Don't reuse the offset variables will contain a sample offset for an
intermediate time value. Instead add a segment_pos variable of type
GstClockTime for this. Use The clock-time macros to check if we got
a valid time.

7 years agoaggregator: add two more tests for a sequence of data
Stefan Sauer [Sat, 14 Oct 2017 16:18:44 +0000 (18:18 +0200)]
aggregator: add two more tests for a sequence of data

This verifies that we handle events and queries at the head of the queue and
then buffers.

7 years agoaggregator: refactor the test helper
Stefan Sauer [Sat, 14 Oct 2017 11:26:02 +0000 (13:26 +0200)]
aggregator: refactor the test helper

Make the test helpers use a queue. This lets us also test sequences of events,
queries and data.

7 years agoaggregator: test cleanup
Stefan Sauer [Sat, 14 Oct 2017 10:08:19 +0000 (12:08 +0200)]
aggregator: test cleanup

Remove gst_init() from a few tests. Use _OBJECT variants in logging. Remove
arbitrary extra blank lines. Make push_event() more like push_buffer() - set
the event to NULL and add cleanup to _chain_data_clear().

7 years agoaudioaggregator: move comment to the place it is meant to be
Stefan Sauer [Thu, 5 Oct 2017 18:48:59 +0000 (20:48 +0200)]
audioaggregator: move comment to the place it is meant to be

This probably got shifted after some changes.

7 years agonvbaseenc: Fix Memory leak in error case
Ponnam Srinivas [Sat, 7 Oct 2017 09:27:44 +0000 (14:57 +0530)]
nvbaseenc: Fix Memory leak in error case

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

7 years agoqt: update qmake .pro file
Tim-Philipp Müller [Fri, 13 Oct 2017 11:25:22 +0000 (12:25 +0100)]
qt: update qmake .pro file

Update for renaming of plugin file, and add some
missing source files.

7 years agovideoaggregator: use GstFlowReturn for flow returns
Tim-Philipp Müller [Fri, 13 Oct 2017 10:46:09 +0000 (11:46 +0100)]
videoaggregator: use GstFlowReturn for flow returns

7 years agodecklink: Print one "dropped N old frames" message, not one per frame
Vivia Nikolaidou [Tue, 10 Oct 2017 15:03:15 +0000 (18:03 +0300)]
decklink: Print one "dropped N old frames" message, not one per frame

If we drop many frames at once, printing one message per video frame and
one per audio packet would cause a lot of disk IO. Just print a total at
the end.

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

7 years agokmssink: Fix crash on NULL dmabuf allocator pointer
Nicolas Dufresne [Fri, 6 Oct 2017 19:07:58 +0000 (15:07 -0400)]
kmssink: Fix crash on NULL dmabuf allocator pointer

Now that we are doing lazy allocation, we may endup calling _stop()
before the allocator was created. As a side effect, we need to nul-check
the pointer before calling it's method (_clear_cache()).

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

7 years agomxfdemux: Fix memory leak in error case
Ponnam Srinivas [Wed, 4 Oct 2017 10:59:52 +0000 (16:29 +0530)]
mxfdemux: Fix memory leak in error case

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

7 years agokms: Fix compilation error when libdrm < 2.4.68
U. Artie Eoff [Fri, 6 Oct 2017 00:28:30 +0000 (17:28 -0700)]
kms: Fix compilation error when libdrm < 2.4.68

DRM_RDWR was not defined until libdrm 2.4.68.  However,
in configure.ac we only require libdrm >= 2.4.55.

Seems silly to to bump minimum libdrm version for a simple
define.  Thus, define DRM_RDWR if it's not defined.

This fixes compilation error introduced in:

commit 922031b0f98bf5c7b01f4431d1c08617f65865f7
Author: Nicolas Dufresne <nicolas.dufresne@collabora.com>
Date:   Tue Sep 12 12:07:13 2017 -0400

    kms: Export DMABuf from Dumb buffer when possible

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

Signed-off-by: U. Artie Eoff <ullysses.a.eoff@intel.com>
7 years agokmsallocator: Update GstVideoInfo.size when extrapolating
Nicolas Dufresne [Thu, 5 Oct 2017 19:46:20 +0000 (15:46 -0400)]
kmsallocator: Update GstVideoInfo.size when extrapolating

When we guess the strides, we need to also update the GstVideoInfo.size
otherwise the memory size will be set to something smaller then needed.
This was causing crash with the DMABuf exportation, since we would not
mmap() a large enough buffer.

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

7 years agokms: Export DMABuf from Dumb buffer when possible
Nicolas Dufresne [Tue, 12 Sep 2017 16:07:13 +0000 (12:07 -0400)]
kms: Export DMABuf from Dumb buffer when possible

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

7 years agokmssink: Move the mem cache into the allocator
Nicolas Dufresne [Tue, 12 Sep 2017 14:36:51 +0000 (10:36 -0400)]
kmssink: Move the mem cache into the allocator

No functional change, the cache will be later reused by the buffer
pool to keep track of the kmssink memory when exporting dmabuf.

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

7 years agokmsbufferpool: Don't check allocator pointer twice
Nicolas Dufresne [Mon, 11 Sep 2017 20:32:32 +0000 (16:32 -0400)]
kmsbufferpool: Don't check allocator pointer twice

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

7 years agokmsbufferpool: Removed unused member fd
Nicolas Dufresne [Mon, 11 Sep 2017 20:32:15 +0000 (16:32 -0400)]
kmsbufferpool: Removed unused member fd

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

7 years agokmssink: Check if we can prime export
Nicolas Dufresne [Mon, 11 Sep 2017 19:00:53 +0000 (15:00 -0400)]
kmssink: Check if we can prime export

This will be used later to decide if a DMABuf allocator should be
exposed.

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

7 years agoaudioaggregator: remove buffer!=NULL check
Stefan Sauer [Thu, 5 Oct 2017 15:54:34 +0000 (17:54 +0200)]
audioaggregator: remove buffer!=NULL check

Acording to the logic this cannot happen (we already check this before). So
add a assert like we do above and remove the check. This make it clearer that
we check for the offset range.
Also remove a dead assignment since we reassign this a few lines below.

7 years agoaudioaggreator: update docs
Stefan Sauer [Thu, 5 Oct 2017 15:52:37 +0000 (17:52 +0200)]
audioaggreator: update docs

Remove wrote references to collectpads. Document the units.

7 years agomeson: remove vs_module_defs
Havard Graff [Wed, 4 Oct 2017 12:29:20 +0000 (14:29 +0200)]
meson: remove vs_module_defs

The GST_EXPORT should handle it.

7 years agomeson: Fix namespace and add some missing args in the gir generation
Rico Tzschichholz [Thu, 5 Oct 2017 12:30:43 +0000 (14:30 +0200)]
meson: Fix namespace and add some missing args in the gir generation

7 years agoaudioaggregator: pass blocksize to mix_buffer()
Stefan Sauer [Thu, 5 Oct 2017 06:11:29 +0000 (08:11 +0200)]
audioaggregator: pass blocksize to mix_buffer()

No need to recalc the value twice per run. Establishes that it is the same
value.

7 years agoaudioaggregator: rename _fill_buffer() to _queue_new_buffer()
Stefan Sauer [Thu, 5 Oct 2017 06:12:45 +0000 (08:12 +0200)]
audioaggregator: rename _fill_buffer() to _queue_new_buffer()

It does not fill a buffer. Rename it and add a short comment.

7 years agoaggregator: cleanup event forwarding
Stefan Sauer [Tue, 3 Oct 2017 10:36:10 +0000 (12:36 +0200)]
aggregator: cleanup event forwarding

Don't copy the whole event struct. Set the input params when we call the
forwarding helper. Initialize the internal fields and return values in the
helper.

7 years agoaggregator: simplify src_event
Stefan Sauer [Tue, 3 Oct 2017 10:08:42 +0000 (12:08 +0200)]
aggregator: simplify src_event

Avoid extra ref/unref, we have a ref and do_seek unrefs. Just return the result
as we have. This lets us remove the local var plus the label.

7 years agomeson: Define GST_USE_UNSTABLE_API in the build system
Nicolas Dufresne [Wed, 4 Oct 2017 14:00:48 +0000 (10:00 -0400)]
meson: Define GST_USE_UNSTABLE_API in the build system

This way meson and autotools both do the same thing and we don't need to
modify the code after all.

7 years agoFix autotools build broken by 25dee2f2cb21d3fdd
Reynaldo H. Verdejo Pinochet [Tue, 3 Oct 2017 22:26:34 +0000 (15:26 -0700)]
Fix autotools build broken by 25dee2f2cb21d3fdd

Build fails on GST_USE_UNSTABLE_API being redefined

7 years agoUse proper GtkDoc notation for NULL/FALSE/TRUE
Reynaldo H. Verdejo Pinochet [Mon, 2 Oct 2017 21:28:26 +0000 (14:28 -0700)]
Use proper GtkDoc notation for NULL/FALSE/TRUE

7 years agoadaptivedemux: fix typos
Reynaldo H. Verdejo Pinochet [Tue, 26 Sep 2017 23:46:10 +0000 (16:46 -0700)]
adaptivedemux: fix typos

7 years agomeson: Build tsparser example
Nicolas Dufresne [Tue, 3 Oct 2017 21:16:15 +0000 (17:16 -0400)]
meson: Build tsparser example

7 years agotsparses: Define GST_USE_UNSTABLE_API
Nicolas Dufresne [Tue, 3 Oct 2017 21:14:53 +0000 (17:14 -0400)]
tsparses: Define GST_USE_UNSTABLE_API

This example is entirely based on unstable API, this avoids the expected
compilation warning.

7 years agogl: Use GstGLDisplayEGL directly instead of creating a GstGLDisplayVIVFb subclass
Cassandra Rommel [Mon, 2 Oct 2017 19:35:48 +0000 (12:35 -0700)]
gl: Use GstGLDisplayEGL directly instead of creating a GstGLDisplayVIVFb subclass

This simplifies the code a lot without any functional changes apart from
not closing the display connection. Closing the display connection is
not safe to do as it is shared between all other code in the same
process and no reference counting or anything happens at the platform
layer.

7 years agoaudioaggregator: reduce variable scope
Stefan Sauer [Mon, 2 Oct 2017 14:57:21 +0000 (16:57 +0200)]
audioaggregator: reduce variable scope

This is a non-functional change that makes the code more alike to the previous
check. I should be more obvious when we drop a buffer.

7 years agoaudioaggregator: update comment for aggregate
Stefan Sauer [Mon, 2 Oct 2017 07:40:50 +0000 (09:40 +0200)]
audioaggregator: update comment for aggregate

Replace collect-pads left-over. Remove first paragraph, we're not doing this.
Remove 3), 4) since this is not per pad.

7 years agoglcontext_egl: Add gstglwindow header
Justin Kim [Mon, 2 Oct 2017 07:22:26 +0000 (16:22 +0900)]
glcontext_egl: Add gstglwindow header

Otherwise, compiler complains implicit function declaration warning.

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

7 years agoaudiobuffersplit: Drain pending samples if the caps are changing
Sebastian Dröge [Tue, 12 Sep 2017 13:43:26 +0000 (16:43 +0300)]
audiobuffersplit: Drain pending samples if the caps are changing

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

7 years agoaudiobuffersplit: Use new GstAudioStreamAlign API
Sebastian Dröge [Tue, 12 Sep 2017 13:41:18 +0000 (16:41 +0300)]
audiobuffersplit: Use new GstAudioStreamAlign API

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

7 years agoglfilter: Unmap video frame in error case
Ponnam Srinivas [Thu, 28 Sep 2017 10:50:53 +0000 (16:20 +0530)]
glfilter: Unmap video frame in error case

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

7 years agodecklinkaudio/videosrc: Put hardware reference timestamp in a reference timestamp...
Sebastian Dröge [Thu, 28 Sep 2017 10:55:18 +0000 (13:55 +0300)]
decklinkaudio/videosrc: Put hardware reference timestamp in a reference timestamp meta

This can be useful to know on multi-channel cards which frames from
different channels were captured at the same time.

7 years agoglmixer: Unmap video frame in error case
Ponnam Srinivas [Mon, 25 Sep 2017 11:50:58 +0000 (17:20 +0530)]
glmixer: Unmap video frame in error case

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

7 years agowebpenc: Unmap video frame in failed case
Ponnam Srinivas [Thu, 21 Sep 2017 12:43:19 +0000 (18:13 +0530)]
webpenc: Unmap video frame in failed case

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

7 years agoautoconvert: Fix two memory leaks on error conditions
James Stevenson [Fri, 22 Sep 2017 07:10:44 +0000 (08:10 +0100)]
autoconvert: Fix two memory leaks on error conditions

Both the sink_chain and sink_chain_list will neither pass
or free the buffer if the internal src pad doesn't exist yet.

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

7 years agodecklink: Free the correct memory in our own buffer pool
Sebastian Dröge [Thu, 21 Sep 2017 11:40:06 +0000 (14:40 +0300)]
decklink: Free the correct memory in our own buffer pool

The buffer itself is 128 bytes into the allocated memory area, to be
able to store the size and other metadata before it. Freeing the buffer
directly will make malloc moderately unhappy.

7 years agotests/check: disable all ipcpipeline tests until I find a way to make them run reliably
George Kiagiadakis [Thu, 21 Sep 2017 08:46:22 +0000 (11:46 +0300)]
tests/check: disable all ipcpipeline tests until I find a way to make them run reliably

7 years agoglvidemixer: need reconfigure output gemotry after caps renegotiated
Haihua Hu [Wed, 20 Sep 2017 12:00:03 +0000 (20:00 +0800)]
glvidemixer: need reconfigure output gemotry after caps renegotiated

7 years agoRevert "glvideomixer: need update output geometry after src caps reconfigure"
Matthew Waters [Thu, 21 Sep 2017 01:59:22 +0000 (11:59 +1000)]
Revert "glvideomixer: need update output geometry after src caps reconfigure"

This reverts commit d6e538dc5651fb03c85d7c7614bcf6c689f2db2f.

7 years agoglvideomixer: need update output geometry after src caps reconfigure
Haihua Hu [Mon, 18 Sep 2017 07:42:00 +0000 (15:42 +0800)]
glvideomixer: need update output geometry after src caps reconfigure

Need update output geometry when sink caps changed and use
gst_structure_set to update caps if structure is fixed

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

7 years agottmlparse: Ensure default showBackground behaviour is enacted
Chris Bass [Tue, 19 Sep 2017 14:37:42 +0000 (15:37 +0100)]
ttmlparse: Ensure default showBackground behaviour is enacted

Ensure that region backgrounds are always show when tts:showBackground
is not explicitly set, in accordance with the default behavour given in
the TTML spec.

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

7 years agonvdec: Correctly set the discontinuity flag
Per-Erik Brodin [Wed, 20 Sep 2017 00:18:48 +0000 (17:18 -0700)]
nvdec: Correctly set the discontinuity flag

Instead of clearing the "valid timestamp" flag, which would result in a
timestamp mismatch after a discontinuity.

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

7 years agogl/viv-fb: transform screen coordinate to viewport coordinate
Haihua Hu [Mon, 11 Sep 2017 08:00:24 +0000 (16:00 +0800)]
gl/viv-fb: transform screen coordinate to viewport coordinate

In y direction, screen coordinate are opposite to viewport coordinate.

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

7 years agogl/viv-fb: fix wrong pos (x,y) calculate in queue_resize
Haihua Hu [Mon, 11 Sep 2017 07:12:53 +0000 (15:12 +0800)]
gl/viv-fb: fix wrong pos (x,y) calculate in queue_resize

queue_resize viewport coordinate calculate is wrong and
force queue_resize when do _set_render_rectangle in case
user input pos changed

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