platform/upstream/gst-plugins-good.git
5 years agopulsesink: Apply individual volume ratio to volume/mute properties 55/205755/2 accepted/tizen/unified/20190513.082534 submit/tizen/20190510.023327
Sangchul Lee [Thu, 9 May 2019 03:35:59 +0000 (12:35 +0900)]
pulsesink: Apply individual volume ratio to volume/mute properties

It relates to the commit below.
 - 82a861316c7d53940a4ba5c5ea6b80e4e9b2fbb0
 - pulseutil: Add API for setting volume ratio

Change-Id: I376d2049e63c01cfe8e25d4e1d68786045cce8fc
Signed-off-by: Sangchul Lee <sc11.lee@samsung.com>
5 years agopulseutil: Add API for setting volume ratio 14/205414/2
Sangchul Lee [Fri, 3 May 2019 02:58:14 +0000 (11:58 +0900)]
pulseutil: Add API for setting volume ratio

In Tizen, a stream has one volume type such as media, notification,
alarm. Each type is so-called volume group which has its own volume
value of a certain volume level. It is managed on the Tizen policy
module of the PulseAudio. That's why the player framework has been
using volume element instead of volume property of gstpulsesink of
the pipeline to set individual volume of the stream itself.

Here we add a function to set volume ratio for the individual volume
value via the policy module of the PulseAudio which can be with the
volume group concept.

Change-Id: I6b2cf8d4814a01970e425a4dd25b49aa883ee7e1
Signed-off-by: Sangchul Lee <sc11.lee@samsung.com>
5 years agoApply "pulsesink: uncork if needed upon commit" again 80/200980/1 accepted/tizen/unified/20190311.072504 submit/tizen/20190307.052504 submit/tizen/20190308.025958
Sangchul Lee [Tue, 5 Mar 2019 03:33:57 +0000 (12:33 +0900)]
Apply "pulsesink: uncork if needed upon commit" again

This uncork condition is valid for volume ramping with silence
memchunk in pulseaudio when a stream is started.

patch history
 : 46a3c9ac8b2f8182ef8f211f4be09a67e4d42a61 - 2016-04-16 02:21:14 +1000 - Revert "pulsesink: uncork if needed upon commit"
 : 0dd46accf6d282ff07065852bd91c85c78af3394 - 2015-01-10 13:04:44 +0100 - pulsesink: uncork if needed upon commit

Change-Id: I3d9ad358f4c66df1755650960b53043df22a2d1c
Signed-off-by: Sangchul Lee <sc11.lee@samsung.com>
6 years agoequalizer: Disables equalizer because there is a collision with the audioeq 80/193480/1
Gilbok Lee [Wed, 21 Nov 2018 07:14:07 +0000 (16:14 +0900)]
equalizer: Disables equalizer  because there is a collision with the audioeq

Change-Id: Ia1953551bed940909969019b925efca030471e4e

6 years agoDisable external dependency for v4l2 plugins 63/193163/1 accepted/tizen/unified/20181119.065226 submit/tizen/20181116.024634
Jeongmo Yang [Thu, 15 Nov 2018 11:53:09 +0000 (20:53 +0900)]
Disable external dependency for v4l2 plugins

[Version] 1.12.2-2
[Profile] Common
[Issue Type] Optimization
[Dependency module] N/A
[Test] [M(T) - Boot=(OK), sdb=(OK), Home=(OK), Touch=(OK), Version=tizen-5.0-unified_20181114.3]

Change-Id: Id5cb18508e0931403850a28bda996b4780d94a72
Signed-off-by: Jeongmo Yang <jm80.yang@samsung.com>
6 years agoaacparse: Fix build warning 30/189330/1 accepted/tizen_5.0_unified accepted/tizen/5.0/unified/20181102.025039 accepted/tizen/unified/20180918.062815 submit/tizen/20180917.051918 submit/tizen_5.0/20181101.000006
Gilbok Lee [Mon, 17 Sep 2018 05:11:49 +0000 (14:11 +0900)]
aacparse: Fix build warning

Change-Id: I913d2e3edfc01563e06419b7b50fe656b963b137

6 years agosouphttpsrc: add log about last read pos for debugging 57/185657/2 accepted/tizen/unified/20180803.172608 submit/tizen/20180802.022345
Eunhae Choi [Wed, 1 Aug 2018 10:02:02 +0000 (19:02 +0900)]
souphttpsrc: add log about last read pos for debugging

Change-Id: I7540ec800f5939b786d5338b98ff1395324f7af4

6 years agovideo: Add INVZ pixel format 72/184472/2 accepted/tizen/unified/20180725.060525 submit/tizen/20180724.225340
sangho park [Wed, 18 Jul 2018 06:53:49 +0000 (15:53 +0900)]
video: Add INVZ pixel format

This pixel format is a planar depth 16-bit to use Intel Realsense devices.

Change-Id: I13694309b04e1d7d7c00d846ba2713ece9e3a137
Signed-off-by: sangho park <sangho.g.park@samsung.com>
6 years ago[spec] plugins for NNstreamer are added to extra subpackage 70/180570/1
MyungJoo Ham [Thu, 31 May 2018 02:13:44 +0000 (11:13 +0900)]
[spec] plugins for NNstreamer are added to extra subpackage

We are using pngdec and imagefreeze to generate unit test cases
as video streams without any noises.

We have added such plugins to extra so that these won't be
included in the conventional Tizen profiles / products.

Change-Id: I4fff636ca61e7c6e6cd00a95eb351e9e7a23ce66
Signed-off-by: MyungJoo Ham <myungjoo.ham@samsung.com>
6 years ago[spec] change build macro about tv 43/176943/1 accepted/tizen/unified/20180426.062433 submit/tizen/20180424.091503
Eunhae Choi [Tue, 24 Apr 2018 09:10:35 +0000 (18:10 +0900)]
[spec] change build macro about tv

Change-Id: Iee9337804425fafa84a469167154985dbeeab254

6 years agoAdd build option for security issues 43/175443/1 accepted/tizen/unified/20180420.081800 submit/tizen/20180419.035601
Gilbok Lee [Tue, 10 Apr 2018 08:18:48 +0000 (17:18 +0900)]
Add build option for security issues

Change-Id: I55e0bc2001285acfd803169a5b69e54c43db7e9d

6 years ago[v4l2src] Add new property for camera ID 31/173431/4 accepted/tizen/unified/20180322.145011 submit/tizen/20180322.022154
Jeongmo Yang [Wed, 21 Mar 2018 04:59:01 +0000 (13:59 +0900)]
[v4l2src] Add new property for camera ID

It supports seperated device nodes for multiple camera device

[Version] 1.12.2-1
[Profile] Common
[Issue Type] Update
[Dependency module] libmm-camcorder, mmfw-sysconf
[Test] [M(T) - Boot=(OK), sdb=(OK), Home=(OK), Touch=(OK), Version=tizen-unified_20180320.2]

Change-Id: I41675a0568c8d117de4efb16ecd7aefa4578a8df
Signed-off-by: Jeongmo Yang <jm80.yang@samsung.com>
6 years agorgvolume: Add enable-rgvolume property for enable/disable rgvolume 49/171949/3 accepted/tizen/unified/20180320.141243 submit/tizen/20180315.033609
Gilbok Lee [Thu, 8 Mar 2018 08:11:25 +0000 (17:11 +0900)]
rgvolume: Add enable-rgvolume property for enable/disable rgvolume

If rgvulme is disabled, the rgvolume isn't affected by tag and properties

Change-Id: I5ce1eb6296a1e0f88e6b4c3a93ecf62be58c070e

6 years agoqtdemux: Use strndup when parseing xml for spherical 15/170115/4 accepted/tizen/unified/20180219.055741 submit/tizen/20180214.040145
Gilbok Lee [Tue, 13 Feb 2018 09:51:18 +0000 (18:51 +0900)]
qtdemux: Use strndup when parseing xml for spherical

The spherical tag contains the garbage value

Change-Id: Ie47d8545564ac894f5137383341a3b46573b3a08

6 years agoqtdemux: fix bug for getting the bool value incorrectly in spherical xml 14/170114/1
Gilbok Lee [Thu, 18 Jan 2018 05:51:54 +0000 (14:51 +0900)]
qtdemux: fix bug for getting the bool value incorrectly in spherical xml

Change-Id: Ia1c53145a71288acd40da9df50fd6a22c6c8eb1b

6 years agoqtmux: do not allocate atom of trak when mux reset 41/167241/1 accepted/tizen/unified/20180119.133815 submit/tizen/20180118.094418
Gilbok Lee [Wed, 27 Dec 2017 05:26:29 +0000 (14:26 +0900)]
qtmux: do not allocate atom of trak when mux reset

If qtmux reused without finalization(only the state is changed from PAUSE to READY), qtmux makes dummy trak.

Change-Id: Ic3e9510425d5ab98d8f084aa75ffe6199b5b528c

6 years agoMerge branch 'tizen_gst_upgrade' into tizen 70/165970/1 accepted/tizen/unified/20180110.141839 submit/tizen/20180105.085839
Gilbok Lee [Fri, 5 Jan 2018 01:55:43 +0000 (10:55 +0900)]
Merge branch 'tizen_gst_upgrade' into tizen

upgrade 1.12.2

Change-Id: I17638674de91e20e0db6b46622a54da0c0866fad

7 years agoMerge missing tizen patch 98/163298/4 tizen_gst_upgrade
Gilbok Lee [Fri, 8 Dec 2017 09:16:39 +0000 (18:16 +0900)]
Merge missing tizen patch

Change-Id: Id1a530971781516e8f5dde4b19a09634144446c2

7 years agoqtdemux: fix crash when qtdemux dispose (free spherical_metadata) 80/159280/4 accepted/tizen/unified/20171212.171911 submit/tizen/20171212.053432
Gilbok Lee [Wed, 8 Nov 2017 02:37:11 +0000 (11:37 +0900)]
qtdemux: fix crash when qtdemux dispose (free spherical_metadata)

Change-Id: I25eefeb0ed68ef9f567fb8ec6e71f13ddc6b2628

7 years ago[pulse] update pcm dump code for current gstreamer version 55/159755/1
Seungbae Shin [Fri, 3 Nov 2017 05:09:54 +0000 (14:09 +0900)]
[pulse] update pcm dump code for current gstreamer version

Change-Id: I9b3412a51d6e70af55428cc1d48fb9cd34ffca28
(cherry picked from commit 845df59ecd044bd38143f7a253cb88cd76b7b193)

7 years agortsp: apply info level threshold 01/159101/1
Eunhae Choi [Tue, 7 Nov 2017 03:11:59 +0000 (12:11 +0900)]
rtsp: apply info level threshold

Change-Id: I1d9fd89e33e550bb01057819b80532e89cc76b6f

7 years agortspsrc: Print RTSP and SDP messages to gstreamer log instead of stdout 43/158943/4
Hyunil [Mon, 6 Nov 2017 05:21:28 +0000 (14:21 +0900)]
rtspsrc: Print RTSP and SDP messages to gstreamer log instead of stdout

Change-Id: Id33848fa7843f1095764503d4db26027d9c5062b
Signed-off-by: Hyunil <hyunil46.park@samsung.com>
7 years agoMerge the tizen patch and fix build err based on 1.12.2 30/158530/1
Eunhae Choi [Wed, 1 Nov 2017 12:44:43 +0000 (21:44 +0900)]
Merge the tizen patch and fix build err based on 1.12.2

Change-Id: Ica5cd6b1a865b8367584aeb40e33ea6f3e4017e8

7 years agoExtract spherical video and spatial audio metadata and send it to the bus 78/152978/7 accepted/tizen/unified/20171031.055723 submit/tizen/20171030.055657
Mykola Alieksieiev [Wed, 27 Sep 2017 11:51:28 +0000 (14:51 +0300)]
Extract spherical video and spatial audio metadata and send it to the bus

Change-Id: I0126c6afa12e5843587030fd5ec236f6ba2c507b
Signed-off-by: Mykola Alieksieiev <m.alieksieie@samsung.com>
7 years agoqtdemux: fix memory leak 48/143448/1 accepted/tizen/unified/20170920.065406 submit/tizen/20170918.052251
Gilbok Lee [Thu, 10 Aug 2017 04:06:39 +0000 (13:06 +0900)]
qtdemux: fix memory leak

Change-Id: Ic27af3fcd40885695ea041160af7b56258461ef2
Signed-off-by: Gilbok Lee <gilbok.lee@samsung.com>
7 years agoRelease 1.12.2 upstream/1.12 1.12.2
Sebastian Dröge [Fri, 14 Jul 2017 11:03:05 +0000 (14:03 +0300)]
Release 1.12.2

7 years agoUpdate .po files
Sebastian Dröge [Fri, 14 Jul 2017 10:31:58 +0000 (13:31 +0300)]
Update .po files

7 years agopo: Update translations
Sebastian Dröge [Fri, 14 Jul 2017 10:22:45 +0000 (13:22 +0300)]
po: Update translations

7 years agoqtdemux: Fix parsing of RLE depth
Sebastian Dröge [Thu, 13 Jul 2017 09:47:02 +0000 (12:47 +0300)]
qtdemux: Fix parsing of RLE depth

Regression introduced by 86b427dc70562f891a551ffc9f96cefe1cafcddd

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

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 agortpgsmpay: fix accidental garbage data before actual payload
Yasushi SHOJI [Fri, 7 Jul 2017 12:15:57 +0000 (21:15 +0900)]
rtpgsmpay: fix accidental garbage data before actual payload

Do not allocate payload size outbuf if appending payload buffer.

The commit 137672ff1824948bda4b1b1967de8c24a0055b67 attached payload
to the output buffer but forgot to remove payload allocation.  That
effectively doubled payload size and add zero'ed or random bytes.

Makes the following pipeline work again:

gst-launch-1.0 -v audiotestsrc wave=2 ! gsmenc ! rtpgsmpay ! rtpgsmdepay ! gsmdec ! autoaudiosink

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

7 years agortprtxreceive: Add memory and boundary checks
Nicolas Dufresne [Mon, 3 Jul 2017 15:47:13 +0000 (11:47 -0400)]
rtprtxreceive: Add memory and boundary checks

This element was not checking if mapping the RTP buffer and the payload
worked, and was not checking if the RTX payload was large enough.

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

7 years agoimagefreeze: fix use-after-free on seek event
Tim-Philipp Müller [Mon, 3 Jul 2017 19:27:29 +0000 (20:27 +0100)]
imagefreeze: fix use-after-free on seek event

Get seqnum before unreffing the seek event.

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

7 years agortspsrc: Create send/recv mutexes once, not on every connect()
Sebastian Dröge [Thu, 29 Jun 2017 15:59:58 +0000 (18:59 +0300)]
rtspsrc: Create send/recv mutexes once, not on every connect()

Also fixes a crash caused by freeing an uninitialized mutex in an error
case.

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

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 agomatroska,videofilter: fix caps leak 67/136367/1 accepted/tizen/4.0/unified/20170816.012648 accepted/tizen/4.0/unified/20170816.015421 accepted/tizen/4.0/unified/20170828.222442 accepted/tizen/unified/20170710.154311 submit/tizen/20170707.065345 submit/tizen_4.0/20170811.094300 submit/tizen_4.0/20170814.115522 submit/tizen_4.0/20170828.100005 submit/tizen_4.0_unified/20170814.115522
Eunhae Choi [Thu, 29 Jun 2017 08:13:09 +0000 (17:13 +0900)]
matroska,videofilter: fix caps leak

Change-Id: I447b10735eed17e52769b939cc88be9f6a9781c2

7 years agoFix build error with TV profile 50/135850/1
Sangjin, Sim [Tue, 27 Jun 2017 05:02:05 +0000 (14:02 +0900)]
Fix build error with TV profile

Signed-off-by: Sangjin, Sim <sangjin0924.sim@samsung.com>
Change-Id: I6e28b1909192538e9e446a247da0fefaa6038c5c

7 years agoRelease 1.12.1
Sebastian Dröge [Tue, 20 Jun 2017 09:06:22 +0000 (12:06 +0300)]
Release 1.12.1

7 years agoUpdate .po files
Sebastian Dröge [Tue, 20 Jun 2017 08:20:12 +0000 (11:20 +0300)]
Update .po files

7 years agopo: Update translations
Sebastian Dröge [Tue, 20 Jun 2017 08:08:32 +0000 (11:08 +0300)]
po: Update translations

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: 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 agortph264depay : fix mem leak 24/134424/1
Eunhae Choi [Fri, 16 Jun 2017 09:45:07 +0000 (18:45 +0900)]
rtph264depay : fix mem leak

Change-Id: Ic6255805254c15b9c01cdadcbecb2111e2a9bf7a

7 years agortp: fix mem leak 49/134349/1
Eunhae Choi [Fri, 16 Jun 2017 05:50:40 +0000 (14:50 +0900)]
rtp: fix mem leak

Change-Id: I26e98cdfac70d0adde686bf399620d82d9106269

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 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 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 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 agoapply CVE patch for security weakness 24/132124/2 accepted/tizen/unified/20170608.072420 submit/tizen/20170608.033315
Sejun Park [Thu, 1 Jun 2017 06:55:13 +0000 (15:55 +0900)]
apply CVE patch for security weakness

https://cgit.freedesktop.org/gstreamer/gst-plugins-good/commit/?id=153a8ae752c90d07190ef45803422a4f71ea8bff

Change-Id: I1472b6d6dcac2371c9d32d4ca0d9f5e98d4b9a1e

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 agortpsrc, aacparse, mpegaudioparse: Fix build warning, check indent 30/130730/7
Gilbok Lee [Tue, 23 May 2017 12:18:17 +0000 (21:18 +0900)]
rtpsrc, aacparse, mpegaudioparse: Fix build warning, check indent

Change-Id: I2e4cff09dead99ed0ca5f365af6b1139032cb0de

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 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 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.

7 years agoqtdemux: Properly reset demuxer when all streams are EOS
Edward Hervey [Thu, 13 Apr 2017 11:25:06 +0000 (13:25 +0200)]
qtdemux: Properly reset demuxer when all streams are EOS

Make sure offset and neededbytes are properly resetted when all
streams are EOS in push-mode.

Avoids cases when some data might still be pushed by upstream (because
it didn't yet see the resulting GST_FLOW_EOS yet) and qtdemux gets
completely lost.

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

7 years agosouphttpsrc: Make more usage of error macro
Edward Hervey [Thu, 13 Apr 2017 06:00:30 +0000 (08:00 +0200)]
souphttpsrc: Make more usage of error macro

And make sure we actually use the provided soup_msg argument in the macro

7 years agomeson: Print message when disabling taglib on MSVC
Nirbheek Chauhan [Wed, 12 Apr 2017 13:16:53 +0000 (18:46 +0530)]
meson: Print message when disabling taglib on MSVC

7 years agoqtmux: Don't forget to update pad->last_buf
Edward Hervey [Wed, 12 Apr 2017 11:26:59 +0000 (13:26 +0200)]
qtmux: Don't forget to update pad->last_buf

buf is the current pad->last_buf value. If ever it gets copied/unreffed,
we need to make sure to write back the new  pointer to the last_buf
variable.

Fixes using wrong pointer values in the case of decrasing DTS value

7 years agotests: Add vp9enc to gitignore
Edward Hervey [Wed, 12 Apr 2017 09:33:05 +0000 (11:33 +0200)]
tests: Add vp9enc to gitignore

7 years agoqtdemux: fix: sample description index override in tfhd not evaluated
Jürgen Sachs [Tue, 11 Apr 2017 11:41:48 +0000 (13:41 +0200)]
qtdemux: fix: sample description index override in tfhd not evaluated

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

7 years agoqtdemux: Add out-of-bound check
Edward Hervey [Wed, 12 Apr 2017 09:03:24 +0000 (11:03 +0200)]
qtdemux: Add out-of-bound check

Make sure we don't read invalid memory

7 years agoqtdemux: move parsing of tkhd out of stsd entry loop
Thiago Santos [Wed, 27 Apr 2016 15:17:37 +0000 (12:17 -0300)]
qtdemux: move parsing of tkhd out of stsd entry loop

It needs only to be read once.

7 years agoqtdemux: check for a different stsd entry before pushing a sample
Thiago Santos [Thu, 7 Apr 2016 15:23:35 +0000 (12:23 -0300)]
qtdemux: check for a different stsd entry before pushing a sample

Before pushing a sample, check if there was a change in the current
stsd entry. This patch also assumes that the first stsd entry is
used as default for the first sample. It might cause an uneeded
caps renegotiation when this isn't the case.

7 years agoqtdemux: parse all stsd entries
Thiago Santos [Wed, 6 Apr 2016 15:55:18 +0000 (12:55 -0300)]
qtdemux: parse all stsd entries

stsd can have multiple format entries, parse them all.

This is required to play DVB DASH profile that uses multiple entries
to identify the different available bitrates/options on dash streams

The stream format-specific data is not stored into QtDemuxStreamStsdEntry

7 years agoqtdemux: rework stsd sample entries access
Thiago Santos [Tue, 5 Apr 2016 17:34:00 +0000 (14:34 -0300)]
qtdemux: rework stsd sample entries access

Instead of using the stsd as a base pointer, use the actual stsd
entry as the stsd can have multiple entries. This is rarely used
for file playback but is a possible profile with in DVB DASH specs.

This still doesn't support stsd with multiple entries but makes it
easier to do so.

7 years agoqtdemux: get stsd child by index instead of type
Thiago Santos [Tue, 5 Apr 2016 21:00:10 +0000 (18:00 -0300)]
qtdemux: get stsd child by index instead of type

There might be multiple children with the same type

7 years agotests/check/rtprtx: add checks for rtprtxqueue's max-size-{time,packets} properties
George Kiagiadakis [Fri, 7 Apr 2017 13:33:18 +0000 (16:33 +0300)]
tests/check/rtprtx: add checks for rtprtxqueue's max-size-{time,packets} properties

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

7 years agortprtxqueue: implement handling of the max-size-time property
George Kiagiadakis [Tue, 4 Apr 2017 14:33:31 +0000 (17:33 +0300)]
rtprtxqueue: implement handling of the max-size-time property

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

7 years agoAutomatic update of common submodule
Tim-Philipp Müller [Mon, 10 Apr 2017 22:49:06 +0000 (23:49 +0100)]
Automatic update of common submodule

From 39ac2f5 to 60aeef6

7 years agov4l2object: Copy timestamp when importing buffers
Todor Tomov [Mon, 10 Apr 2017 08:56:00 +0000 (08:56 +0000)]
v4l2object: Copy timestamp when importing buffers

This is needed for V4L2_OUTPUT interface, and is harmless of
V4L2_CAPTURE interfaces. This will fix timestamp in cases like:

  v4l2src io-mode=dmabuf ! v4l2videoNenc output-io-mode=dmabuf-import !  ...

Same apply for userptr.

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

7 years agoqtmux: Fix last_dts tracking for raw audio and similar formats
Sebastian Dröge [Mon, 10 Apr 2017 12:55:30 +0000 (15:55 +0300)]
qtmux: Fix last_dts tracking for raw audio and similar formats

Accumulate the durations directly and don't scale yet another time by
the number of samples.

7 years agotests: fix leak in splitmux test
Vincent Penquerc'h [Fri, 7 Apr 2017 09:48:50 +0000 (10:48 +0100)]
tests: fix leak in splitmux test

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

7 years agoscaletempo: Scale GAP event timestamp and duration like for buffers
Lyon Wang [Fri, 7 Apr 2017 07:29:43 +0000 (15:29 +0800)]
scaletempo: Scale GAP event timestamp and duration like for buffers

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

7 years agov4l2dec: Fix race when going from PAUSED to READY
Thibault Saunier [Fri, 17 Feb 2017 13:01:08 +0000 (10:01 -0300)]
v4l2dec: Fix race when going from PAUSED to READY

Running `gst-validate-launcher -t validate.file.playback.change_state_intensive.vorbis_vp8_1_webm`
on odroid XU4 (s5p-mfc v4l2 driver) often leads to:

  ERROR:../subprojects/gst-plugins-good/sys/v4l2/gstv4l2videodec.c:215:gst_v4l2_video_dec_stop: assertion failed: (g_atomic_int_get (&self->processing) == FALSE)

This happens when the following race happens:

- T0: Main thread
- T1: Upstream streaming thread
- T2. v4l2dec processing thread)

[The decoder is in PAUSED state]

T0. The validate scenario runs `Executing (36/40) set-state: state=null repeat=40`
T1- The decoder handles a frame
T2- A decoded frame is push downstream
T2- Downstream returns FLUSHING as it is already flushing changing state
T2- The decoder stops its processing thread and sets `->processing = FALSE`
T1- The decoder handles another frame
T1- `->process` is FALSE so the decoder restarts its streaming thread
T0- In v4l2dec-> stop the processing thread is stopped
NOTE: At this point the processing thread loop never started.
T0- assertion failed: (g_atomic_int_get (&self->processing) == FALSE)

Here I am removing the whole ->processing logic to base it all on the
GstTask state to avoid duplicating the knowledge.

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

7 years agoRelease 1.11.90
Sebastian Dröge [Fri, 7 Apr 2017 13:31:56 +0000 (16:31 +0300)]
Release 1.11.90