platform/upstream/gst-plugins-bad.git
6 years agowebrtcbin: an element that handles the transport aspects of webrtc connections
Matthew Waters [Tue, 31 Jan 2017 09:56:59 +0000 (20:56 +1100)]
webrtcbin: an element that handles the transport aspects of webrtc connections

SDP's are generated and consumed according to the W3C PeerConnection API
available from https://www.w3.org/TR/webrtc/

The SDP is either created initially from the connected
sink pads/attached transceivers as in the case of generating an offer or
intersected with the connected sink pads/attached transceivers as in
the case for creating an answer.  In both cases, the rtp payloaded streams
sent by the peer are exposed as separate src pads.

The implementation supports trickle ICE, RTCP muxing, reduced size RTCP.

With contributions from:
Nirbheek Chauhan <nirbheek@centricular.com>
Mathieu Duponchelle <mathieu@centricular.com>
Edward Hervey <edward@centricular.com>

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

6 years agodtls: remove reliance on a default GMainContext/Loop
Matthew Waters [Tue, 16 Jan 2018 09:53:15 +0000 (20:53 +1100)]
dtls: remove reliance on a default GMainContext/Loop

By removing the indirection to the main loop completely when receiving
the peer certificate. For reference, the on-decoder-key signal does not
have a redirection.

6 years agonetsim: fix format errors for different platforms
Omar Akkila [Wed, 31 Jan 2018 18:21:58 +0000 (13:21 -0500)]
netsim: fix format errors for different platforms

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

6 years agoconfigure: fix opengl api conditional
Tim-Philipp Müller [Wed, 31 Jan 2018 16:10:24 +0000 (16:10 +0000)]
configure: fix opengl api conditional

Fixes build of openglmixers plugin due to mismatch between
build system conditional USE_OPENGL and define in gstglconfig.h

6 years agoconfigure: fix OpenGL API detection
Tim-Philipp Müller [Wed, 31 Jan 2018 13:03:28 +0000 (13:03 +0000)]
configure: fix OpenGL API detection

And don't build gl mosaic element unconditionally.

6 years agoautotools: fix build if OpenGL support is not available
Tim-Philipp Müller [Wed, 31 Jan 2018 13:02:07 +0000 (13:02 +0000)]
autotools: fix build if OpenGL support is not available

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

6 years agogdpdepay: don't use allocator if it has custom alloc
Víctor Manuel Jáquez Leal [Mon, 29 Jan 2018 11:53:51 +0000 (12:53 +0100)]
gdpdepay: don't use allocator if it has custom alloc

gdpdepay element uses the decide_allocation to fetch the downstream
allocator. Nonetheless it is possible that allocate uses a custom
alloc function, which is not usable by gdpdepay, crashing later the
application when the allocater buffer is NULL.

This patch checks for the allocator flags and reset it if the
allocator has a custom alloc function.

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

6 years agogdpdepay: don't allocation query if caps aren't fixed
Víctor Manuel Jáquez Leal [Mon, 29 Jan 2018 11:50:36 +0000 (12:50 +0100)]
gdpdepay: don't allocation query if caps aren't fixed

When querying downstream for allocation, and the source caps hasn't
set its caps, using ANY by default, it raises a critical message in
console:

CRITICAL **: gst_video_info_from_caps: assertion 'gst_caps_is_fixed (caps)' failed

This patch bails out decide_allocation() if the caps aren't fixed.

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

6 years agowasapi: Correctly set ringbuffer segsize/segtotal
Nirbheek Chauhan [Tue, 30 Jan 2018 22:21:47 +0000 (03:51 +0530)]
wasapi: Correctly set ringbuffer segsize/segtotal

This will set the actual-latency-time and actual-buffer-time of the sink
and source.

We completely ignore the latency-time/buffer-time values set
on the element because WASAPI is happiest when it is reading/writing at
the default period. Improving this will likely require the use of the
IAudioClient3 interfaces which are not available in MinGW yet.

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

6 years agowasapi: Implement a device provider for probing
Nirbheek Chauhan [Wed, 24 Jan 2018 19:21:22 +0000 (00:51 +0530)]
wasapi: Implement a device provider for probing

Currently only does probing and does not handle messages from
endpoints/devices. In the future we want to do proper monitoring which
is well-supported in WASAPI.

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

6 years agowasapi: Implement support for >2 channels
Nirbheek Chauhan [Wed, 24 Jan 2018 02:50:38 +0000 (08:20 +0530)]
wasapi: Implement support for >2 channels

We need to parse the WAVEFORMATEXTENSIBLE structure, figure out what
positions the channels have (if they are positional), and reorder them
as necessary.

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

6 years agomeson: use -fno-strict-aliasing where supported
Tim-Philipp Müller [Tue, 30 Jan 2018 20:35:07 +0000 (20:35 +0000)]
meson: use -fno-strict-aliasing where supported

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

6 years agocodecparser: vp8: Fix range decoder init
Sreerenj Balachandran [Tue, 30 Jan 2018 20:34:58 +0000 (11:34 -0900)]
codecparser: vp8: Fix range decoder init

According to the vp8 spec, the first partition (size can be derived from
the frame header) should have all compressed header information and we
implemented gst codecparser based on that. But it doesn't seem to be the
case with some of the streams (#792773) and libvpx
works fine because it uses the whole frame size (not the first partition
size) to initialize the bool decoder.

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

6 years agokmssink: Make render rectangle property controllable
Nicolas Dufresne [Mon, 22 Jan 2018 21:21:27 +0000 (16:21 -0500)]
kmssink: Make render rectangle property controllable

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

6 years agoglvideomixer: fix vertex_buffer leak
Vincent Penquerc'h [Mon, 3 Oct 2016 12:11:07 +0000 (13:11 +0100)]
glvideomixer: fix vertex_buffer leak

We call the base class first as this will remove the pad from
the aggregator, thus stopping misc callbacks from being called,
one of which (process_textures) will recreate the vertex_buffer
if it is destroyed

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

6 years agosrtp: Support libsrtp2
Jan Alexander Steffens (heftig) [Fri, 26 Jan 2018 15:25:33 +0000 (16:25 +0100)]
srtp: Support libsrtp2

For libsrtp 1, add defines that translate the new namespaced identifiers
to the old unnamespaced ones. Also move the code for setting and getting
a stream's ROC into two compat functions that match libsrtp2's API.

It seems that libsrtp2 properly supports changing the ROC without having
to touch the sequence numbers afterwards, given that srtp_set_stream_roc
sets a pending_roc field, so the entire roc_changed dance should not be
needed anymore. The compat functions for libsrtp 1 just contain our
preexisting hacks, however, so it's still needed there.

libsrtp2 has no means of discovering the streams in the session, so to
create the stats structure we need to iterate over our own set of SSRCs.
For this we also need to re-add the previously removed ssrcs_set to the
encoder.

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

6 years agortmpsink: don't crash if there's streamheader field in the caps
Tim-Philipp Müller [Sun, 28 Jan 2018 14:28:33 +0000 (14:28 +0000)]
rtmpsink: don't crash if there's streamheader field in the caps

Fix regression when used in combination with new flvmux which was
ported to GstAggregator, and which sends plain video/x-flv caps
before sending full caps that include streamheaders.

6 years agoahc: enable autofocus callback
Justin Kim [Wed, 13 Dec 2017 04:43:30 +0000 (13:43 +0900)]
ahc: enable autofocus callback

It should be enabled to set autofocus properly, but
it seems to be commented out mistakenly from the first commit.

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

6 years agoaom: Add direct casts for GstAV1Enc and GstAV1Dec
Sean DuBois [Fri, 26 Jan 2018 06:01:35 +0000 (06:01 +0000)]
aom: Add direct casts for GstAV1Enc and GstAV1Dec

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

6 years agoaom: Deadline was removed from AV1
Sean DuBois [Fri, 26 Jan 2018 05:20:55 +0000 (05:20 +0000)]
aom: Deadline was removed from AV1

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

6 years agoaom: Fix leak in av1dec
Sean DuBois [Sun, 31 Dec 2017 07:47:47 +0000 (07:47 +0000)]
aom: Fix leak in av1dec

AOM Decoder wasn't being destroyed in stop

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

6 years agoaom: Put av1enc config debugging under gst_av1_enc_debug namespace
Sean DuBois [Sun, 14 Jan 2018 22:22:07 +0000 (22:22 +0000)]
aom: Put av1enc config debugging under gst_av1_enc_debug namespace

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

6 years agodirectsoundsrc: Add missing \ in multi-line #define
Sebastian Dröge [Thu, 25 Jan 2018 19:23:09 +0000 (21:23 +0200)]
directsoundsrc: Add missing \ in multi-line #define

6 years agodirectsoundsrc: Add support for a DeviceProvider
Sebastian Dröge [Mon, 22 Jan 2018 12:06:31 +0000 (14:06 +0200)]
directsoundsrc: Add support for a DeviceProvider

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

6 years agowasapi: Fix some leaks, bugs, and compiler warnings
Nirbheek Chauhan [Wed, 24 Jan 2018 02:50:13 +0000 (08:20 +0530)]
wasapi: Fix some leaks, bugs, and compiler warnings

Also improve logging.

6 years agoh26{4,5}parse: expose chroma format and bit depth in caps
Guillaume Desmottes [Mon, 6 Nov 2017 11:39:32 +0000 (12:39 +0100)]
h26{4,5}parse: expose chroma format and bit depth in caps

This information could be used for example to pick a decoder supporting
a specific chroma and/or bit depth, like 4:2:2 10 bits.
It can also be used to inform earlier decoder about the format it is
about to decode.

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

6 years agonvenc: add "gop-size" property
Tim-Philipp Müller [Sun, 16 Apr 2017 14:08:27 +0000 (16:08 +0200)]
nvenc: add "gop-size" property

This also changes the default gop size from 30 to 75 frames.

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

6 years agonvenc: mark properties that can be changed at runtime accordingly
Tim-Philipp Müller [Wed, 24 Jan 2018 10:21:48 +0000 (10:21 +0000)]
nvenc: mark properties that can be changed at runtime accordingly

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

6 years agonvenc: Add support for dynamic bitrate/preset reconfiguration
Ole André Vadla Ravnås [Mon, 17 Apr 2017 11:58:53 +0000 (13:58 +0200)]
nvenc: Add support for dynamic bitrate/preset reconfiguration

Useful for dynamically updating bitrate in live scenarios.

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

6 years agonvenc: Add support for I420
Ole André Vadla Ravnås [Fri, 14 Apr 2017 13:30:44 +0000 (15:30 +0200)]
nvenc: Add support for I420

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

6 years agonetsim: fix misleading packet delay log
Jun Xie [Thu, 21 Dec 2017 10:33:49 +0000 (18:33 +0800)]
netsim: fix misleading packet delay log

packet delay time shall be calculated by ready_time minus current time

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

6 years agovideoaggregatorpad: implement skip_buffer
Mathieu Duponchelle [Thu, 28 Dec 2017 11:15:21 +0000 (12:15 +0100)]
videoaggregatorpad: implement skip_buffer

Skip buffers from sources with a framerate higher than the output
framerate.

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

6 years agodecklink: don't crash if there are no decklink devices
Tim-Philipp Müller [Tue, 23 Jan 2018 14:49:51 +0000 (14:49 +0000)]
decklink: don't crash if there are no decklink devices

Fixes generic/states check.

6 years agodecklink: don't limit number of devices to 16
Tim-Philipp Müller [Tue, 23 Jan 2018 10:27:57 +0000 (10:27 +0000)]
decklink: don't limit number of devices to 16

There is no fixed limitation for the number of devices on the
decklink API side according to BlackMagic. Many PC motherboards
are able support 6 decklink cards each with up to 8 inputs so
a limit of 16 might well be too low.

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

6 years agoUpdate for renamed aggregator pad API
Tim-Philipp Müller [Tue, 23 Jan 2018 09:01:00 +0000 (09:01 +0000)]
Update for renamed aggregator pad API

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

6 years agomeosn: curl: also check for and use libssh2 if available
Tim-Philipp Müller [Mon, 22 Jan 2018 18:53:22 +0000 (18:53 +0000)]
meosn: curl: also check for and use libssh2 if available

6 years agodirectsoundsrc: Don't dynamically load one DirectSound symbol at runtime
Sebastian Dröge [Mon, 22 Jan 2018 11:44:29 +0000 (13:44 +0200)]
directsoundsrc: Don't dynamically load one DirectSound symbol at runtime

Just link statically to it, like for all other DirectSound symbols.

6 years agowasapi: Rewrite most of the code to make it work
Nirbheek Chauhan [Sun, 21 Jan 2018 03:32:30 +0000 (09:02 +0530)]
wasapi: Rewrite most of the code to make it work

Both the source and the sink elements were broken in a number of ways:

* prepare() was assuming that the format was always S16LE 2ch 44.1KHz.
  We now probe the preferred format with GetMixFormat().
* Device initialization was done with the wrong buffer size
  (buffer_time is in microseconds, not nanoseconds).
* sink_write() and src_read() were just plain wrong and would never
  write or read anything useful.
* Some functions in prepare() were always returning FALSE which meant
  trying to use the elements would *always* fail.
* get_caps() and delay() were not implemented at all.

TODO: support for >2 channels
TODO: pro-audio low-latency
TODO: SPDIF and other encoded passthroughs

Three new properties are now implemented: role, mute, and device.

* 'role' designates the stream role of the initialized device, see:
   https://msdn.microsoft.com/en-us/library/windows/desktop/dd370842(v=vs.85).aspx
* 'device' is a system-wide GUIDesque string for a specific device.
* 'mute' is a sink property and simply mutes it.

On my Windows 8.1 system, the lowest latency that works is:

  wasapisrc buffer-time=20000
  wasapisink buffer-time=10000

aka, 20ms and 10ms respectively. These values are close to the lowest
possible with the IAudioClient interface. Further improvements require
porting to IAudioClient2 or IAudioClient3.

https://docs.microsoft.com/en-us/windows-hardware/drivers/audio/low-latency-audio

6 years agotests: camerabin: skip checks if we don't have encoders for the default format
Tim-Philipp Müller [Sat, 20 Jan 2018 15:49:35 +0000 (15:49 +0000)]
tests: camerabin: skip checks if we don't have encoders for the default format

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

6 years agotests: ipcpipeline: fix struct initialisation warnings with clang
Tim-Philipp Müller [Wed, 17 Jan 2018 12:06:28 +0000 (12:06 +0000)]
tests: ipcpipeline: fix struct initialisation warnings with clang

Use init macros to avoid gst-indent making a mess of it.

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

6 years agotests: remove test that's never been ported to 1.x
Tim-Philipp Müller [Tue, 16 Jan 2018 11:35:22 +0000 (11:35 +0000)]
tests: remove test that's never been ported to 1.x

6 years agohlsdemux: fix memory leak while updating master playlist
Jun Xie [Wed, 3 Jan 2018 02:26:49 +0000 (10:26 +0800)]
hlsdemux: fix memory leak while updating master playlist

new_master needs to be freed if current playlist is not a master playlist

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

6 years agolv2: fix inverted boolean properties
Tim-Philipp Müller [Mon, 15 Jan 2018 20:01:06 +0000 (20:01 +0000)]
lv2: fix inverted boolean properties

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

6 years agocheck: Update gitignore
Edward Hervey [Thu, 11 Jan 2018 10:49:06 +0000 (11:49 +0100)]
check: Update gitignore

6 years agomxfdemux: Remove useless check
Edward Hervey [Thu, 11 Jan 2018 10:41:33 +0000 (11:41 +0100)]
mxfdemux: Remove useless check

Any modification of ret in that "while (ret == GST_FLOW_OK)" loop will
break (and cause it to stop the iteration).

CID #1427095

6 years agokateenc: Refactoring for readability and leak fixing
Edward Hervey [Thu, 11 Jan 2018 10:33:22 +0000 (11:33 +0100)]
kateenc: Refactoring for readability and leak fixing

Instead of a massive if/else/if/else/if/else/...:
* Use a common cleanup path for allocated items just before leaving
  the function (which will be free-d only if we're not dealing with
  a delayed SPU).
* "goto" that cleanup path wherever needed

CID #1427096
CID #1427114

6 years agomsdk: change plugin's description
Víctor Manuel Jáquez Leal [Thu, 11 Jan 2018 10:29:38 +0000 (11:29 +0100)]
msdk: change plugin's description

There are not only encoders nowadays, there are decoders too and a
postprocessor in the future.

6 years agomsdk: init the debug category for mpeg2dec
Sreerenj Balachandran [Thu, 11 Jan 2018 03:24:07 +0000 (18:24 -0900)]
msdk: init the debug category for mpeg2dec

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

6 years agomsdk: Add mpeg2 decoder
Sreerenj Balachandran [Wed, 10 Jan 2018 19:40:24 +0000 (10:40 -0900)]
msdk: Add mpeg2 decoder

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

6 years agosrt: The pkgconfig is "srt", not "libsrt"
Olivier Crête [Tue, 9 Jan 2018 23:11:52 +0000 (18:11 -0500)]
srt: The pkgconfig is "srt", not "libsrt"

Also, always use the pkgconfig file instead of falling back

6 years agosrt: Include srt.h inside object header
Olivier Crête [Tue, 9 Jan 2018 23:10:04 +0000 (18:10 -0500)]
srt: Include srt.h inside object header

Otherwise, newer GCC complains about now having sockaddr defined in
the header.

6 years agoplayer: doc update for set_subtitle_uri()
Philippe Normand [Sun, 7 Jan 2018 14:45:37 +0000 (14:45 +0000)]
player: doc update for set_subtitle_uri()

A call to this function without enabling the subtitle track has no effect.

6 years agodecklinkaudiosrc: Extrapolate stream/hw reference timestamps when video frame is...
Vivia Nikolaidou [Fri, 29 Dec 2017 13:14:54 +0000 (15:14 +0200)]
decklinkaudiosrc: Extrapolate stream/hw reference timestamps when video frame is missing

Sometimes we might get an audio packet without a corresponding video
frame. In these cases, the stream and hardware reference timestamps
would be missing, because they're called on the video frame. Instead of
potentially breaking stuff downstream that might depend on these, we now
extrapolate them.

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

6 years agodecklink: Detect gaps on incoming stream times, issue warnings
Vivia Nikolaidou [Wed, 26 Apr 2017 16:05:21 +0000 (19:05 +0300)]
decklink: Detect gaps on incoming stream times, issue warnings

When we receive a video or audio buffer, we calculate the next stream
time based on the current stream time + buffer duration. If the next
buffer's stream time is after that, we issue a warning.

This happens because the stream time incoming from Decklink should be
really constant and without gaps. If there is a gap, it means that
something went wrong, e.g. the internal buffer pool is empty (too many
buffers queued up downstream).

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

6 years agoRevert "WIP: Revert "Revert "decklink: Detect gaps on incoming stream times, issue...
Vivia Nikolaidou [Thu, 4 Jan 2018 13:41:51 +0000 (15:41 +0200)]
Revert "WIP: Revert "Revert "decklink: Detect gaps on incoming stream times, issue warnings"""

This reverts commit 8dceeb5ccd6e46a61e3bbe79efa45275504fa500.

6 years agoRevert "WIP: Revert "Revert "debugutils: Added new jitterer element"""
Vivia Nikolaidou [Thu, 4 Jan 2018 13:41:50 +0000 (15:41 +0200)]
Revert "WIP: Revert "Revert "debugutils: Added new jitterer element"""

This reverts commit a401cb9a61f21c2fbc803eb3f098a9e2496edc06.

6 years agoRevert "WIP: Revert "Revert "timecodestamper: LTC from audio"""
Vivia Nikolaidou [Thu, 4 Jan 2018 13:41:49 +0000 (15:41 +0200)]
Revert "WIP: Revert "Revert "timecodestamper: LTC from audio"""

This reverts commit e0be05dc7059cc97dceb70a48ca9cad4ee2edce6.

6 years agoRevert "WIP: Revert "Revert "timecodestamper: Modify ltc-add to tc-add"""
Vivia Nikolaidou [Thu, 4 Jan 2018 13:41:48 +0000 (15:41 +0200)]
Revert "WIP: Revert "Revert "timecodestamper: Modify ltc-add to tc-add"""

This reverts commit 2f9da0ab59ef4231e9c850afb089d920e9d25609.

6 years agoRevert "decklinkaudiosrc: Extrapolate stream/hw reference timestamps when video frame...
Vivia Nikolaidou [Thu, 4 Jan 2018 13:41:44 +0000 (15:41 +0200)]
Revert "decklinkaudiosrc: Extrapolate stream/hw reference timestamps when video frame is missing"

This reverts commit 6af863916a7bf3bfe31970fdc2dd2d42ea3f9690.

6 years agodecklinkaudiosrc: Extrapolate stream/hw reference timestamps when video frame is...
Vivia Nikolaidou [Fri, 29 Dec 2017 13:14:54 +0000 (15:14 +0200)]
decklinkaudiosrc: Extrapolate stream/hw reference timestamps when video frame is missing

Sometimes we might get an audio packet without a corresponding video
frame. In these cases, the stream and hardware reference timestamps
would be missing, because they're called on the video frame. Instead of
potentially breaking stuff downstream that might depend on these, we now
extrapolate them.

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

6 years agoWIP: Revert "Revert "timecodestamper: Modify ltc-add to tc-add""
Vivia Nikolaidou [Tue, 7 Nov 2017 19:14:18 +0000 (21:14 +0200)]
WIP: Revert "Revert "timecodestamper: Modify ltc-add to tc-add""

This reverts commit 05426d9298431c149807fb435cd1d632e9fd061f.

6 years agoWIP: Revert "Revert "timecodestamper: LTC from audio""
Vivia Nikolaidou [Tue, 7 Nov 2017 19:14:15 +0000 (21:14 +0200)]
WIP: Revert "Revert "timecodestamper: LTC from audio""

This reverts commit 1998ccf1fbd586ef1dc4b1e7256bad7af8136f13.

6 years agoWIP: Revert "Revert "debugutils: Added new jitterer element""
Vivia Nikolaidou [Tue, 7 Nov 2017 19:14:01 +0000 (21:14 +0200)]
WIP: Revert "Revert "debugutils: Added new jitterer element""

This reverts commit ccc1624d097cbfdaf9f99526c033c642c863400c.

6 years agoWIP: Revert "Revert "decklink: Detect gaps on incoming stream times, issue warnings""
Vivia Nikolaidou [Tue, 7 Nov 2017 19:13:57 +0000 (21:13 +0200)]
WIP: Revert "Revert "decklink: Detect gaps on incoming stream times, issue warnings""

This reverts commit 07819afda461f5e4d77c9be9f484a7aae3c5ec8c.

6 years agoopenh264dec: Remove useless check
Edward Hervey [Wed, 3 Jan 2018 15:07:24 +0000 (16:07 +0100)]
openh264dec: Remove useless check

We are sure to have a frame at this point

CID #1427138

6 years agohlssink2: Remove useless if statement
Edward Hervey [Wed, 3 Jan 2018 14:15:25 +0000 (15:15 +0100)]
hlssink2: Remove useless if statement

message will always be present

CID #1409853

6 years agokateenc: Fix memory leak in error cases
Edward Hervey [Wed, 3 Jan 2018 11:15:01 +0000 (12:15 +0100)]
kateenc: Fix memory leak in error cases

CID #1427096
CID #1427114

6 years agosrt: Remove platform dependent socket headers
Justin Kim [Tue, 2 Jan 2018 11:51:25 +0000 (20:51 +0900)]
srt: Remove platform dependent socket headers

SRT modules entrust `gnetworking.h` with finding right headers
for the platforms.

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

6 years agonalutils: Fix Exponential-Golomb 'ue' parsing
Edward Hervey [Tue, 2 Jan 2018 14:23:00 +0000 (15:23 +0100)]
nalutils: Fix Exponential-Golomb 'ue' parsing

The algorithm we use only supports up to a maximum exponent of 31
(for a maximum resulting of 2**32 -1)

CID #1427097

6 years agoopencv: allow all future 3.4.x versions
Tim-Philipp Müller [Tue, 2 Jan 2018 11:43:39 +0000 (11:43 +0000)]
opencv: allow all future 3.4.x versions

Fix-up for previous patch which I modified incorrectly.

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

6 years agoopencv: allow compilation against 3.4.x
Nicola Murino [Tue, 2 Jan 2018 09:12:11 +0000 (10:12 +0100)]
opencv: allow compilation against 3.4.x

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

6 years agoplayer: transfer ownership of info properties
Philippe Normand [Wed, 27 Dec 2017 13:08:18 +0000 (13:08 +0000)]
player: transfer ownership of info properties

The previous code would emit GObject critical warnings when the info properties
are NULL.

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

6 years agosrtp: get ssrc for Application-Defined RTCP Packet
Justin Kim [Tue, 26 Dec 2017 00:54:18 +0000 (09:54 +0900)]
srtp: get ssrc for Application-Defined RTCP Packet

Application-defined RTCP(204) packets also have a ssrc in their header.
To find a valid stream from the packet, the ssrc should be used.

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

6 years agomeson: skip translations if gettext is not available
Tim-Philipp Müller [Tue, 26 Dec 2017 12:52:18 +0000 (13:52 +0100)]
meson: skip translations if gettext is not available

6 years agoFix typo in gstreamer-bad-audio-1.0.pc
Tim-Philipp Müller [Sun, 24 Dec 2017 10:36:01 +0000 (11:36 +0100)]
Fix typo in gstreamer-bad-audio-1.0.pc

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

6 years agogl: local libs should come first in Makefile.am
Tim-Philipp Müller [Sat, 23 Dec 2017 11:53:39 +0000 (12:53 +0100)]
gl: local libs should come first in Makefile.am

And keep consistent order in CFLAGS and LIBS.

6 years agogl: arrange for finding headers and libs that have moved to -base
Mark Nauwelaerts [Sat, 23 Dec 2017 11:29:03 +0000 (12:29 +0100)]
gl: arrange for finding headers and libs that have moved to -base

In file included from ../../../gst-plugins-bad/ext/gl/gstopengl.c:47:0:
../../../gst-plugins-bad/ext/gl/gstglmixerbin.h:25:29: fatal error: gst/video/video.h: No such file or directory

6 years agofestival: Don't forward all queries
Nicolas Dufresne [Wed, 20 Dec 2017 04:13:34 +0000 (23:13 -0500)]
festival: Don't forward all queries

This fixes issues where wavparse would query the file size upstream
and assert because the file size is way smaller then what the WAVE
header says. This patch disable or cane a handful of queries that
make no sense to forward.

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

6 years agoaudioaggregator: Don't leak pads
Edward Hervey [Wed, 20 Dec 2017 14:02:30 +0000 (15:02 +0100)]
audioaggregator: Don't leak pads

all audioaggregator subclasses were leaking the first sink pad :)

6 years agoadaptivedemux: fix pending_segment log
Jun Xie [Wed, 20 Dec 2017 07:01:16 +0000 (15:01 +0800)]
adaptivedemux: fix pending_segment log

pending_segment shall be logged as GST_PTR_FORMAT, it's an event

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

6 years agoshmsink: Block in preroll_wait on unlock
Olivier Crête [Tue, 19 Dec 2017 22:35:39 +0000 (17:35 -0500)]
shmsink: Block in preroll_wait on unlock

The correct behaviour of anything stuck in the ->render() function
between ->unlock() and ->unlock_stop() is to call
gst_base_sink_wait_preroll() and only return an error if this returns an
error, otherwise, it must continue where it left off!

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

6 years agoaudioaggregator: implement input conversion
Mathieu Duponchelle [Sat, 22 Jul 2017 18:32:20 +0000 (20:32 +0200)]
audioaggregator: implement input conversion

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

6 years agosmhsink: Check return values of functions working on memory
Marcin Lewandowski [Thu, 7 Jul 2016 18:40:22 +0000 (20:40 +0200)]
smhsink: Check return values of functions working on memory

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

6 years agoapplemedia: don't include private cocoa gl header
Tim-Philipp Müller [Tue, 19 Dec 2017 21:35:08 +0000 (21:35 +0000)]
applemedia: don't include private cocoa gl header

6 years agogtk example: Fix cflags in Makefile.am
Olivier Crête [Tue, 19 Dec 2017 21:22:52 +0000 (16:22 -0500)]
gtk example: Fix cflags in Makefile.am

6 years agogl: enable openglmixers plugin in autotools again too
Tim-Philipp Müller [Tue, 19 Dec 2017 19:23:43 +0000 (19:23 +0000)]
gl: enable openglmixers plugin in autotools again too

6 years agoapplemedia: fix build after gl move to -base
Tim-Philipp Müller [Tue, 19 Dec 2017 17:56:33 +0000 (17:56 +0000)]
applemedia: fix build after gl move to -base

6 years agomeson: gl: fix build of openglmixers plugin
Tim-Philipp Müller [Tue, 19 Dec 2017 17:34:50 +0000 (17:34 +0000)]
meson: gl: fix build of openglmixers plugin

6 years agomeson: fix dependency type name to check for
Tim-Philipp Müller [Tue, 19 Dec 2017 15:14:07 +0000 (15:14 +0000)]
meson: fix dependency type name to check for

6 years agomeson: fix build with GstGL from gst-plugins-base as subproject
Tim-Philipp Müller [Tue, 19 Dec 2017 15:06:22 +0000 (15:06 +0000)]
meson: fix build with GstGL from gst-plugins-base as subproject

- use right fallback variable
- get platform/winsys variables from subproject instead of pkg-config

With contributions from Thibault Saunier.

6 years agogtk: don't include uninstalled header
Tim-Philipp Müller [Tue, 19 Dec 2017 13:03:28 +0000 (13:03 +0000)]
gtk: don't include uninstalled header

6 years agoallocatorsbad: physmem moved to -base
Tim-Philipp Müller [Wed, 13 Dec 2017 01:05:32 +0000 (01:05 +0000)]
allocatorsbad: physmem moved to -base

6 years agogl: update plugins to use GstGL from -base
Tim-Philipp Müller [Sun, 17 Dec 2017 20:54:06 +0000 (20:54 +0000)]
gl: update plugins to use GstGL from -base

6 years agogl: most of opengl plugin has moved to -base, keep mixer bits in -bad for now
Tim-Philipp Müller [Mon, 11 Dec 2017 14:20:59 +0000 (14:20 +0000)]
gl: most of opengl plugin has moved to -base, keep mixer bits in -bad for now

Since they rely on GstVideoAggregator.

Fix detection of things again, and Meson

6 years agogl: remove GStreamer OpenGL integration library and move to -base
Tim-Philipp Müller [Mon, 11 Dec 2017 12:59:09 +0000 (12:59 +0000)]
gl: remove GStreamer OpenGL integration library and move to -base

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

6 years agoladspa: Add Windows/OSX path support
Nicolas Dufresne [Mon, 18 Dec 2017 21:54:15 +0000 (16:54 -0500)]
ladspa: Add Windows/OSX path support

This is to mimic LV2 and what is commonly documented over the
web. We also completely track these directories when updating
the cache now. Unlike LV2, the plugins are flat in the plugin
directories, so no need for the recursive lookup. This also fixes
support for Fedora and other architecture using lib64 as a libdir.

6 years agomeson: Enable ladspa plugins compilation
Nicolas Dufresne [Mon, 18 Dec 2017 21:09:53 +0000 (16:09 -0500)]
meson: Enable ladspa plugins compilation

6 years agolv2: Try and reflect better lilv default path
Nicolas Dufresne [Mon, 18 Dec 2017 19:42:21 +0000 (14:42 -0500)]
lv2: Try and reflect better lilv default path

While keeping it simple, this patch tries and mimic lilv default path.
It does not matter if some path are duplicated due to symlink because in
the end it's lilv that will walk these paths. The worst case is that we
update our cache more often then strictly needed.

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

6 years agolv2: Recursively monitor the lv2 plugin path
Nicolas Dufresne [Mon, 18 Dec 2017 17:11:21 +0000 (12:11 -0500)]
lv2: Recursively monitor the lv2 plugin path

Otherwise we might not update the cache when needed.

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

6 years agoRevert "New element 'proxy' to send data to in-process pipelines"
Nirbheek Chauhan [Mon, 18 Dec 2017 19:46:35 +0000 (01:16 +0530)]
Revert "New element 'proxy' to send data to in-process pipelines"

This reverts commit 8a056af05e23ad5b81cd1dc2699ae20abcf9b91a.

Accidentally pushed this element, oops! Progress on this element is
being tracked at: https://bugzilla.gnome.org/show_bug.cgi?id=788200