platform/upstream/gst-plugins-good.git
7 years agomeson: build tests/icles/
Tim-Philipp Müller [Sun, 25 Jun 2017 23:22:05 +0000 (00:22 +0100)]
meson: build tests/icles/

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

7 years agoqtmux: correctly calculate overall first_ts to ensure stream sync
Mark Nauwelaerts [Mon, 19 Jun 2017 19:13:42 +0000 (21:13 +0200)]
qtmux: correctly calculate overall first_ts to ensure stream sync

... by minding and compensating for the dts_adjustment that may have
been introduced in the PTS timeline.

7 years agomatroskademux: track highest known cluster position and time
Mark Nauwelaerts [Sat, 10 Jun 2017 13:14:41 +0000 (15:14 +0200)]
matroskademux: track highest known cluster position and time

... to use as a fallback initial duration estimate and to provide for
interpolation when scanning for position.

7 years agomatroskademux: improve and simplify searching for cluster and position
Mark Nauwelaerts [Sat, 10 Jun 2017 11:46:20 +0000 (13:46 +0200)]
matroskademux: improve and simplify searching for cluster and position

... avoiding inefficiency proportional to file size

7 years agomatroskademux: increase chunk size when scanning for cluster
Mark Nauwelaerts [Thu, 8 Jun 2017 14:55:29 +0000 (16:55 +0200)]
matroskademux: increase chunk size when scanning for cluster

7 years agomatroskademux: maintain variable state when searching for position
Mark Nauwelaerts [Thu, 8 Jun 2017 14:39:06 +0000 (16:39 +0200)]
matroskademux: maintain variable state when searching for position

... so skipping to next cluster happens efficiently

7 years agomeson: build raw1394 plugin
Tim-Philipp Müller [Fri, 23 Jun 2017 23:21:00 +0000 (00:21 +0100)]
meson: build raw1394 plugin

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

7 years agomeson: build aalib plugin
Tim-Philipp Müller [Fri, 23 Jun 2017 22:50:00 +0000 (23:50 +0100)]
meson: build aalib plugin

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

7 years agomeson: build caca plugin
Tim-Philipp Müller [Fri, 23 Jun 2017 22:38:27 +0000 (23:38 +0100)]
meson: build caca plugin

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

7 years agodocs: update for git master
Tim-Philipp Müller [Fri, 23 Jun 2017 19:01:59 +0000 (20:01 +0100)]
docs: update for git master

7 years agosys: remove sunaudio plugin
Tim-Philipp Müller [Fri, 23 Jun 2017 18:52:04 +0000 (19:52 +0100)]
sys: remove sunaudio plugin

Even though hooked up to the build system, it's clear that no one
has ever built or used this with GStreamer 1.x. It wants to link
against libgstinterfaces, which no longer exists. And uses 0.10-style
raw audio caps. And the last meaningful change was done in 2009.
Let's just remove it.

7 years agomeson: build oss4 plugin
Tim-Philipp Müller [Fri, 23 Jun 2017 18:35:28 +0000 (19:35 +0100)]
meson: build oss4 plugin

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

7 years agomeson: build oss plugin
Tim-Philipp Müller [Fri, 23 Jun 2017 18:23:52 +0000 (19:23 +0100)]
meson: build oss plugin

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

7 years agortspsrc: Actually use the receive lock when receiving, not the send lock
Sebastian Dröge [Thu, 22 Jun 2017 08:38:56 +0000 (11:38 +0300)]
rtspsrc: Actually use the receive lock when receiving, not the send lock

7 years agoflactag: Fix warning with the newly added GstStateChange values
Thibault Saunier [Thu, 15 Jun 2017 15:46:54 +0000 (11:46 -0400)]
flactag: Fix warning with the newly added GstStateChange values

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

7 years agortspsrc: do not checksum the stream id
Mathieu Duponchelle [Thu, 15 Jun 2017 17:09:26 +0000 (19:09 +0200)]
rtspsrc: do not checksum the stream id

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

7 years agoqtmux: add support for muxing PNG
Tim-Philipp Müller [Thu, 15 Jun 2017 22:31:24 +0000 (23:31 +0100)]
qtmux: add support for muxing PNG

Demuxer already supported it.

7 years agortspsrc: Use a mutex for protecting against concurrent send/receives
Sebastian Dröge [Thu, 15 Jun 2017 07:40:51 +0000 (10:40 +0300)]
rtspsrc: Use a mutex for protecting against concurrent send/receives

We currently send data to the RTSP connection from multiple threads:
whenever a command is to be handled and whenever RTCP is generated. This
can cause data corruption or worse if both happen at the same time.

As such, protect gst_rtsp_connection_send() and gst_rtsp_connection_receive()
calls with a mutex. While this means that we hold a mutex during the IO
operation, this is not actually a problem as the IO operation can be
interrupted (gst_rtsp_connection_flush()) at any time and is blocking by
itself anyway.

7 years agoqtmux: Un-merge the last two stsc entries after serializing
Sebastian Dröge [Thu, 15 Jun 2017 08:50:44 +0000 (11:50 +0300)]
qtmux: Un-merge the last two stsc entries after serializing

The last entry will most likely get new samples added to it in "robust"
muxing mode, changing the samples_per_chunk and thus making it wrong to
keep the last two entries merged. It will run into an assertion later
when adding a new sample to the chunk.

Thanks to gdiener@cardinalpeak.com for the analysis of the bug and
proposal for a solution.

7 years agowavparse: Actually clip to upstream size instead of size of the data chunk
Sebastian Dröge [Tue, 13 Jun 2017 21:09:25 +0000 (00:09 +0300)]
wavparse: Actually clip to upstream size instead of size of the data chunk

There might be other chunks after the data chunk, so clipping the chunk
size with the data size can lead to a negative number and all following
calculations go wrong and cause crashes or worse.

This was introduced in 3ac119bbe2c360e28c087cf3852ea769d611b120.

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

7 years agosplitmux: Drop allocation queries
Vivia Nikolaidou [Tue, 13 Jun 2017 14:40:19 +0000 (17:40 +0300)]
splitmux: Drop allocation queries

They can cause us to deadlock, while we're waiting for a new frame and
upstream is waiting for the allocation query to be answered before
sending a frame

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

7 years agortspsrc: uniquify stream ids
Mathieu Duponchelle [Thu, 1 Jun 2017 00:03:27 +0000 (02:03 +0200)]
rtspsrc: uniquify stream ids

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

7 years agomeson: Do not use path separator in test names
Thibault Saunier [Wed, 7 Jun 2017 16:47:59 +0000 (12:47 -0400)]
meson: Do not use path separator in test names

Avoiding warnings like:

    WARNING: Target "elements/audioamplify" has a path separator in its name.

7 years agoFix v4l2 example
Nicolas Dufresne [Tue, 6 Jun 2017 15:29:29 +0000 (11:29 -0400)]
Fix v4l2 example

7 years agoqtdemux: remove not needed code
Jimmy Ohn [Mon, 5 Jun 2017 07:55:13 +0000 (16:55 +0900)]
qtdemux: remove not needed code

remove not needed code about res variable.

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

7 years agov4l2videoenc: Make sure min_buffers is valid
Nicolas Dufresne [Fri, 2 Jun 2017 18:01:17 +0000 (14:01 -0400)]
v4l2videoenc: Make sure min_buffers is valid

When upstream does no use the v4l2videoenc pool, we need to activate
that internal pool. Though, we relied the driver to provide a minimum
required buffer, which Qualcomm Venus driver don't currently provide.

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

7 years agortph265depay: fix caps leak
Tim-Philipp Müller [Fri, 2 Jun 2017 10:30:15 +0000 (11:30 +0100)]
rtph265depay: fix caps leak

7 years agortph264depay: simplify buffer accumulation control flow
Tim-Philipp Müller [Fri, 26 May 2017 15:30:06 +0000 (16:30 +0100)]
rtph264depay: simplify buffer accumulation control flow

There is no difference between pushing out a buffer directly
with gst_rtp_base_depayload_push() and returning it from the
process function. The base class will just call _depayload_push()
on the returned buffer as well.

So instead of marshalling buffers through three layers and back,
just push them from one place in handle_nal() and always return
NULL from the process vfunc. This simplifies the code a little.

Also rename _push_fragmentation_unit() to _finish_fragmentation_unit()
for clarity. Push sounds like it means being pushed out, whereas
it might just be pushed into an adapter.

This change has the side-effect that multiple NALs in a single STAP
(such as SPS/PPS) may no longer be pushed out as a single buffer if
we output NALs in byte-stream format (i.e. not aggregate AUs), but
that shouldn't really make any difference to anyone.

7 years agortpsession: print value of unknown RTCP Payload Type
Juan Navarro [Tue, 30 May 2017 20:23:10 +0000 (22:23 +0200)]
rtpsession: print value of unknown RTCP Payload Type

This adds printing the actual value of any unknown RTCP PT
to the already existing WARNING log message.

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

7 years agov4l2videoenc: Don't leak VideoCodecState
Edward Hervey [Fri, 26 May 2017 15:52:19 +0000 (17:52 +0200)]
v4l2videoenc: Don't leak VideoCodecState

CID #1409852

7 years agodvdemux: Remove un-needed variable check
Edward Hervey [Fri, 26 May 2017 15:48:01 +0000 (17:48 +0200)]
dvdemux: Remove un-needed variable check

if pad wasn't present by now everything would have broken before

CID #1409854

7 years agopo: update POTFILES
Piotr Drąg [Thu, 25 May 2017 13:26:37 +0000 (15:26 +0200)]
po: update POTFILES

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

7 years agov4l2videoenc: Remove unused function
Nicolas Dufresne [Wed, 24 May 2017 18:19:27 +0000 (14:19 -0400)]
v4l2videoenc: Remove unused function

7 years agov4l2: Don't redefine __bitwise if already set
Nicolas Dufresne [Sun, 21 May 2017 13:29:11 +0000 (15:29 +0200)]
v4l2: Don't redefine __bitwise if already set

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

7 years agov4l2: Add Video Encoder support
Ayaka [Tue, 23 May 2017 18:40:56 +0000 (14:40 -0400)]
v4l2: Add Video Encoder support

This implements H264 encoding support using generic V4L2 interface. It is
reported to work with Samsung MFC driver, IXM.6 CODA driver and
Qualcomm mainline Venus driver. Other platform should be supported as
none of this work is platform specific.

The implementation consist of a GstV4l2VideoEnc base class, which
implements the core streaming functionality. This base class is implemented
by GstV4l2H264Enc class that implements the caps negotiation specific to
H264 profiles and level. This implementation supports hardware with multiple
H264 encoder. Though, to make it simplier to use, the first discovered H264
encoder will be named v4l2h264enc. Other encoder found during discovery will
have a unique name like v4l2video0h264enc.

This work is the combined work of multiple developpers in the last 3
years. Thanks to all of the contributors:

  Ayaka <ayaka@soulik.info>
  Frédéric Sureau <frederic.sureau@vodalys.com>
  Jean-Michel Hautbois <jean-michel.hautbois@veo-labs.com>
  Nicolas Dufresne <nicolas.dufresne@collabora.com>
  Pablo Anton <pablo.anton@vodalys-labs.com>

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

7 years agov4l2videodec: Remove unused forward declaration
Nicolas Dufresne [Tue, 23 May 2017 18:36:37 +0000 (14:36 -0400)]
v4l2videodec: Remove unused forward declaration

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

7 years agov4l2pool: Fix wrong error message
Ayaka [Mon, 5 Oct 2015 15:30:46 +0000 (16:30 +0100)]
v4l2pool: Fix wrong error message

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

7 years agov4l2: increase pre-allocated encoded buffer size
Ayaka [Mon, 5 Oct 2015 15:20:19 +0000 (16:20 +0100)]
v4l2: increase pre-allocated encoded buffer size

As of today, the MFC encoder often need to exceed that 1 MB
size for encoded buffer we fixed earlier for decoding.

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

7 years agortpopusdepay: minor perf improvements
Tim-Philipp Müller [Wed, 24 May 2017 15:32:30 +0000 (16:32 +0100)]
rtpopusdepay: minor perf improvements

Use the ::process_rtp_packet() vfunc to avoid mapping the
RTP buffer twice.

gst_rtp_buffer_get_payload_buffer() returns a new sub-buffer
which will always be writable, so no need to make it writable.

7 years agortp: opus: use existing utility funcs for copying/dropping metas
Tim-Philipp Müller [Wed, 24 May 2017 15:14:54 +0000 (16:14 +0100)]
rtp: opus: use existing utility funcs for copying/dropping metas

We had our own copies of those while the code was in -bad, but now
we can use the existing utility functions instead of re-implementing
them.

7 years agortp: cache meta tag quarks and add more utility functions for metas
Tim-Philipp Müller [Wed, 24 May 2017 11:57:10 +0000 (12:57 +0100)]
rtp: cache meta tag quarks and add more utility functions for metas

Every g_quark_from_static_string() is a hash table lookup serialised
on the global quark lock in GLib. Let's just look up the two quarks
we need once and cache them locally for future use. While we're at it,
add new utility functions for the two most commonly used tags
(audio + video). Make first argument a gpointer so we don't have to
cast and make the code ugly. These are used for logging purposes
only anyway.

7 years agoaacparse : Fix, Caps were not set while reusing aacparse
vijay [Wed, 24 May 2017 06:03:05 +0000 (11:33 +0530)]
aacparse : Fix, Caps were not set while reusing aacparse

While reusing aacparse caps were not set.This fix enables aacparse to reuse in same pipeline.

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

7 years agomeson: don't need config.h.meson any longer
Tim-Philipp Müller [Sun, 21 May 2017 16:45:34 +0000 (17:45 +0100)]
meson: don't need config.h.meson any longer

7 years agoshout2send: use non-blocking I/O and a configurable network operations timeout
George Kiagiadakis [Mon, 24 Apr 2017 13:55:22 +0000 (16:55 +0300)]
shout2send: use non-blocking I/O and a configurable network operations timeout

This allows timing out on network errors much earlier
(currently it takes ~15min to timeout) and we can still
unlock and change state in the meantime.

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

7 years agomeson: make C++ compiler optional
Tim-Philipp Müller [Sun, 21 May 2017 09:37:19 +0000 (10:37 +0100)]
meson: make C++ compiler optional

It's only needed for the taglib plugin which is optional.

7 years agomultifile: remove some cruft
Tim-Philipp Müller [Sun, 21 May 2017 09:33:43 +0000 (10:33 +0100)]
multifile: remove some cruft

7 years agoosxaudio: fixes playback of mono streams with no channel-mask field in caps
Josep Torra [Sat, 20 May 2017 15:09:52 +0000 (17:09 +0200)]
osxaudio: fixes playback of mono streams with no channel-mask field in caps

Fixes a negotiation error seen when trying to playback of a .MOV file with
a mono AAC audio stream decoded by avcdec_aac that doesn't set channel-mask
field but sink was requiring channel-mask=0x3.

7 years agodvdemux: Push tag event to both pads
Ravi Kiran K N [Sun, 6 Sep 2015 15:19:59 +0000 (20:49 +0530)]
dvdemux: Push tag event to both pads

Tags are pushed to "videosrcpad"/"audiosrcpad" in
gst_dvdemux_add_pad() method, however they will be NULL
in this method, hence tags are not pushed.
Instead, send tag event to "pad" created gst_dvdemux_add_pad().

Signal no-more-pads when both pads are created

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

7 years agomeson: add options to set package name and origin
Tim-Philipp Müller [Sat, 20 May 2017 13:53:42 +0000 (14:53 +0100)]
meson: add options to set package name and origin

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

7 years agomultifilesink: fix property name in example pipeline
Luis de Bethencourt [Sat, 20 May 2017 10:40:33 +0000 (11:40 +0100)]
multifilesink: fix property name in example pipeline

Since the move from CVS the property name of the documentation example
has been filename instead of location. Users trying the gst-launch
command as is will get:
no property name "filename" in element

Fixing it.

7 years agoosxvideo: fix macOS 10.12 deprecation warnings
Josep Torra [Sat, 20 May 2017 09:13:40 +0000 (11:13 +0200)]
osxvideo: fix macOS 10.12 deprecation warnings

Add #defines to allow older versions of macOS to use the new constant names.

7 years agoisomp4: Safely ignore [skip] atoms
Edward Hervey [Sat, 13 May 2017 07:05:57 +0000 (09:05 +0200)]
isomp4: Safely ignore [skip] atoms

Instead of warning about them

7 years agosouphttpsrc: Make session sharing thread-safe on our side
Sebastian Dröge [Thu, 18 May 2017 12:10:30 +0000 (15:10 +0300)]
souphttpsrc: Make session sharing thread-safe on our side

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

7 years agoFix up package name and origin in some plugins
Tim-Philipp Müller [Thu, 18 May 2017 09:43:19 +0000 (10:43 +0100)]
Fix up package name and origin in some plugins

7 years agogst: Clear floating flag in constructor of all GstObject subclasses that are not...
Sebastian Dröge [Mon, 15 May 2017 16:51:47 +0000 (19:51 +0300)]
gst: Clear floating flag in constructor of all GstObject subclasses that are not owned by any parent

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

7 years ago1394: Sink the clock reference in the constructor
Sebastian Dröge [Mon, 15 May 2017 11:22:34 +0000 (14:22 +0300)]
1394: Sink the clock reference in the constructor

This is now needed as GstClock does not do that internally anymore,
because that broke bindings.

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

7 years agopulse: Accept MPEG 1 layer 3 version 2.5
Nicolas Dufresne [Sat, 29 Apr 2017 03:05:35 +0000 (23:05 -0400)]
pulse: Accept MPEG 1 layer 3 version 2.5

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

7 years agoRemove plugin specific static build option
Nicolas Dufresne [Tue, 16 May 2017 17:50:16 +0000 (13:50 -0400)]
Remove plugin specific static build option

Static and dynamic plugins now have the same interface. The standard
--enable-static/--enable-shared toggle are sufficient.

7 years agosplitmuxsink: Add alignment-threshold argument
Vivia Nikolaidou [Fri, 12 May 2017 14:53:57 +0000 (17:53 +0300)]
splitmuxsink: Add alignment-threshold argument

If a non-reference stream is behind the reference stream by an amount of
time smaller than the alignment threshold (in nsec), it counts as being
after it.

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

7 years agoqtmux: Do not check timecode data for mp4 container
Vivia Nikolaidou [Tue, 16 May 2017 09:56:15 +0000 (12:56 +0300)]
qtmux: Do not check timecode data for mp4 container

Timecode trak is only supported for mov right now, not for mp4. That
code would otherwise create an invalid trak if the muxed video contained
timecode metadata.

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

7 years agoqtmux: When accepting renegotiation, just return TRUE and change nothing
Sebastian Dröge [Thu, 11 May 2017 18:01:15 +0000 (20:01 +0200)]
qtmux: When accepting renegotiation, just return TRUE and change nothing

We only accept new caps if they are basically the same. We don't want to
reset anything as if the caps are new, otherwise various state could get
out of sync with the current run.

7 years agoqtmux: In prefill mode, only pad buffers with > 0 sized memories as needed
Sebastian Dröge [Thu, 11 May 2017 17:21:22 +0000 (19:21 +0200)]
qtmux: In prefill mode, only pad buffers with > 0 sized memories as needed

Adding a 0-byte memory has not much effect.

Also add some debug output.

7 years agoqtmux: Lateness is in QT timescale, diff in GstClockTime
Sebastian Dröge [Wed, 10 May 2017 13:58:41 +0000 (15:58 +0200)]
qtmux: Lateness is in QT timescale, diff in GstClockTime

Print the right one in debug output to get meaningful numbers.

7 years agoqtmux: Error out if a gap edit list has to be written in prefill mode
Sebastian Dröge [Wed, 10 May 2017 12:31:40 +0000 (14:31 +0200)]
qtmux: Error out if a gap edit list has to be written in prefill mode

We don't have any space reserved for this in the moov and the
pre-finalized moov would have broken A/V synchronization. Error out here
now

7 years agoqtmux: Calculate with reserved moov size instead of last moov size
Sebastian Dröge [Wed, 10 May 2017 09:42:09 +0000 (11:42 +0200)]
qtmux: Calculate with reserved moov size instead of last moov size

We have some padding added after the initial moov, so a bigger updated
moov can be handled to some degree and is expected. Previously we just
ignored the padding and errored out in cases when the padding would've
just been enough.

7 years agoqtmux: Error out directly if sending filler data results in a flow error
Sebastian Dröge [Wed, 10 May 2017 09:12:23 +0000 (11:12 +0200)]
qtmux: Error out directly if sending filler data results in a flow error

CID 1405994

7 years agoqtmux: In prefill mode, handle the case when only the first chunk was ever used
Sebastian Dröge [Tue, 9 May 2017 14:02:43 +0000 (16:02 +0200)]
qtmux: In prefill mode, handle the case when only the first chunk was ever used

7 years agosouphttpsrc: Use a in-memory cookie jar by default in sessions we created
Sebastian Dröge [Thu, 16 Mar 2017 13:12:07 +0000 (15:12 +0200)]
souphttpsrc: Use a in-memory cookie jar by default in sessions we created

This ensures that cookies are stored and used as set by the server, and
shared with other souphttpsrc that use the same SoupSession.

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

7 years agosouphttpsrc: Implement soup session sharing
Sebastian Dröge [Thu, 16 Mar 2017 11:58:41 +0000 (13:58 +0200)]
souphttpsrc: Implement soup session sharing

souphttpsrc now shares its SoupSession with other elements in the
pipeline via GstContext if possible (session-wide settings are all the
defaults), or if the context was forced by the application.

This allows multiple souphttpsrcs to reuse connections, cookies, etc.

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

7 years agoqtmux: Add new prefill recording mode
Sebastian Dröge [Thu, 9 Mar 2017 08:15:34 +0000 (10:15 +0200)]
qtmux: Add new prefill recording mode

This sets up a moov with the correct sample positions beforehand and
only works with constant framerate, I-frame only streams.

Currently only support for ProRes and raw audio is implemented but
adding new codecs is just a matter of defining appropriate maximum frame
sizes.

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

7 years agoqtmux: Error out on discontinuities/gaps when muxing raw audio
Sebastian Dröge [Wed, 29 Mar 2017 11:01:25 +0000 (14:01 +0300)]
qtmux: Error out on discontinuities/gaps when muxing raw audio

When muxing raw audio, we have no way of storing timestamps but are just
storing a continuous stream of audio samples. If the difference between
the expected and the real timestamp becomes to big, we should error out
instead of silently creating files with wrong A/V sync.

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

7 years agovpxdec: Set fb->priv to NULL after freeing just in case
Sebastian Dröge [Tue, 9 May 2017 09:41:25 +0000 (11:41 +0200)]
vpxdec: Set fb->priv to NULL after freeing just in case

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

7 years agodirectsoundsink: Use GstClock API instead of Sleep() for waiting
Dustin Spicuzza [Mon, 8 May 2017 15:22:00 +0000 (15:22 +0000)]
directsoundsink: Use GstClock API instead of Sleep() for waiting

It's more accurate and allows cancellation.

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

7 years agovpx: fix build against older libvpx versions
Tim-Philipp Müller [Mon, 8 May 2017 15:05:45 +0000 (15:05 +0000)]
vpx: fix build against older libvpx versions

Such as 1.3.0 as on raspbian.

7 years agodirectsoundsink: Fix corner case causing large CPU usage
Nirbheek Chauhan [Wed, 3 May 2017 17:53:10 +0000 (23:23 +0530)]
directsoundsink: Fix corner case causing large CPU usage

We were unnecessarily looping/goto-ing repeatedly when we had exactly
the amount of data as the free space, and also when the free space was
too small. This, as it turns out, is a very common scenario with
Directsound on Windows.

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

We have to do polling here because the event notification API that
Directsound exposes cannot be used with live playback since all events
must be registered in advance with the capture buffer, you cannot
add/remove them once playback has begun. Directsoundsrc had the same
problem.

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

7 years agodirectsoundsink: Clean up some debug logging
Nirbheek Chauhan [Wed, 3 May 2017 18:01:00 +0000 (23:31 +0530)]
directsoundsink: Clean up some debug logging

Don't need to print the function name, gstreamer does it for you.

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

7 years agomatroskademux: improve index memory usage
Tim-Philipp Müller [Sat, 6 May 2017 21:30:20 +0000 (22:30 +0100)]
matroskademux: improve index memory usage

Re-arrange order of index entry struct members to avoid padding
bytes in the middle of the struct, thus potentially reducing the
overall size of the struct and reducing memory used by the index.
On Linux x86_64 the size goes down from 32 bytes to 24 bytes for
each index entry.

7 years agoBack to development
Sebastian Dröge [Thu, 4 May 2017 15:59:14 +0000 (18:59 +0300)]
Back to development

7 years agoRelease 1.12.0
Sebastian Dröge [Thu, 4 May 2017 12:38:34 +0000 (15:38 +0300)]
Release 1.12.0

7 years agoUpdate .po files
Sebastian Dröge [Thu, 4 May 2017 12:07:27 +0000 (15:07 +0300)]
Update .po files

7 years agopo: Update translations
Sebastian Dröge [Thu, 4 May 2017 10:47:20 +0000 (13:47 +0300)]
po: Update translations

7 years agoqtdemux: Fix crash on mss stream caused by invalid stsd entry access
Seungha Yang [Tue, 2 May 2017 01:32:30 +0000 (10:32 +0900)]
qtdemux: Fix crash on mss stream caused by invalid stsd entry access

Since mss has no moov, default stsd entry should be created with media-caps.

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

7 years agoRelease 1.11.91
Sebastian Dröge [Thu, 27 Apr 2017 14:29:58 +0000 (17:29 +0300)]
Release 1.11.91

7 years agoUpdate .po files
Sebastian Dröge [Thu, 27 Apr 2017 12:58:47 +0000 (15:58 +0300)]
Update .po files

7 years agopo: Update translations
Sebastian Dröge [Thu, 27 Apr 2017 12:28:02 +0000 (15:28 +0300)]
po: Update translations

7 years agoqtdemux: Don't crash in debug output if stream==NULL
Sebastian Dröge [Thu, 27 Apr 2017 09:56:27 +0000 (12:56 +0300)]
qtdemux: Don't crash in debug output if stream==NULL

That case is correctly handled below but not in the debug output.

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

7 years agoqtdemux: Don't perform seeks with inconsistent seek values
Sebastian Dröge [Tue, 25 Apr 2017 14:11:27 +0000 (17:11 +0300)]
qtdemux: Don't perform seeks with inconsistent seek values

If gst_segment_do_seek() fails, we shouldn't try seeking on that
resulting segment but just error out. Crashes further down the line
otherwise.

7 years agoAutomatic update of common submodule
Tim-Philipp Müller [Mon, 24 Apr 2017 19:27:49 +0000 (20:27 +0100)]
Automatic update of common submodule

From 60aeef6 to 48a5d85

7 years agotests: rtp-payloading: add test for rtph264depay avc/byte-stream output
Tim-Philipp Müller [Mon, 24 Apr 2017 16:31:04 +0000 (17:31 +0100)]
tests: rtp-payloading: add test for rtph264depay avc/byte-stream output

Make sure avc output doesn't contain SPS/PPS inline, but
byte-stream output does.

7 years agortph264depay: don't insert SPS/PPS inline for AVC output
Tim-Philipp Müller [Mon, 24 Apr 2017 16:29:37 +0000 (17:29 +0100)]
rtph264depay: don't insert SPS/PPS inline for AVC output

SPS/PPS are in the caps in this case and shouldn't be in
the stream data.

7 years agortspsrc: Chain up to the parent class' provide_clock() implementation
Sebastian Dröge [Fri, 21 Apr 2017 18:09:14 +0000 (19:09 +0100)]
rtspsrc: Chain up to the parent class' provide_clock() implementation

If no clock was provided directly by rtspsrc. This behaviour was removed
by f8013487c91a6ffc552a4b25aa1a70f0bd5377f8 and results in rtspsrc not
providing the system clock via the rtpjitterbuffer.

As a result, if another element like an audio sink, provides a clock,
the pipeline would select that (when going to PAUSED/PLAYING again later).
Audio clocks usually don't progress in PAUSED, and thus our live source
won't be able to use the clock to produce data, making the sink never
preroll and everything is stuck.

7 years agoqtdemux: reset sample_description_id to default
Jürgen Sachs [Thu, 20 Apr 2017 09:22:15 +0000 (11:22 +0200)]
qtdemux: reset sample_description_id to default

Fixes stream where sample_description_id is specified in the tfhd

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

7 years agosplitmuxsink: Don't use an explicit name for requesting audio pads
Sebastian Dröge [Thu, 20 Apr 2017 12:16:24 +0000 (13:16 +0100)]
splitmuxsink: Don't use an explicit name for requesting audio pads

... unless the muxer uses the same audio pad template name as
splitmuxsink. We can't request a pad called "audio_0" on a muxer that
wants pads to be "sink_%d".

7 years agoflvdemux: remove duplicated segment initialization
ChangBok Chae [Thu, 23 Feb 2017 00:31:36 +0000 (09:31 +0900)]
flvdemux: remove duplicated segment initialization

It's also done in gst_flv_demux_cleanup().

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

7 years agosplitmuxsink: Correctly catch FLUSH events in probes
Xavier Claessens [Thu, 20 Apr 2017 10:17:35 +0000 (20:17 +1000)]
splitmuxsink: Correctly catch FLUSH events in probes

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

7 years agoRevert "rtpbin: pipeline gets an EOS when any rtpsources byes"
Tim-Philipp Müller [Wed, 19 Apr 2017 11:28:12 +0000 (12:28 +0100)]
Revert "rtpbin: pipeline gets an EOS when any rtpsources byes"

This reverts commit eeea2a7fe88a17b15318d5b6ae6e190b2f777030.

It breaks EOS in some sender pipelines, see
https://bugzilla.gnome.org/show_bug.cgi?id=773218#c20

7 years agoqtdemux: Reset adapter in more discontinuity cases
Edward Hervey [Fri, 14 Apr 2017 15:01:49 +0000 (17:01 +0200)]
qtdemux: Reset adapter in more discontinuity cases

In push mode we process as much as possible in the adapter. When we receive
a DISCONT buffer which we can't match to an actual sample (based on the existing
sample table) and there is still data remaining in the incoming adapter,there is
one of two cases happening:
1) We are doing reverse playback, in which case we should flush out all pending
  data
2) We have leftover data from the previous incoming buffer... which we can't do
  anything about.

For the second case, make sure we flush out the remaining data so that we can start
parsing again from scratch.

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

7 years agortspsrc: Use GST_ELEMENT_ERROR_WITH_DETAILS
Edward Hervey [Fri, 14 Apr 2017 08:56:41 +0000 (10:56 +0200)]
rtspsrc: Use GST_ELEMENT_ERROR_WITH_DETAILS

Allows the application to know the exact status code that was returned
by the server in a programmatic fashion.

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

7 years agoqtdemux: Fix leak on QtDemuxStreamStsdEntry
Seungha Yang [Sun, 16 Apr 2017 09:47:56 +0000 (18:47 +0900)]
qtdemux: Fix leak on QtDemuxStreamStsdEntry

Fix unit test failure

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

7 years agoqtmux: Fix timescale of timecode tracks
Sebastian Dröge [Fri, 14 Apr 2017 10:38:53 +0000 (13:38 +0300)]
qtmux: Fix timescale of timecode tracks

They should have ideally the same timescale of the video track, which we
can't guarantee here as in theory timecode configuration and video
framerate could be different. However we should set a correct timescale
based on the framerate given in the timecode configuration, and not just
use the framerate numerator.