platform/upstream/gstreamer.git
7 years agopo: Update translations
Sebastian Dröge [Fri, 7 Apr 2017 12:06:30 +0000 (15:06 +0300)]
po: Update translations

7 years agoaacparse: streamline and improve AudioSpecificConfig parsing
Edward Hervey [Thu, 6 Apr 2017 10:01:00 +0000 (12:01 +0200)]
aacparse: streamline and improve AudioSpecificConfig parsing

AudioSpecifigConfig is used in a variety of AAC streams but was
being parsed differently. Instead, make everyone use the same parsing.

* Remove unused 'bits' field (it was always set to 0 if present)
* Add proper GAConfig parsing (to know the  number of samples per frame
  if present).

Fixes wrong rate/channels configuration in streams coming from qtdemux

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

7 years agov4l2videodec: Fix 32bit only printf format
Nicolas Dufresne [Wed, 5 Apr 2017 13:46:31 +0000 (09:46 -0400)]
v4l2videodec: Fix 32bit only printf format

The previous patch was using %llu for 64bits printf, which is 32bit
specific. We also trace the latency in time human readable form now.

7 years agov4l2object: set streamparm for outputs that support it
Philipp Zabel [Wed, 16 Mar 2016 15:22:48 +0000 (16:22 +0100)]
v4l2object: set streamparm for outputs that support it

Without a specified framerate from the sink, the decoder frame interval
should be set using the framerate of the encoded video stream.
Therefore, the v4l2object should be able to change the framerate on the
output if the V4L2 device accepts it.

This is also necessary for mem2mem encoders so that their bitrate
calculation code may work correctly and they may report the correct
frame duration on the capture queue.

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

7 years agov4l2videodec: only set latency if the frame duration is valid
Philipp Zabel [Wed, 16 Mar 2016 15:24:55 +0000 (16:24 +0100)]
v4l2videodec: only set latency if the frame duration is valid

If the duration of the v4l2object is GST_CLOCK_TIME_NONE, because the
sink did not specify a framerate in the caps and the driver accepts the
framerate, the decoder element uses GST_CLOCK_TIME_NONE to calculate and
set the element latency.

While this is a bug of the capture driver, the decoder element should
not use the invalid duration to calculate a latency, but print a warning
instead.

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

7 years agov4l2sink: Block in preroll_wait on unlock
Olivier Crête [Wed, 23 Nov 2016 17:17:55 +0000 (12:17 -0500)]
v4l2sink: 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=774945

7 years agovp9dec: Add warnings for unsupported frame formats
Jan Schmidt [Wed, 5 Apr 2017 05:55:20 +0000 (15:55 +1000)]
vp9dec: Add warnings for unsupported frame formats

At least output an element warning on the bus when we
encounter a frame format GStreamer doesn't currently support.

7 years agoaacparse: Handle Parametric Stereo with HE-AAC(v2)
Edward Hervey [Tue, 4 Apr 2017 15:55:13 +0000 (17:55 +0200)]
aacparse: Handle Parametric Stereo with HE-AAC(v2)

According to ISO/IEC:14496-2:2009 , in the case of HE-AACv2 (audioObjecType
29) parametric stereo is used (a single mono track is used and then
transformations are applied to it to provide a stereo output).

We therefore report two channels in the case where there is one reported
in the audioChannelConfiguration.

Fixes the various issues where a demuxer would report two channels, but
then the parser would say there's only one channel, and then the decoder
would output two channels.

7 years agoqtmux: Simplify buffer refcounting in add_buffer() and remove unneeded NULL checks
Sebastian Dröge [Tue, 4 Apr 2017 12:22:25 +0000 (15:22 +0300)]
qtmux: Simplify buffer refcounting in add_buffer() and remove unneeded NULL checks

7 years agoqtmux: Select the best pad based on the cached last_buf if any
Sebastian Dröge [Tue, 4 Apr 2017 12:08:33 +0000 (15:08 +0300)]
qtmux: Select the best pad based on the cached last_buf if any

last_buf is the one we're going to write next, not buf. As such we
should check timestamps against that one if there is one to select the
earliest pad.

Also remember the currently selected pad in the very beginning when
storing the first last_buf.

This both solves some edge cases where not the correct next pad was
selected corresponding to the target interleave.

7 years agoqtmux: Error out immediately if a timecode is to be written but downstream return...
Sebastian Dröge [Tue, 4 Apr 2017 12:07:40 +0000 (15:07 +0300)]
qtmux: Error out immediately if a timecode is to be written but downstream return not-OK

7 years agoqtdemux: Update variables before early exit
Edward Hervey [Mon, 3 Apr 2017 09:34:49 +0000 (11:34 +0200)]
qtdemux: Update variables before early exit

This is an update of d78d5896272d78df41e696fac929e7dfb3bb3dfa

We still exit as early as possible in case of non-ok/non-unlinked combined
flow, but we first make sure that we update the internal position variables.

This ensures that if upstreams "ignores" the flow return (and carries on pushing),
we don't end up processing data with completely bogus variables/positions.

7 years agointerleave: avoid using uninitialised ordering_map
Douglas Bagnall [Thu, 23 Mar 2017 11:11:13 +0000 (00:11 +1300)]
interleave: avoid using uninitialised ordering_map

If self->channel_positions == NULL (which seems unlikely),
self->default_channels_ordering_map will be used unintialised.

We avoid that by keeping track of the channel_mask, which is set when
the ordering map is initialised.

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

7 years agointerleave: don't overflow channel map with >64 channels
Douglas Bagnall [Thu, 23 Mar 2017 10:56:31 +0000 (23:56 +1300)]
interleave: don't overflow channel map with >64 channels

When there are more than 64 channels, we don't want to exceed the
bounds of the ordering_map buffer, and in these cases we don't want to
rempa at all. Here we avoid doing that.

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

7 years agomeson: Use get_pkgconfig_variable instead of calling pkg-config ourself
Thibault Saunier [Tue, 28 Mar 2017 17:23:16 +0000 (14:23 -0300)]
meson: Use get_pkgconfig_variable instead of calling pkg-config ourself

It is avalaible in meson 0.36 which is now are requirement

7 years agopkgconfig: Do not ever build an installed .pc file
Thibault Saunier [Tue, 28 Mar 2017 17:22:41 +0000 (14:22 -0300)]
pkgconfig: Do not ever build an installed .pc file

7 years agomeson: test: Fix environment object usage
Thibault Saunier [Tue, 28 Mar 2017 14:15:53 +0000 (11:15 -0300)]
meson: test: Fix environment object usage

7 years agopkgconfig: Generate the pkg-config with meson too
Thibault Saunier [Tue, 28 Mar 2017 14:14:47 +0000 (11:14 -0300)]
pkgconfig: Generate the pkg-config with meson too

7 years agoqtdemux: In gap mode, consider the mdat offset when calculating the remaining mdat...
Sebastian Dröge [Mon, 27 Mar 2017 18:52:00 +0000 (21:52 +0300)]
qtdemux: In gap mode, consider the mdat offset when calculating the remaining mdat size

The mdat generally does not start at offset 0, we have to include the
size of the moof and whatever else was in front of the mdat.

7 years agoatomsrecovery: Error out when fseek() fails instead of silently ignoring
Sebastian Dröge [Mon, 27 Mar 2017 08:43:31 +0000 (11:43 +0300)]
atomsrecovery: Error out when fseek() fails instead of silently ignoring

CID 1403262

7 years agov4l2object: Also add videometa if there is padding to the right and bottom
Carlos Rafael Giani [Thu, 23 Mar 2017 21:13:05 +0000 (22:13 +0100)]
v4l2object: Also add videometa if there is padding to the right and bottom

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

7 years agortpmux: fix output segment and buffer DTS to correspond to the flattened PTS
George Kiagiadakis [Tue, 21 Mar 2017 10:54:27 +0000 (12:54 +0200)]
rtpmux: fix output segment and buffer DTS to correspond to the flattened PTS

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

7 years agoqtmux: Remove some unused variables
Sebastian Dröge [Thu, 23 Mar 2017 15:53:19 +0000 (17:53 +0200)]
qtmux: Remove some unused variables

7 years agoqtmux: Remove a couple of unneeded levels of indentation
Sebastian Dröge [Thu, 23 Mar 2017 13:01:16 +0000 (15:01 +0200)]
qtmux: Remove a couple of unneeded levels of indentation

7 years agoqtdemux: distinguish TFDT with value 0 from no TFDT at all
Enrique Ocaña González [Wed, 22 Mar 2017 18:18:40 +0000 (18:18 +0000)]
qtdemux: distinguish TFDT with value 0 from no TFDT at all

TFDTs with time 0 are being ignored since commit 1fc3d42f. They're
mistaken with the case of not having TFDT, but those two cases
must be distinguished in some way.

This patch passes an extra boolean flag when the TFDT is present.
This is now the condition being evaluated, instead of checking for
0 time.

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

7 years agoqtmux: Reset current chunk after writing out timecode
Sebastian Dröge [Wed, 22 Mar 2017 17:15:09 +0000 (19:15 +0200)]
qtmux: Reset current chunk after writing out timecode

If we have multiple tracks with timecodes, or it's not the first track
that has timecodes, or not the first buffer, we already started a chunk
for media data. We now need to "close" that chunk because we wrote data
for the timecode track and a new chunk has to be started for the
original track the next time it has data.

7 years agoqtmux: Do timecode handling per track, not per muxer instance
Sebastian Dröge [Wed, 22 Mar 2017 16:52:51 +0000 (18:52 +0200)]
qtmux: Do timecode handling per track, not per muxer instance

There could be multiple video tracks with timecodes.

7 years agoqtdemux: matroskademux: Ignore repeated seek events
Jan Schmidt [Tue, 21 Mar 2017 13:38:51 +0000 (00:38 +1100)]
qtdemux: matroskademux: Ignore repeated seek events

Similar to what was done in adaptivedemux, ignore seek
events we've already handled - such as when they are received
on every srcpad of files with lots of streams.

7 years agodashdemux: Update mdatleft from overall mdatsize and offset when observing a gap
Sebastian Dröge [Tue, 21 Mar 2017 12:55:32 +0000 (14:55 +0200)]
dashdemux: Update mdatleft from overall mdatsize and offset when observing a gap

Otherwise mdatleft will have a value calculated from the initial
mdatsize minus the parts of the stream that we saw, which is not
including all the parts of the stream that might've been skipped.

7 years agodocs: update two references to the removed 'mad' plugin
Tim-Philipp Müller [Mon, 20 Mar 2017 17:03:32 +0000 (17:03 +0000)]
docs: update two references to the removed 'mad' plugin

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

7 years agortprtxqueue: add basic documentation and example pipelines
George Kiagiadakis [Mon, 20 Mar 2017 10:03:29 +0000 (12:03 +0200)]
rtprtxqueue: add basic documentation and example pipelines

Mostly explaining the difference between rtprtxqueue and rtprtxsend.

7 years agov4l2: Fix meson plugin shared object name
Nicolas Dufresne [Sat, 18 Mar 2017 00:58:28 +0000 (20:58 -0400)]
v4l2: Fix meson plugin shared object name

It didn't match between AutoMake and Meson, and the Meson name
didn't math the plugin name (video4linux2).

7 years agortprtxreceive: fix example pipelines and improve the documentation
George Kiagiadakis [Thu, 16 Mar 2017 16:20:54 +0000 (18:20 +0200)]
rtprtxreceive: fix example pipelines and improve the documentation

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

7 years agoflacparse: fix playback if sample number does not start at 0
Vincent Penquerc'h [Fri, 17 Mar 2017 14:10:40 +0000 (14:10 +0000)]
flacparse: fix playback if sample number does not start at 0

This reverts commit 29b807685d3c962bbe8afe351c5dca97d59eb5e0, while
fixing the original breaking tests/check/pipelines/flacdec.

7 years agoRevert "flacparse: fix playback if sample number does not start at 0"
Vincent Penquerc'h [Fri, 17 Mar 2017 11:30:04 +0000 (11:30 +0000)]
Revert "flacparse: fix playback if sample number does not start at 0"

This breaks gst-validate on the build server (though not locally),
and a unit test, and I can't run unit tests right now for some
unrelated reason.

This reverts commit 0747b56f8e7f4731d67f8d13a4bdc453dde0fdf7.

7 years agortpsession: print the correct variable in debug statement
George Kiagiadakis [Thu, 16 Mar 2017 15:44:41 +0000 (17:44 +0200)]
rtpsession: print the correct variable in debug statement

This debug statement is meant to print the time since the last (early)
RTCP transmission, not the last regular RTCP transmission (which also
happens to be set a few lines above to current_time, so the debug output
is just confusing)

7 years agortprtxsend: convert LOG message to TRACE
George Kiagiadakis [Thu, 16 Mar 2017 15:42:27 +0000 (17:42 +0200)]
rtprtxsend: convert LOG message to TRACE

This is printed too often (for every chained buffer!) and just clutters the logs.

7 years agortpsource: fix warning message
Miguel París Díaz [Thu, 16 Mar 2017 13:58:45 +0000 (14:58 +0100)]
rtpsource: fix warning message

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

7 years agoflacparse: fix playback if sample number does not start at 0
Vincent Penquerc'h [Thu, 16 Mar 2017 13:54:54 +0000 (13:54 +0000)]
flacparse: fix playback if sample number does not start at 0

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

7 years agortpsource: get clock-rate from pt if needed to generate SR
Miguel París Díaz [Wed, 15 Mar 2017 17:58:55 +0000 (18:58 +0100)]
rtpsource: get clock-rate from pt if needed to generate SR

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

7 years agosouphttpsrc: Include GStreamer souphttpsrc version in default User-Agent string
Sebastian Dröge [Thu, 16 Mar 2017 11:52:48 +0000 (13:52 +0200)]
souphttpsrc: Include GStreamer souphttpsrc version in default User-Agent string

7 years agortph264depay: fix crash with empty sprops-parameters
Tim-Philipp Müller [Thu, 16 Mar 2017 00:41:44 +0000 (00:41 +0000)]
rtph264depay: fix crash with empty sprops-parameters

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

7 years agoatomsrecovery: also handle extra atoms after 'mdia' in a 'trak'
Thiago Santos [Sun, 12 Mar 2017 05:20:40 +0000 (21:20 -0800)]
atomsrecovery: also handle extra atoms after 'mdia' in a 'trak'

Take into account the atoms at the end of the 'trak' atom when
recovering it. So that its size (already computed and added in the trak
size) isn't making offsets wrong.

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

7 years agoqtmux: avoid fallthrough to moovrecovery failure section
Thiago Santos [Sat, 11 Mar 2017 20:56:33 +0000 (12:56 -0800)]
qtmux: avoid fallthrough to moovrecovery failure section

Return before that to preserve our successfull results, otherwise no
moov recovery information would be written

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

7 years agoatomsrecovery: expect more atom types at the headers
Thiago Santos [Sat, 11 Mar 2017 20:27:28 +0000 (12:27 -0800)]
atomsrecovery: expect more atom types at the headers

Skip more atoms at the header until it finds the 'mdat' to continue the
moov recovery

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

7 years agopulse example: Remove
Olivier Crête [Tue, 14 Mar 2017 20:42:25 +0000 (16:42 -0400)]
pulse example: Remove

That example only tested the property probe interface, which has been removed.
The same kind of thing can now be done with the generic gst-device-monitor tool.

7 years agov4l2: Remove unused macro
Olivier Crête [Tue, 14 Mar 2017 20:38:02 +0000 (16:38 -0400)]
v4l2: Remove unused macro

7 years agov4l2: Remove unused definitions
Olivier Crête [Tue, 14 Mar 2017 20:35:25 +0000 (16:35 -0400)]
v4l2: Remove unused definitions

7 years agoqtmux: add CineForm support
Emeric Grange [Tue, 14 Mar 2017 09:10:19 +0000 (10:10 +0100)]
qtmux: add CineForm support

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

7 years agoqtmux: Only create new chunks if we have more than a single stream
Sebastian Dröge [Tue, 14 Mar 2017 13:09:44 +0000 (15:09 +0200)]
qtmux: Only create new chunks if we have more than a single stream

There's no point in creating multiple chunks otherwise, it only wastes
some bytes for storing the chunk offsets.

7 years agoqtdemux: add S16L support
Emeric Grange [Tue, 14 Mar 2017 09:09:46 +0000 (10:09 +0100)]
qtdemux: add S16L support

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

7 years agosplitmux test: Use passed first/last timestamps
Jan Schmidt [Tue, 14 Mar 2017 04:48:08 +0000 (15:48 +1100)]
splitmux test: Use passed first/last timestamps

Don't hard-code the expected timestamp range, use the
values the caller is passing in.

7 years agoAdd old plugin names to cruft list
Nicolas Dufresne [Sun, 12 Mar 2017 15:42:25 +0000 (11:42 -0400)]
Add old plugin names to cruft list

This will help fixing uninstalled setup. Also fix missing path
correction in one of the plugin xml.

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

7 years agortph264depay, rtph265depay: remove stray g_debug()
Michael Dutka [Thu, 15 Dec 2016 11:38:40 +0000 (12:38 +0100)]
rtph264depay, rtph265depay: remove stray g_debug()

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

7 years agoqtmux: init fourcc
Wim Taymans [Fri, 10 Mar 2017 10:24:14 +0000 (11:24 +0100)]
qtmux: init fourcc

Initialize the fourcc to 0 so that we can detect failure later.

7 years agotests: Add missing LDADD for libm in tests using math.h
Nicolas Dufresne [Thu, 9 Mar 2017 03:50:52 +0000 (22:50 -0500)]
tests: Add missing LDADD for libm in tests using math.h

Also, remove the math.h include for the one that just prentend to need
it.

7 years agoFix shout2 plugin doc generation
Nicolas Dufresne [Thu, 9 Mar 2017 03:15:46 +0000 (22:15 -0500)]
Fix shout2 plugin doc generation

In the previous patch, we also renamed shout2send to shout2, so it does
not clash with it's feature. Though we forgot to rename it in the doc
reference. This patch also add a cruft detection on the xml that made me
miss this error.

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

7 years agoFix plugin filenames to match plugin names
Nicolas Dufresne [Sat, 4 Mar 2017 15:52:47 +0000 (10:52 -0500)]
Fix plugin filenames to match plugin names

- libgstpulse.so becomes libgstpulseaudio.so
- libgstsouphttpsrc.so becomes libgstsoup.so
- libgstoss4audio.so becomes libgstoss4.so

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

7 years agoqtmux: Free EDTS instead of just clearing it and setting it to NULL
Sebastian Dröge [Wed, 8 Mar 2017 14:01:02 +0000 (16:01 +0200)]
qtmux: Free EDTS instead of just clearing it and setting it to NULL

7 years agoqtmux: Fix some memory leaks related to timecode tracks
Sebastian Dröge [Wed, 8 Mar 2017 13:27:32 +0000 (15:27 +0200)]
qtmux: Fix some memory leaks related to timecode tracks

7 years agosplitmux: Add unit test for reverse playback
Jan Schmidt [Fri, 3 Mar 2017 13:34:44 +0000 (00:34 +1100)]
splitmux: Add unit test for reverse playback

Ensure that reverse playback works and generates the range
of timestamps (0-3s) we expect, in monotonically descending order.

7 years agosplitmuxsrc: Fix reverse playback
Jan Schmidt [Tue, 28 Feb 2017 00:50:45 +0000 (11:50 +1100)]
splitmuxsrc: Fix reverse playback

Fix the check for whether the start time of the segment has
been reached when playing in reverse. Otherwise, playback
stops after reaching the start of any file part, instead of
continuing until all parts within the segment have played

7 years agoqtdemux: Don't lose crypto info on a new moof
Jan Schmidt [Tue, 21 Feb 2017 16:01:31 +0000 (03:01 +1100)]
qtdemux: Don't lose crypto info on a new moof

We parse the next moof in advance of having pushed
all samples from the previous one in some cases, and
we'll still need the crypto info from the previous
fragment so keep around any unused crypto info entries
when adding new ones

7 years agoqtmux: Update modification times when sending the moov
Sebastian Dröge [Mon, 27 Feb 2017 11:55:58 +0000 (13:55 +0200)]
qtmux: Update modification times when sending the moov

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

7 years agosbcparse: Fix up values for allocation enumeration.
Michael Smith [Thu, 2 Mar 2017 00:11:47 +0000 (16:11 -0800)]
sbcparse: Fix up values for allocation enumeration.

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

7 years agortprtxreceive: fix potential leak of old, unassociated, association requests
George Kiagiadakis [Tue, 28 Feb 2017 11:10:50 +0000 (13:10 +0200)]
rtprtxreceive: fix potential leak of old, unassociated, association requests

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

7 years agoavidemux: Don't increment -1 / unset indices
Sebastian Dröge [Tue, 28 Feb 2017 13:47:23 +0000 (15:47 +0200)]
avidemux: Don't increment -1 / unset indices

CID 1398545

7 years agoqtdemux: Protect against NULL pointer dereference for streams without caps
Sebastian Dröge [Tue, 28 Feb 2017 13:20:31 +0000 (15:20 +0200)]
qtdemux: Protect against NULL pointer dereference for streams without caps

CID 1363332

7 years agortph263pay: Free mac on errors
Sebastian Dröge [Tue, 28 Feb 2017 10:57:02 +0000 (12:57 +0200)]
rtph263pay: Free mac on errors

CID 1212149

7 years agortpvorbispay: Add missing break to for loop
Sebastian Dröge [Tue, 28 Feb 2017 10:45:24 +0000 (12:45 +0200)]
rtpvorbispay: Add missing break to for loop

7 years agocheck: Fix splitmux test CFLAGS
Edward Hervey [Tue, 28 Feb 2017 10:02:54 +0000 (11:02 +0100)]
check: Fix splitmux test CFLAGS

Needs to know where the gstapp headers are

7 years agoqtdemux: Fix compilation with gcc 7
Sebastian Dröge [Mon, 27 Feb 2017 19:02:51 +0000 (21:02 +0200)]
qtdemux: Fix compilation with gcc 7

qtdemux.c: In function ‘qtdemux_parse_samples’:
qtdemux.c:8450:39: error: ‘*’ in boolean context, suggest ‘&&’ instead [-Werror=int-in-bool-context]
         if (stream->samples_per_frame * stream->bytes_per_frame) {
             ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~

7 years agompegaudioparse: Fix compilation with gcc 7
Sebastian Dröge [Mon, 27 Feb 2017 19:01:23 +0000 (21:01 +0200)]
mpegaudioparse: Fix compilation with gcc 7

gstmpegaudioparse.c: In function ‘gst_mpeg_audio_parse_reset’:
gstmpegaudioparse.c:209:3: error: ‘memset’ used with length equal to number of elements without multiplication by element size [-Werror=memset-elt-size]
   memset (mp3parse->xing_seek_table_inverse, 0, 256);
   ^~~~~~
gstmpegaudioparse.c: In function ‘gst_mpeg_audio_parse_handle_first_frame’:
gstmpegaudioparse.c:951:7: error: ‘memset’ used with length equal to number of elements without multiplication by element size [-Werror=memset-elt-size]
       memset (mp3parse->xing_seek_table_inverse, 0, 256);
       ^~~~~~

7 years agortpvorbispay: When getting new headers, replace the old version of them
Sebastian Dröge [Mon, 27 Feb 2017 17:31:39 +0000 (19:31 +0200)]
rtpvorbispay: When getting new headers, replace the old version of them

This prevents storing an infinite amount of e.g. comment headers if they
come without a new initialization header in front of them. There can
only be one header of each type.

7 years agortp-payloading: Add new test for Vorbis renegotiation
Sebastian Dröge [Mon, 27 Feb 2017 17:25:35 +0000 (19:25 +0200)]
rtp-payloading: Add new test for Vorbis renegotiation

Check if encoding, payloading, depayloading and decoding works if the
stream configuration (and thus the headers) change.

7 years agovorbispay: Only replace headers when receiving a new config header
Sebastian Dröge [Mon, 27 Feb 2017 17:24:07 +0000 (19:24 +0200)]
vorbispay: Only replace headers when receiving a new config header

If we also replace all headers when receiving any possibly following
comments header, we would throw away the config header before being able
to make use of it.

7 years agotests: splitmux: add unit test for content with sparse streams
George Kiagiadakis [Thu, 23 Feb 2017 10:11:15 +0000 (12:11 +0200)]
tests: splitmux: add unit test for content with sparse streams

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

7 years agosplitmuxpartreader: ignore sparse streams when calculating the end offset of a part
George Kiagiadakis [Wed, 22 Feb 2017 09:23:19 +0000 (11:23 +0200)]
splitmuxpartreader: ignore sparse streams when calculating the end offset of a part

A sparse stream's ending timestamp can be considerably smaller
than the ending timestamps of the other streams, which can lead
to skipping considerable time from the next part.

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

7 years agosplitmuxpartreader: identify sparse streams
George Kiagiadakis [Wed, 22 Feb 2017 09:21:06 +0000 (11:21 +0200)]
splitmuxpartreader: identify sparse streams

7 years agoUpdate Edgard Lima's email
Edgard Lima [Sun, 26 Feb 2017 00:47:03 +0000 (21:47 -0300)]
Update Edgard Lima's email

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

7 years agortpjitterbuffer: Don't always reset PTS to 0 after a gap
Andrew [Wed, 8 Feb 2017 13:36:00 +0000 (13:36 +0000)]
rtpjitterbuffer: Don't always reset PTS to 0 after a gap

In function rtp_jitter_buffer_calculate_pts: If gap in incoming RTP
timestamps is more than (3 * jbuf->clock_rate) we call
rtp_jitter_buffer_reset_skew which resets pts to 0. So components down
the pipeline (playes, mixers) just skip frames/samples until pts becomes
equal to pts before gap.

In version 1.10.2 and before this checking was bypassed for packets with
"estimated dts", and gaps were handled correctly.

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

7 years agomeson: Update version
Sebastian Dröge [Fri, 24 Feb 2017 13:59:41 +0000 (15:59 +0200)]
meson: Update version

7 years agoBack to development
Sebastian Dröge [Fri, 24 Feb 2017 13:37:36 +0000 (15:37 +0200)]
Back to development

7 years agoRelease 1.11.2
Sebastian Dröge [Fri, 24 Feb 2017 13:07:23 +0000 (15:07 +0200)]
Release 1.11.2

7 years agoUpdate .po files
Sebastian Dröge [Fri, 24 Feb 2017 10:50:21 +0000 (12:50 +0200)]
Update .po files

7 years agopo: Update translations
Sebastian Dröge [Fri, 24 Feb 2017 10:44:58 +0000 (12:44 +0200)]
po: Update translations

7 years agosouphttpsrc: Extract redirection uri on libsoup's restarted callback
Seungha Yang [Fri, 10 Feb 2017 11:50:17 +0000 (20:50 +0900)]
souphttpsrc: Extract redirection uri on libsoup's restarted callback

Let libsoup handle redirection automatically.
And then, to figure out redirection uri, extract it on "restarted"
callback which will be fired before soup_session_send() is returned.

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

7 years agov4l2object: Update image size when extrapolating
Nicolas Dufresne [Tue, 3 Jan 2017 00:29:04 +0000 (19:29 -0500)]
v4l2object: Update image size when extrapolating

Update the image size according the amount of data we are going to
read/write. This workaround bugs in driver where the sizeimage provided
by TRY/S_FMT represent the buffer length (maximum size) rather then the expected
bytesused (buffer size).

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

7 years agov4l2: fix typo in _acquire_format() error messages
Reynaldo H. Verdejo Pinochet [Fri, 17 Feb 2017 23:50:32 +0000 (15:50 -0800)]
v4l2: fix typo in _acquire_format() error messages

Fixes:

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

7 years agotests: matroskamux, qtmux: don't add codec_data buffers to template caps
Guillaume Desmottes [Tue, 7 Feb 2017 16:27:56 +0000 (17:27 +0100)]
tests: matroskamux, qtmux: don't add codec_data buffers to template caps

streamheader and codec_data buffers fields are only meant to be
in the negotiated caps, not the template caps.

Fixes false-positive leaks of those buffers detected by the leaks
tracer, as template caps are static, and we decided to not include
code in gstreamer core to handle this unusual case of template caps
having buffers in them.

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

7 years agortpvorbispay: Update and send out headers when new headers are received
Jochen Henneberg [Thu, 9 Feb 2017 12:46:54 +0000 (12:46 +0000)]
rtpvorbispay: Update and send out headers when new headers are received

The payloader needs to reset and update the vorbis config data which is
pushed on the network if it receives new headers, or at least, it may
have to do so.

Without this, the stream configuration could change without the
payloader sending the new configuration to the other side.

7 years agosplitmuxsink: Change files on incompatible caps
Olivier Crête [Wed, 15 Feb 2017 19:48:58 +0000 (14:48 -0500)]
splitmuxsink: Change files on incompatible caps

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

7 years agosplitmuxsink: Reset ready_for_output on state change
Olivier Crête [Wed, 15 Feb 2017 21:35:01 +0000 (16:35 -0500)]
splitmuxsink: Reset ready_for_output on state change

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

7 years agosplitmuxsink: Remove unused next_max_out_running_time
Olivier Crête [Wed, 15 Feb 2017 20:09:06 +0000 (15:09 -0500)]
splitmuxsink: Remove unused next_max_out_running_time

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

7 years agosplitmuxsink: Remove unused muxed_out_time
Olivier Crête [Wed, 15 Feb 2017 20:07:32 +0000 (15:07 -0500)]
splitmuxsink: Remove unused muxed_out_time

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

7 years agoRevert "qtdemux: Always snap to the start of the keyframe"
Jan Schmidt [Fri, 17 Feb 2017 02:07:05 +0000 (13:07 +1100)]
Revert "qtdemux: Always snap to the start of the keyframe"

This reverts commit 107902ec514bd826aa29d2298107e2c091e1c779.

This commit intended to ensure that keyframe seeks land at the
start timestamp of a keyframe, rather than in the middle of one,
but they cause trouble on files with sparse streams, or with
JPEG 'cover art' tracks that have only one or a few JPEG samples
with very long durations.

That's still desirable for doing seamless cutting of videos,
but needs a rethink for implementation.

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

7 years agoaudiofx/echo: added surround-delay and surround-mask
Jan Schmidt [Thu, 16 Feb 2017 14:22:11 +0000 (01:22 +1100)]
audiofx/echo: added surround-delay and surround-mask

Add a new boolean surround-delay property that makes
audioecho just apply a delay to certain channels to create
a surround effect, rather than an echo on all
channels. This is useful when upmixing from stereo - for example.

Add a surround-mask property to control which channels
are considered surround sound channels when adding a
delay with surround-delay = true

Original patch from Jochen Henneberg <jh@henneberg-systemdesign.com>

7 years agoudpsrc: Use IP_MULTICAST_ALL for filtering IPv4 packets if available
Sebastian Dröge [Tue, 14 Feb 2017 22:13:30 +0000 (00:13 +0200)]
udpsrc: Use IP_MULTICAST_ALL for filtering IPv4 packets if available

This goes around the inefficient control message based filtering and
does all the filtering kernel-side. Unfortunately this is Linux-only and
there is no IPv6 variant of it (yet).

7 years agomeson: dist meson build files
Tim-Philipp Müller [Tue, 14 Feb 2017 19:53:30 +0000 (19:53 +0000)]
meson: dist meson build files

Ship meson build files in tarballs, so people who use tarballs
in their builds can start playing with meson already.

7 years agoicydemux: reset tags on empty value
Søren Juul [Fri, 10 Feb 2017 09:53:05 +0000 (10:53 +0100)]
icydemux: reset tags on empty value

Some radio streams uses StreamTitle='' to reset the title after a
track stopped playing, e.g. while the host talks between tracks or
during news segments.
This change forces an empty tag object to be distributed if
StreamTitle or StreamUrl is received with empty value, thus allowing
downstream elements to get notified about this.

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