platform/upstream/gstreamer.git
7 years agovideo-info: Add unit test for overflow checks
Sebastian Dröge [Thu, 24 Nov 2016 13:40:22 +0000 (15:40 +0200)]
video-info: Add unit test for overflow checks

And also prevent overflows caused by allowing uint width/height in
gst_video_info_set_format() but storing them as (signed!) ints.

7 years agovideo-info: And change the overflow check to not actually overflow itself
Sebastian Dröge [Thu, 24 Nov 2016 13:12:40 +0000 (15:12 +0200)]
video-info: And change the overflow check to not actually overflow itself

7 years agovideo: Handle errors in gst_video_info_set_format() / gst_video_info_align()
Sebastian Dröge [Wed, 23 Nov 2016 18:10:34 +0000 (20:10 +0200)]
video: Handle errors in gst_video_info_set_format() / gst_video_info_align()

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

7 years agovideo-info: Sanity check the frame size to prevent overflows
Sebastian Dröge [Wed, 23 Nov 2016 18:00:19 +0000 (20:00 +0200)]
video-info: Sanity check the frame size to prevent overflows

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

7 years agomikey: Generate the correct SRTP policy
Ulf Olsson [Wed, 23 Nov 2016 12:48:06 +0000 (13:48 +0100)]
mikey: Generate the correct SRTP policy

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

7 years agortspdefs: Assert on the excepted MD5 digest string length
Sebastian Dröge [Wed, 23 Nov 2016 16:26:29 +0000 (18:26 +0200)]
rtspdefs: Assert on the excepted MD5 digest string length

CID 1394494.

7 years agotypefind: bounds check windows ico detection
Matthew Waters [Wed, 23 Nov 2016 10:27:55 +0000 (21:27 +1100)]
typefind: bounds check windows ico detection

Fixes out of bounds read

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

7 years agotag: fix some warnings in mklicensestables
Scott D Phillips [Wed, 23 Nov 2016 05:12:23 +0000 (21:12 -0800)]
tag: fix some warnings in mklicensestables

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

7 years agogstfdmemory: log with GST_INFO instead of GST_ERROR on permission denied
Julien Isorce [Fri, 7 Oct 2016 14:08:37 +0000 (15:08 +0100)]
gstfdmemory: log with GST_INFO instead of GST_ERROR on permission denied

For example mmap can fail with EACCES if the the fd has been open
with read only mode. And mapping the memory might be the only way
to check that. So no need to print out an error.

Ex: ioctl(dev, DRM_IOCTL_PRIME_HANDLE_TO_FD, flags & ~DRM_RDWR)

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

7 years agotypefind: add typefinder for Apple/iTunes itc artwork files
Reynaldo H. Verdejo Pinochet [Tue, 18 Oct 2016 23:18:19 +0000 (16:18 -0700)]
typefind: add typefinder for Apple/iTunes itc artwork files

Avoids audio/mpeg false-positive described at:

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

7 years agortsp: Add gst_rtsp_message_parse_auth_credentials() to parse authentication credentials
Sebastian Dröge [Fri, 18 Nov 2016 14:51:26 +0000 (16:51 +0200)]
rtsp: Add gst_rtsp_message_parse_auth_credentials() to parse authentication credentials

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

7 years agortsp: Add gst_rtsp_generate_digest_auth_response() to calculate digest auth response
Sebastian Dröge [Fri, 18 Nov 2016 11:20:55 +0000 (13:20 +0200)]
rtsp: Add gst_rtsp_generate_digest_auth_response() to calculate digest auth response

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

7 years agowin32: remove copies of generated headers
Tim-Philipp Müller [Sun, 20 Nov 2016 15:43:42 +0000 (15:43 +0000)]
win32: remove copies of generated headers

7 years agodmabuf-allocator: Add missing padding in the class
Nicolas Dufresne [Fri, 18 Nov 2016 19:51:29 +0000 (14:51 -0500)]
dmabuf-allocator: Add missing padding in the class

This class was made subclassable, though for future growth of the code,
it's better if we have some room for add class members. Using the small
padding since this is unlikely.

7 years agotextoverlay: Mark pad as needing reconfiguration again if it failed
Sebastian Dröge [Thu, 17 Nov 2016 18:18:55 +0000 (20:18 +0200)]
textoverlay: Mark pad as needing reconfiguration again if it failed

And return FLUSHING instead of NOT_NEGOTIATED on flushing pads.

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

7 years agortpbasepayload: Ensure to set the RECONFIGURE flag again if reconfiguration failed
Sebastian Dröge [Thu, 17 Nov 2016 17:46:54 +0000 (19:46 +0200)]
rtpbasepayload: Ensure to set the RECONFIGURE flag again if reconfiguration failed

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

7 years agomeson: add_global_arguments -> add_project_arguments
Scott D Phillips [Fri, 18 Nov 2016 00:45:32 +0000 (16:45 -0800)]
meson: add_global_arguments -> add_project_arguments

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

7 years agovideotimecode: Add test for the calculations of distance from the daily jam
Sebastian Dröge [Thu, 17 Nov 2016 08:16:43 +0000 (10:16 +0200)]
videotimecode: Add test for the calculations of distance from the daily jam

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

7 years agovideotimecode: Fix incorrect nsec_since_daily_jam calculation
Vivia Nikolaidou [Wed, 16 Nov 2016 17:13:14 +0000 (19:13 +0200)]
videotimecode: Fix incorrect nsec_since_daily_jam calculation

For drop-frame timecodes, the nsec_since_daily_jam doesn't necessarily
directly correspond to this many hours/minutes/seconds/frames. We have
to get the frame count as per frames_since_daily_jam and then convert.

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

7 years agoriff: Extract bpp from the strf for vnmc
Sebastian Dröge [Wed, 16 Nov 2016 18:48:28 +0000 (20:48 +0200)]
riff: Extract bpp from the strf for vnmc

Needed for avdec_vnmc to work.

7 years agoplaysink: warn if a custom sink is set that has no 'sink' pad
Jan Schmidt [Wed, 16 Nov 2016 13:40:43 +0000 (00:40 +1100)]
playsink: warn if a custom sink is set that has no 'sink' pad

7 years agovideodecoder, audiodecoder: parse format before checking in src_query_default
Scott D Phillips [Tue, 15 Nov 2016 17:32:24 +0000 (09:32 -0800)]
videodecoder, audiodecoder: parse format before checking in src_query_default

The logic change in these commits misordered the parsing and checking of
format in position queries:

 2b06e54 videodecoder: Don't answer BYTES queries
 1840b02 audio: Don't answer BYTES queries

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

7 years agoappsink: fix g-i warnings and add since markers
Tim-Philipp Müller [Tue, 15 Nov 2016 18:32:50 +0000 (18:32 +0000)]
appsink: fix g-i warnings and add since markers

Rename function parameter and make sure the name in the
declaration matches the name in the implementation, to
avoid g-i warnings. Also add Since markers for gtk-doc.

gstappsink.c:1248: Warning: GstApp: gst_app_sink_set_buffer_list_support:
unknown parameter 'buffer_list' in documentation comment, should be 'drop'

7 years agodiscoverer: Do not try to unref the bus if it has not been set yet
Thibault Saunier [Tue, 15 Nov 2016 18:12:12 +0000 (15:12 -0300)]
discoverer: Do not try to unref the bus if it has not been set yet

It might happen if creation of the discoverer failed

7 years agoappsink: add support for buffer lists
Patricia Muscalu [Mon, 4 Jul 2016 07:32:28 +0000 (09:32 +0200)]
appsink: add support for buffer lists

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

7 years agoplaybin3: remove dead code
Wonchul Lee [Tue, 15 Nov 2016 06:23:20 +0000 (15:23 +0900)]
playbin3: remove dead code

It never reach into this code path, custom_combiner always not null
here.

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

7 years agovideodecoder: Don't answer BYTES queries
Jan Schmidt [Tue, 15 Nov 2016 12:36:41 +0000 (23:36 +1100)]
videodecoder: Don't answer BYTES queries

Refuse to answer BYTES queries ourselves. The only
time they make sense is on raw elementary streams,
in which case upstream would already have answered.

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

7 years agoaudio: Don't answer BYTES queries
Jan Schmidt [Tue, 15 Nov 2016 12:27:17 +0000 (23:27 +1100)]
audio: Don't answer BYTES queries

Refuse to answer BYTES queries ourselves. The only
time they make sense is on raw elementary streams,
in which case upstream would already have answered.

They especially don't make sense for encoders to answer
based on upstream values - although perhaps later
we could make it do TIME->BYTES conversion on the source
pad based on bitrate.

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

7 years agosdp: cast away const in call to g_free
Scott D Phillips [Tue, 15 Nov 2016 00:55:36 +0000 (16:55 -0800)]
sdp: cast away const in call to g_free

MSVC warns about the const here. It's safe to cast away.

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

7 years agoCast away const from GstMetaInfo in *_get_meta_info() functions
Scott D Phillips [Tue, 15 Nov 2016 00:48:16 +0000 (16:48 -0800)]
Cast away const from GstMetaInfo in *_get_meta_info() functions

MSVC warns about the const in the implicit argument conversion in the
calls to g_once_init_{enter,leave}. It's OK so explicitly cast it.

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

7 years agodecodebin3: Clear saw_eos flag of DecodebinInputStream by FLUSH event
Seungha Yang [Sun, 13 Nov 2016 04:15:38 +0000 (13:15 +0900)]
decodebin3: Clear saw_eos flag of DecodebinInputStream by FLUSH event

Likewise how GstPad is doing, saw_eos flag of DecodebinInputStream
must be cleared by FLUSH event.

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

7 years agoplaybin3: Fix deadlock when adding multiple parsebin
Wonchul Lee [Mon, 17 Oct 2016 06:38:37 +0000 (15:38 +0900)]
playbin3: Fix deadlock when adding multiple parsebin

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

7 years agomeson: vorbis: Add -DTREMOR to flags for gstivorbisdec
Scott D Phillips [Mon, 14 Nov 2016 19:39:33 +0000 (11:39 -0800)]
meson: vorbis: Add -DTREMOR to flags for gstivorbisdec

Matching the flags set by Makefile.am

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

7 years agomeson: Fix build when orc is disabled
Thibault Saunier [Mon, 14 Nov 2016 19:28:42 +0000 (16:28 -0300)]
meson: Fix build when orc is disabled

Making sure not to use the orc_dep variable in case
orc has been explicitely disabled.

7 years agoUse intermediate guint when handling GstVideoMultiviewFlags
Scott D Phillips [Fri, 11 Nov 2016 18:38:58 +0000 (10:38 -0800)]
Use intermediate guint when handling GstVideoMultiviewFlags

The underlying integer type of the enum GstVideoMultiviewFlags is
implementation defined and may not have the same size as guint.

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

7 years agoRemove 'return' from `void` functions
Scott D Phillips [Fri, 11 Nov 2016 18:35:00 +0000 (10:35 -0800)]
Remove 'return' from `void` functions

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

7 years agomeson: don't add_global_arguments when being built as a subproject
Scott D Phillips [Thu, 27 Oct 2016 05:37:19 +0000 (22:37 -0700)]
meson: don't add_global_arguments when being built as a subproject

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

7 years agortsp: Include GstSdp-1.0.gir when generating the gir
Thibault Saunier [Thu, 10 Nov 2016 20:05:19 +0000 (17:05 -0300)]
rtsp: Include GstSdp-1.0.gir when generating the gir

It is actually needed as we need some symbols. We do not link
to libgstsdp as the user of the lib should do it (same with
autotools build).

This reverts previous commit

7 years agolibs:rtsp: Remove wrong dependency on Sdp for the gir file
Thibault Saunier [Thu, 10 Nov 2016 19:36:49 +0000 (16:36 -0300)]
libs:rtsp: Remove wrong dependency on Sdp for the gir file

7 years agolibs:rtsp: Remove wrong dependency on Sdp for the gir file
Thibault Saunier [Thu, 10 Nov 2016 19:36:49 +0000 (16:36 -0300)]
libs:rtsp: Remove wrong dependency on Sdp for the gir file

7 years agomeson: Generate girs
Thibault Saunier [Thu, 20 Oct 2016 20:17:27 +0000 (17:17 -0300)]
meson: Generate girs

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

7 years agoaudio-channels: map buffer read-write only if channels differ
Petr Kulhavy [Mon, 7 Nov 2016 11:01:16 +0000 (12:01 +0100)]
audio-channels: map buffer read-write only if channels differ

gst_audio_buffer_reorder_channels() was always mapping the buffer read-write
regardless whether any reordering was needed.  If the from and to channel order
is identical return immediately without remapping the buffer.

Add a small helper function gst_audio_channel_positions_equal() which is used
in both gst_audio_reorder_channels() and gst_audio_buffer_reorder_channels().

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

7 years agovideorate: Add fixed rate property
Joris Valette [Tue, 17 Sep 2013 15:42:05 +0000 (17:42 +0200)]
videorate: Add fixed rate property

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

7 years agoopusdec: fix 120 ms buffers being wrongly emitted
Vincent Penquerc'h [Fri, 4 Nov 2016 16:41:05 +0000 (16:41 +0000)]
opusdec: fix 120 ms buffers being wrongly emitted

Using the max 120 ms buffer size to ensure we have enough space
for decoded data meant that Opus could actually return 120 ms'
worth of data.

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

7 years agowin32: Update exports for new API
Sebastian Dröge [Fri, 4 Nov 2016 16:55:44 +0000 (18:55 +0200)]
win32: Update exports for new API

7 years agovideo: add gst_video_decoder_allocate_output_frame_with_params
Julien Isorce [Fri, 14 Oct 2016 14:14:14 +0000 (15:14 +0100)]
video: add gst_video_decoder_allocate_output_frame_with_params

It adds a third argument to pass GstBufferPoolAcquireParams
to gst_buffer_pool_acquire_buffer.

If a user subclasses GstBufferPoolAcquireParams, this allows to
pass an updated param to the underlying buffer pool at each
gst_video_decoder_allocate_output_frame_with_params call.

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

7 years agovideo-info: Fix the docs to say interlace-mode, not interlaced-mode
Sebastian Dröge [Fri, 4 Nov 2016 14:25:55 +0000 (16:25 +0200)]
video-info: Fix the docs to say interlace-mode, not interlaced-mode

7 years agowin32: add new API to .def file
Tim-Philipp Müller [Thu, 3 Nov 2016 21:34:45 +0000 (21:34 +0000)]
win32: add new API to .def file

Fixes make check and make distcheck

7 years agoallocators: define GST_CAPS_FEATURE_MEMORY_DMABUF
Julien Isorce [Fri, 11 Dec 2015 17:05:14 +0000 (17:05 +0000)]
allocators: define GST_CAPS_FEATURE_MEMORY_DMABUF

Adds "memory:DMABuf" caps feature. Since 1.11 tag.
Useful when the the dma-buf buffer cannot be mapped to CPU for r/w requests.
Example: protected content or platform constraints.

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

7 years agodmabuf: Make the allocator sub-classable
Nicolas Dufresne [Mon, 24 Oct 2016 15:00:07 +0000 (11:00 -0400)]
dmabuf: Make the allocator sub-classable

This should allos for cleaner code when implement such allocator.

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

7 years agoaudiosrc: Leave read loop if no longer running
Nicolas Dufresne [Thu, 27 Nov 2014 18:52:52 +0000 (13:52 -0500)]
audiosrc: Leave read loop if no longer running

In the case a src stops providing data (read calls returns 0). The audio
src thread will never leave. Instead, check the condition and leave the
loop.

7 years agocheck: Fix corrupted xml check files
Edward Hervey [Thu, 3 Nov 2016 16:18:05 +0000 (17:18 +0100)]
check: Fix corrupted xml check files

By making sure each different videoscale check instance gets logged
into different output file

7 years agovideo: Update orc generated files
Sebastian Dröge [Wed, 2 Nov 2016 09:04:32 +0000 (11:04 +0200)]
video: Update orc generated files

7 years agomeson: Add pbtypes plugin
Sebastian Dröge [Wed, 2 Nov 2016 09:03:42 +0000 (11:03 +0200)]
meson: Add pbtypes plugin

7 years agopbtypes: Add a stub plugin that owns the plugins-base dynamic types
Jan Schmidt [Thu, 28 May 2015 12:50:05 +0000 (22:50 +1000)]
pbtypes: Add a stub plugin that owns the plugins-base dynamic types

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

7 years agourisourcebin: Fix adaptive demuxer's property checking and buffering setting
Changbok Chea [Fri, 7 Oct 2016 07:20:24 +0000 (16:20 +0900)]
urisourcebin: Fix adaptive demuxer's property checking and buffering setting

- Add adaptive demuxer's 'connection-speed' property checking
- Set adaptive demuxer q2 buffering property via urisrc use_buffering value

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

7 years agoRevert "video-color: Allow converting incomplete colorimetry to a string"
Sebastian Dröge [Tue, 1 Nov 2016 21:51:47 +0000 (23:51 +0200)]
Revert "video-color: Allow converting incomplete colorimetry to a string"

This reverts commit 158eae7e7e3da3545712dd7d6121492c53085fd9.

It already *always* allowed to convert incomplete colorimetry to a
string.

7 years agortpbasedepayload: Reject non-TIME segments
Sebastian Dröge [Mon, 2 May 2016 06:48:09 +0000 (09:48 +0300)]
rtpbasedepayload: Reject non-TIME segments

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

7 years agoRevert "basertpdepayload: create valid segment when given non-time segment"
Sebastian Dröge [Tue, 1 Nov 2016 19:09:04 +0000 (21:09 +0200)]
Revert "basertpdepayload: create valid segment when given non-time segment"

This reverts commit 0f609bc6c67fea294f4556627228fed72a74d0fb.

7 years agovideo-color: Allow converting incomplete colorimetry to a string
Sebastian Dröge [Fri, 30 Sep 2016 12:03:52 +0000 (15:03 +0300)]
video-color: Allow converting incomplete colorimetry to a string

This is only a good idea for non-raw caps.

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

7 years agovideoencoder: Proxy colorimetry and chroma-site from input to output caps
Sebastian Dröge [Thu, 29 Sep 2016 11:57:02 +0000 (14:57 +0300)]
videoencoder: Proxy colorimetry and chroma-site from input to output caps

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

7 years agovideodecoder: Proxy field order to the output caps
Sebastian Dröge [Thu, 29 Sep 2016 11:48:29 +0000 (14:48 +0300)]
videodecoder: Proxy field order to the output caps

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

7 years agovideoencoder: Proxy interlace-mode and field-order fields from the input to the outpu...
Sebastian Dröge [Thu, 29 Sep 2016 11:48:00 +0000 (14:48 +0300)]
videoencoder: Proxy interlace-mode and field-order fields from the input to the output caps

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

7 years agovideo-info: Add optional field-order caps field for interlaced-mode=interleaved
Sebastian Dröge [Thu, 29 Sep 2016 11:36:42 +0000 (14:36 +0300)]
video-info: Add optional field-order caps field for interlaced-mode=interleaved

Usually this information is static for the whole stream, and various
container formats store this information inside the headers for the
whole stream.

Having it inside the caps for these cases simplifies code and makes it
possible to express these requirements more explicitly with the caps.

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

7 years agomeson: update version
Tim-Philipp Müller [Tue, 1 Nov 2016 18:08:45 +0000 (18:08 +0000)]
meson: update version

7 years agourisourcebin: Remove trailing whitespace
Seungha Yang [Sat, 22 Oct 2016 02:08:18 +0000 (11:08 +0900)]
urisourcebin: Remove trailing whitespace

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

7 years agovideotestsrc: Make snow deterministic
Stian Selnes [Fri, 14 Oct 2016 13:18:28 +0000 (15:18 +0200)]
videotestsrc: Make snow deterministic

Deterministic generation of snow and smpte is important for tests so
that it's not affected by other videotestsrc elements in current or
possibly previous tests.

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

7 years agoaudioconvert: optimize mask calculation
Petr Kulhavy [Fri, 14 Oct 2016 20:31:41 +0000 (22:31 +0200)]
audioconvert: optimize mask calculation

find_suitable_mask() had complexity O(n^2) on the number of bits.
For common case like 2-channel audio the mask was calculated in about 4k loop
cycles.

Optimize both n_bits_set() and find_suitable_mask() to O(n) where n is the
number of bits set in the mask.

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

7 years agoparsebin: Rename variables include 'decode' to 'parse'
hoonhee.lee [Thu, 13 Oct 2016 01:12:10 +0000 (10:12 +0900)]
parsebin: Rename variables include 'decode' to 'parse'

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

7 years agourisourcebin: Fix GST_TYPE_URI_SOURCE_BIN macro typo
Wonchul Lee [Mon, 31 Oct 2016 07:33:41 +0000 (16:33 +0900)]
urisourcebin: Fix GST_TYPE_URI_SOURCE_BIN macro typo

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

7 years agourisourcebin: fix to log event pointer
Wonchul Lee [Mon, 3 Oct 2016 08:12:29 +0000 (17:12 +0900)]
urisourcebin: fix to log event pointer

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

7 years agourisourcebin: Make use of adaptive demuxer variable
Wonchul Lee [Wed, 28 Sep 2016 07:13:46 +0000 (16:13 +0900)]
urisourcebin: Make use of adaptive demuxer variable

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

7 years agoopusdec: interpret zero duration as unknown
Vincent Penquerc'h [Thu, 6 Oct 2016 10:44:11 +0000 (11:44 +0100)]
opusdec: interpret zero duration as unknown

This fixes missing audio when we get buffers with zero
duration, denoting unknown duration. When several such
buffers are received in a row, they're all at the same
timestamp, with zero duration.

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

7 years agoopusdec: fix "buffer too small" error
Vincent Penquerc'h [Mon, 26 Sep 2016 09:50:52 +0000 (10:50 +0100)]
opusdec: fix "buffer too small" error

Always supply a buffer with max size to the decoder, as we
can't really decide how many samples will be in the lost packet
based on the timestamps we get.

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

7 years agosdp: Add tests for rtcp-fb parsing
Tomasz Zajac [Fri, 28 Oct 2016 06:47:40 +0000 (08:47 +0200)]
sdp: Add tests for rtcp-fb parsing

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

7 years agosdp: Parse rtcp-fb media attributes
Tomasz Zajac [Fri, 28 Oct 2016 06:47:01 +0000 (08:47 +0200)]
sdp: Parse rtcp-fb media attributes

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

7 years agosdp: Add rtcp-fb media attributes based on caps
Tomasz Zajac [Wed, 10 Aug 2016 09:38:58 +0000 (11:38 +0200)]
sdp: Add rtcp-fb media attributes based on caps

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

7 years agovideo: Add VYUY pixel format
Nicolas Dufresne [Wed, 7 Sep 2016 19:01:13 +0000 (15:01 -0400)]
video: Add VYUY pixel format

This format is sometimes the output of JPEG decoders. It is the same as
YUY2 and UYVY but with a different component order.

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

7 years agoaudioclock: use GstAudioClock* as first argument in GstAudioClock methods
Marcin Kolny [Thu, 15 Oct 2015 10:52:27 +0000 (12:52 +0200)]
audioclock: use GstAudioClock* as first argument in GstAudioClock methods

All the GstAudioClock method declarations required object of GstClock type
as a first argument, but in fact, required GstAudioClock object (runtime
check in function body). Instead of checking type in run-time, we can
change functions declaration, to accept only GstAudioClock methods. Then,
runtime check is not necessary anymore, since always GstAudioClock object
is passed to a function.

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

7 years agoBack to development
Sebastian Dröge [Tue, 1 Nov 2016 16:53:15 +0000 (18:53 +0200)]
Back to development

7 years agoRelease 1.10.0
Sebastian Dröge [Tue, 1 Nov 2016 15:53:24 +0000 (17:53 +0200)]
Release 1.10.0

7 years agoUpdate .po files
Sebastian Dröge [Tue, 1 Nov 2016 15:43:45 +0000 (17:43 +0200)]
Update .po files

7 years agomeson: Don't depend on gstreamer-check-1.0 on windows
Scott D Phillips [Tue, 25 Oct 2016 15:52:52 +0000 (08:52 -0700)]
meson: Don't depend on gstreamer-check-1.0 on windows

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

7 years agodecodebin3: Fix assertion failure when unreffing NULL stream caps
Graham Leggett [Mon, 24 Oct 2016 19:13:22 +0000 (19:13 +0000)]
decodebin3: Fix assertion failure when unreffing NULL stream caps

GStreamer-CRITICAL **: gst_mini_object_unref: assertion 'mini_object != NULL' failed

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

7 years agoRevert "meson: move gstreamer-check-1.0 dependency to tests/check"
Nirbheek Chauhan [Tue, 25 Oct 2016 06:16:38 +0000 (11:46 +0530)]
Revert "meson: move gstreamer-check-1.0 dependency to tests/check"

This reverts commit e3c7c17b9b0ff8efb81d23e135178a7be7eaeb1e.

Does not actually work. See:
https://bugzilla.gnome.org/show_bug.cgi?id=773114#c31

7 years agomeson: fix build outside of gst-all
Tim-Philipp Müller [Sun, 23 Oct 2016 23:28:27 +0000 (00:28 +0100)]
meson: fix build outside of gst-all

Unknown variable "apiversion".

7 years agomeson: move gstreamer-check-1.0 dependency to tests/check
Scott D Phillips [Fri, 21 Oct 2016 07:32:15 +0000 (00:32 -0700)]
meson: move gstreamer-check-1.0 dependency to tests/check

7 years agoRevert "meson: Use the new `pic` argument on static libs"
Thibault Saunier [Thu, 20 Oct 2016 20:17:54 +0000 (17:17 -0300)]
Revert "meson: Use the new `pic` argument on static libs"

This reverts commit e3c22605ae96ee1747020c4f367d49faf6916e14.

pic was added after 0.35 and will be present in 0.36 (meson documentation
was wrong).

7 years agomeson: Use the new `pic` argument on static libs
Thibault Saunier [Thu, 20 Oct 2016 18:48:34 +0000 (15:48 -0300)]
meson: Use the new `pic` argument on static libs

We depend on 0.35 already

7 years agoaudio: don't deref NULL
Stefan Sauer [Fri, 14 Oct 2016 12:23:38 +0000 (14:23 +0200)]
audio: don't deref NULL

gst_buffer_copy_region() can return NULL when the buffer meta-data is invalid.

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

7 years agoaudioencoder: Error-handling for pushing headers
Havard Graff [Thu, 3 Dec 2015 13:47:38 +0000 (00:47 +1100)]
audioencoder: Error-handling for pushing headers

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

7 years agovideodecoder: Default caps sets format I420
Stian Selnes [Thu, 13 Oct 2016 10:41:29 +0000 (12:41 +0200)]
videodecoder: Default caps sets format I420

Also the format must be fixed on the default raw caps. If not
gst_video_info_from_caps() will fail and
gst_video_decoder_negotiate_default_caps() return FALSE.

The test simulates the use case where a gap event is received before
the first buffer causing the decoder to fall back to the default caps.

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

7 years agoaudioencoder: Plug buffer-leak
Havard Graff [Fri, 6 May 2016 14:30:57 +0000 (16:30 +0200)]
audioencoder: Plug buffer-leak

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

7 years agoaudio: fix doc string again.
Stefan Sauer [Mon, 17 Oct 2016 07:46:56 +0000 (09:46 +0200)]
audio: fix doc string again.

There was a second '*' at the start of the line. Reword + reformat to make it
obvious.

7 years agotests: add another check for buffer clipping and improve tests
Stefan Sauer [Sat, 15 Oct 2016 20:50:23 +0000 (22:50 +0200)]
tests: add another check for buffer clipping and improve tests

Add a test that check that we handle time ranges (a range of time that maps to
the same sample).
Also update the other tests to use our check api to compare int64 values to get
better output on failure.

7 years agotests: clipping in TIME does not use the offset
Stefan Sauer [Sat, 15 Oct 2016 19:54:40 +0000 (21:54 +0200)]
tests: clipping in TIME does not use the offset

Simplify the test and test only what need to be tested.

7 years agotests: cleanup libs/audio test
Stefan Sauer [Sat, 15 Oct 2016 19:30:22 +0000 (21:30 +0200)]
tests: cleanup libs/audio test

Split large tests into small tests and name them specifically. Use helpers to
avoid repetition. Make sure the order in the file is the same as we add the to
the suite.

7 years agomeson: Don't set c_std to gnu99
Nirbheek Chauhan [Sat, 15 Oct 2016 16:32:48 +0000 (22:02 +0530)]
meson: Don't set c_std to gnu99

Use the default for each compiler on every platform instead. This
improves our compatibility with compilers that don't have gnu99 as
a c_std.

7 years agomeson: Add missing audio-enumtypes.h dep in audio-resampler static libs
Nirbheek Chauhan [Sat, 15 Oct 2016 16:16:27 +0000 (21:46 +0530)]
meson: Add missing audio-enumtypes.h dep in audio-resampler static libs

Seen on the Jenkins CI:

FAILED: subprojects/gst-plugins-base/gst-libs/gst/audio/audio_resampler_sse41@sta/audio-resampler-x86-sse41.c.o
ccache cc  '-Isubprojects/gst-plugins-base/gst-libs/gst/audio/audio_resampler_sse41@sta' '-fdiagnostics-color=always' '-I../subprojects/gst-plugins-base/gst-libs/gst/audio' '-Isubprojects/gst-plugins-base/gst-libs/gst/audio' '-Isubprojects/gst-plugins-base/.' '-I../subprojects/gst-plugins-base/.' '-Isubprojects/gst-plugins-base/gst-libs' '-I../subprojects/gst-plugins-base/gst-libs' '-Isubprojects/gstreamer/libs' '-I../subprojects/gstreamer/libs' '-Isubprojects/gstreamer/.' '-I../subprojects/gstreamer/.' '-pipe' '-Wall' '-Winvalid-pch' '-DHAVE_CONFIG_H' '-msse4.1' '-fPIC' '-O0' '-g' '-fPIC' '-I/usr/include/glib-2.0' '-I/usr/lib/glib-2.0/include' '-pthread' '-Isubprojects/gstreamer/gst' '-MMD' '-MQ' 'subprojects/gst-plugins-base/gst-libs/gst/audio/audio_resampler_sse41@sta/audio-resampler-x86-sse41.c.o' '-MF' 'subprojects/gst-plugins-base/gst-libs/gst/audio/audio_resampler_sse41@sta/audio-resampler-x86-sse41.c.o.d' -o 'subprojects/gst-plugins-base/gst-libs/gst/audio/audio_resampler_sse41@sta/audio-resampler-x86-sse41.c.o' -c ../subprojects/gst-plugins-base/gst-libs/gst/audio/audio-resampler-x86-sse41.c
In file included from ../subprojects/gst-plugins-base/gst-libs/gst/audio/audio-resampler.h:24:0,
                 from ../subprojects/gst-plugins-base/gst-libs/gst/audio/audio-resampler-private.h:23,
                 from ../subprojects/gst-plugins-base/gst-libs/gst/audio/audio-resampler-macros.h:25,
                 from ../subprojects/gst-plugins-base/gst-libs/gst/audio/audio-resampler-x86-sse41.h:23,
                 from ../subprojects/gst-plugins-base/gst-libs/gst/audio/audio-resampler-x86-sse41.c:24:
../subprojects/gst-plugins-base/gst-libs/gst/audio/audio.h:26:39: fatal error: gst/audio/audio-enumtypes.h: No such file or directory
 #include <gst/audio/audio-enumtypes.h>
                                       ^
compilation terminated.

7 years agomeson: Make use of new environment object and set plugin path to builddir
Thibault Saunier [Tue, 4 Oct 2016 20:44:51 +0000 (17:44 -0300)]
meson: Make use of new environment object and set plugin path to builddir

Workaround source_root being the root directory of all projects
in the subproject case.
Remove now unneeded getpluginsdir and define c++ tests in the same loop.

Bump meson requirement to 0.35