platform/upstream/gst-plugins-good.git
8 years agoqtmux: Don't unconditionally use strnlen()
Ryan Hendrickson [Mon, 19 Oct 2015 12:36:37 +0000 (15:36 +0300)]
qtmux: Don't unconditionally use strnlen()

It's not available on older OSX and we can as well use memchr() here.

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

8 years agompegaudioparse: Fix buffer memory leak during failures
Vineeth TM [Mon, 12 Oct 2015 01:48:23 +0000 (10:48 +0900)]
mpegaudioparse: Fix buffer memory leak during failures

mapped buffer is not being unmapped during failures

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

8 years agoauparse: Fix event memory leak
Vineeth TM [Mon, 19 Oct 2015 08:38:32 +0000 (17:38 +0900)]
auparse: Fix event memory leak

Free the event after being handled to prevent memory leak.

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

8 years agoqtdemux: fix caps leak
Guillaume Desmottes [Wed, 14 Oct 2015 10:03:15 +0000 (12:03 +0200)]
qtdemux: fix caps leak

If the QtDemuxStream are re-used they may already have caps which used
to be leaked.

Reproduced using the
validate.dash.playback.seek_forward.dash_exMPD_BIP_TC1 validate
scenario.

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

8 years agoqtdemux: Fix taglist memory leak
Vineeth TM [Wed, 14 Oct 2015 00:29:50 +0000 (09:29 +0900)]
qtdemux: Fix taglist memory leak

Free the stream and its sub items instead of just the stream

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

8 years agoqtmux: Fix date memory leak
Vineeth TM [Wed, 7 Oct 2015 08:14:57 +0000 (17:14 +0900)]
qtmux: Fix date memory leak

When getting date from taglist, the memory should be freed after
using it.

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

8 years agoqtmux: Fix sample memory leak
Vineeth TM [Mon, 5 Oct 2015 02:03:38 +0000 (11:03 +0900)]
qtmux: Fix sample memory leak

When getting sample from taglist, the memory should be freed after
using it.

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

8 years agocutter: Fix buffer leak
Vineeth TM [Mon, 5 Oct 2015 04:10:56 +0000 (13:10 +0900)]
cutter: Fix buffer leak

Buffer is added to the internal cache, and pushed only when accumulated
buffer duration crosses 200 ms. So when the chain ends, the buffer accumulated
is not freed. Freeing the cache when the state changes from PAUSED to READY.

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

8 years agosplitmuxsink: post messages when fragments are being opened and closed
George Kiagiadakis [Fri, 17 Apr 2015 12:25:43 +0000 (14:25 +0200)]
splitmuxsink: post messages when fragments are being opened and closed

This can be useful for applications that need to track the created fragments
(to log them in a recording database, for example)

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

8 years agosplitmuxsink: allow non-video streams to serve as reference
Ramiro Polla [Wed, 29 Apr 2015 17:23:28 +0000 (18:23 +0100)]
splitmuxsink: allow non-video streams to serve as reference

In the absence of a video stream, the first stream will be used as
reference.

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

8 years agosplitmuxsink: initialize mux_start_time properly
George Kiagiadakis [Wed, 22 Jul 2015 15:45:12 +0000 (17:45 +0200)]
splitmuxsink: initialize mux_start_time properly

mux_start_time refers to the running_time of the buffer
that goes first in the output file. Normally this time is
0, so this variable is initialized to 0 during the state
change to PAUSED.

However, when dealing with dynamic pipelines and starting
a recording while the pipeline has already run for a while,
the running_time of the first buffer is > 0 and this causes
a problem with detecting the end of the first file(s) when
splitting by duration, because the code will later compare
the threshold_time with (last buffer running_time - mux_start_time)
and will get it wrong until mux_start_time advances enough
to make this difference < threshold_time, creating empty files
in the meantime.

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

8 years agogdkpixbufsink: don't leak old pixel buffer when setting a new overlay
Tim-Philipp Müller [Tue, 29 Sep 2015 10:12:48 +0000 (11:12 +0100)]
gdkpixbufsink: don't leak old pixel buffer when setting a new overlay

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

8 years agoflacenc: avoid potential string overflow
Tim-Philipp Müller [Mon, 28 Sep 2015 19:25:22 +0000 (20:25 +0100)]
flacenc: avoid potential string overflow

We don't necessarily have full control over the input tags, so
it's possible that the ISRC tag contains a longer string than
expected, in which case we'd write over the end of the static-size
13 byte buffer that is FLAC__StreamMetadata_CueSheet_Track::isrc.
Make sure to only copy the ISRC if it's not too long, and make
sure the buffer we write to is always NUL-terminated by using
g_strlcpy().

CID 1324931.

8 years agomatroskademux: Remove leftover assertion from 0.10
Sebastian Dröge [Mon, 28 Sep 2015 16:03:51 +0000 (18:03 +0200)]
matroskademux: Remove leftover assertion from 0.10

We now allocate memory via GstAllocator and as such can handle arbitrary
alignments, not only <= G_MEM_ALIGN.

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

8 years agoaacparse: fix uninitialized variables in LOAS config reading
Guillaume Marquebielle [Fri, 25 Sep 2015 08:01:37 +0000 (10:01 +0200)]
aacparse: fix uninitialized variables in LOAS config reading

On reading LOAS config, flag v=1 and vA=1 combination can occur, leading to warning
"Spec says "TBD"...". Returning TRUE on this case while parameters 'sample_rate' and
'channels' are pointing to uninitialized values can end on setting random values as
rate and channels on src caps.

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

8 years agoRelease 1.6.0 1.6.0
Sebastian Dröge [Fri, 25 Sep 2015 21:15:55 +0000 (23:15 +0200)]
Release 1.6.0

8 years agoUpdate .po files
Sebastian Dröge [Fri, 25 Sep 2015 20:57:34 +0000 (22:57 +0200)]
Update .po files

8 years agosmptealpha: Do not set width/height before comparing with old values
Thibault Saunier [Fri, 25 Sep 2015 12:08:09 +0000 (14:08 +0200)]
smptealpha: Do not set width/height before comparing with old values

Otherwise we end up considering the values did not change and we wrongly
work with the old video format (which will lead to wrong
behaviour/segfaults).

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

8 years agoqtdemux: Accumulate segments for edit lists before activating the next segment
Sebastian Dröge [Wed, 23 Sep 2015 18:59:00 +0000 (20:59 +0200)]
qtdemux: Accumulate segments for edit lists before activating the next segment

eceb2ccc739092d964d78945e19c2ecedbd214e2 broke segment seeks by always
accumulating segments manually when activating a segment. This is only
needed when handling edit lists, not when activating a segment because of a
seek. Do the accumulation when switching edit list segments instead.

This fixes segment seeks again, while keeping edit lists playback working.

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

8 years agospectrum: send phase values in the GstMessage for Phase info
Vikram Fugro [Wed, 23 Sep 2015 12:13:51 +0000 (17:43 +0530)]
spectrum: send phase values in the GstMessage for Phase info

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

8 years agomatroska-mux: Don't output a warning on MONO multiview mode.
Jan Schmidt [Mon, 21 Sep 2015 14:46:01 +0000 (00:46 +1000)]
matroska-mux: Don't output a warning on MONO multiview mode.

8 years agortptheoradepay: Fix memory leaks
Sebastian Rasmussen [Sat, 19 Sep 2015 15:02:18 +0000 (17:02 +0200)]
rtptheoradepay: Fix memory leaks

The same memory leaks were fixed in identical fashion for
vorbisdepay in 06efeff5d979576a252e5dae57f46d6445b1df12 in 2009.

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

8 years agortp{vorbis,theora}{pay,depay}: Cosmetic cleanup
Sebastian Rasmussen [Sat, 19 Sep 2015 15:04:07 +0000 (17:04 +0200)]
rtp{vorbis,theora}{pay,depay}: Cosmetic cleanup

* use g_list_free_full(), don't iterate elements maually when freeing
* call gst_rtp_*_pay_clear_packet(), don't duplicate its code
* use gst_buffer_unref() to clarify that it is buffers being released,
  instead of refering directly to gst_mini_object_unref()

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

8 years agortp{vorbis,theora}pay: Store headers in the packet buffers lists, not a NULL buffer
Sebastian Dröge [Sat, 19 Sep 2015 16:44:22 +0000 (18:44 +0200)]
rtp{vorbis,theora}pay: Store headers in the packet buffers lists, not a NULL buffer

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

8 years agoRelease 1.5.91
Sebastian Dröge [Fri, 18 Sep 2015 17:33:13 +0000 (19:33 +0200)]
Release 1.5.91

8 years agoUpdate .po files
Sebastian Dröge [Fri, 18 Sep 2015 17:23:57 +0000 (19:23 +0200)]
Update .po files

8 years agopo: Update translations
Sebastian Dröge [Fri, 18 Sep 2015 09:50:31 +0000 (11:50 +0200)]
po: Update translations

8 years agoavidemux: Fix taglist leak
Eunhae Choi [Thu, 17 Sep 2015 01:50:01 +0000 (10:50 +0900)]
avidemux: Fix taglist leak

gst_tag_list_insert() does not take ownership of the inserted taglist.

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

8 years agoaacparse: Skip LOAS AAC until a valid config is seen.
Jan Schmidt [Tue, 15 Sep 2015 21:05:36 +0000 (07:05 +1000)]
aacparse: Skip LOAS AAC until a valid config is seen.

It's normal when dropping into the middle of a stream to
not always have the config available immediately, so skip LOAS
until a valid config is seen without either setting invalid
caps or erroring out.

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

8 years agortpjitterbuffer: reset just a bit more upon flush_stop
Mark Nauwelaerts [Sun, 13 Sep 2015 13:41:38 +0000 (15:41 +0200)]
rtpjitterbuffer: reset just a bit more upon flush_stop

8 years agortpjitterbuffer: remove dead struct member
Mark Nauwelaerts [Sun, 13 Sep 2015 13:40:09 +0000 (15:40 +0200)]
rtpjitterbuffer: remove dead struct member

8 years agomultiudpsink: fix GError memory leak when hostname resolution fails
Vineeth TM [Fri, 11 Sep 2015 08:09:28 +0000 (17:09 +0900)]
multiudpsink: fix GError memory leak when hostname resolution fails

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

8 years agomatroskamux: drop HEADER flag from output buffers
Thiago Santos [Thu, 10 Sep 2015 18:26:54 +0000 (15:26 -0300)]
matroskamux: drop HEADER flag from output buffers

Drop HEADER flag from output buffers if they are not indeed
headers.

Fixes resending of headers in tcp connection handling

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

8 years agomatroskamux: fix matroskamux ! matroskademux
Tim-Philipp Müller [Thu, 10 Sep 2015 15:00:50 +0000 (16:00 +0100)]
matroskamux: fix matroskamux ! matroskademux

Don't carry over DISCONT flags from the input buffers to the
output buffer, or the demuxer might reset its state when it
receives the first data buffer just after parsing the simple
block header, and then expect sane data to follow.
Fixes matroskamux ! demux erroring out.

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

8 years agortsp: fix small README typo
Martin Kelly [Wed, 9 Sep 2015 19:51:40 +0000 (12:51 -0700)]
rtsp: fix small README typo

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

8 years agowavpackparse: set both pts and dts so baseparse doesn't make up wrong dts after seeks
Tim-Philipp Müller [Fri, 4 Sep 2015 18:45:37 +0000 (19:45 +0100)]
wavpackparse: set both pts and dts so baseparse doesn't make up wrong dts after seeks

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

8 years agoflacparse: set both pts and dts so baseparse doesn't make up wrong dts after a seek
Tim-Philipp Müller [Fri, 4 Sep 2015 18:34:41 +0000 (19:34 +0100)]
flacparse: set both pts and dts so baseparse doesn't make up wrong dts after a seek

flac contains the sample offset in the frame header, so after a seek
without index flacparse will know the exact position we landed on and
timestamp buffers accordingly. It only set the pts though, which means
the baseparse-set dts which was set to the seek position prevails, and
since the seek was based on an estimate, there's likely a discrepancy
between where we wanted to land and where we did land, so from here on
that dts/pts difference will be maintained, with dts possibly multiple
seconds ahead of pts, which is just wrong. The easiest way to fix this
is to just set both pts and dts based on the sample offset, but perhaps
parsed audio should just not have dts set at all.

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

8 years agodocs: remove properties and signals that no longer exist
Tim-Philipp Müller [Sun, 6 Sep 2015 15:33:02 +0000 (16:33 +0100)]
docs: remove properties and signals that no longer exist

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

8 years agoflvmux: Make the element count in arrays not include end
George Chriss [Fri, 11 Oct 2013 15:13:00 +0000 (15:13 +0000)]
flvmux: Make the element count in arrays not include end

One-line removal of tags_written++

This should fix rtmp output to crtmpserver, and hopefully
noone is expecting that the element count includes the end
element, as different bits of documentation say different
things about whether it should or not.

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

8 years agoflvmux: Store incoming bitrate tags and send in the metadata
Jan Schmidt [Wed, 29 Jul 2015 14:59:15 +0000 (00:59 +1000)]
flvmux: Store incoming bitrate tags and send in the metadata

Apparently the Microsoft Azure RTMP server requires that the
videodatarate and audiodatarate metadata be provided, so
set those, even if it's to 0. Use the actual input bitrate
tags if available.

8 years agortspsrc: Don't parse key data more than needed.
Jan Schmidt [Thu, 3 Sep 2015 14:06:29 +0000 (00:06 +1000)]
rtspsrc: Don't parse key data more than needed.

When an auxilliary streams are present in the SDP media,
there's no need to re-parse the SDP attributes multiple
times.

8 years agortspsrc: Fix SRTP + RTX, auth access, a leak, and an invalid memory access.
Jan Schmidt [Thu, 3 Sep 2015 10:56:55 +0000 (20:56 +1000)]
rtspsrc: Fix SRTP + RTX, auth access, a leak, and an invalid memory access.

In parse_keymgmt(), don't mutate the input string that's been passed
as const, especially since we might need the original value again if
the same key info applies to multiple streams (RTX, for example).

When a resource is 404, and we have auth info - retry with the auth
info the same as if we had receive unauthorised, in case the resource
isn't even visible until credentials are supplied.

Fix a memory leak handling Mikey data.

When generating a random keystring, don't overrun the 30 byte
buffer by generating 32 bytes into it.

8 years agoudpsrc: Fix build with GLib < 2.44
Sebastian Dröge [Fri, 4 Sep 2015 12:18:05 +0000 (15:18 +0300)]
udpsrc: Fix build with GLib < 2.44

G_IO_ERROR_CONNECTION_CLOSED was added in 2.44.

8 years agoudpsrc: Ignore G_IO_ERROR_CONNECTION_CLOSED when receiving data
Sebastian Dröge [Fri, 4 Sep 2015 09:01:52 +0000 (12:01 +0300)]
udpsrc: Ignore G_IO_ERROR_CONNECTION_CLOSED when receiving data

This happens on Windows if we use the same socket for sending packets,
and the remote sends ICMP port/host unreachable messages.

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

8 years agortpvorbis/theoradepay: Fix handling of fragmented packets
Sebastian Dröge [Wed, 2 Sep 2015 18:12:41 +0000 (21:12 +0300)]
rtpvorbis/theoradepay: Fix handling of fragmented packets

This was broken in b1089fb520 by not considering the full packet length of a
fragmented packet but only the length of the first one.

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

8 years agodtmfsrc: Reply to latency query
Olivier Crête [Tue, 1 Sep 2015 19:39:22 +0000 (15:39 -0400)]
dtmfsrc: Reply to latency query

8 years agotests: Fix rtpsession test failure
Olivier Crête [Mon, 31 Aug 2015 20:42:30 +0000 (16:42 -0400)]
tests: Fix rtpsession test failure

The time of the first RTCP packet is semi-random, so
sometimes it was produced before enough packets from
the second SSRC were received. First drop queued RTCP
packets, then advance the clock enough to ensure
that at least one new RTCP packet is produced.

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

8 years agolevel: improve the test for multi-channel mode
Stefan Sauer [Mon, 31 Aug 2015 11:56:04 +0000 (13:56 +0200)]
level: improve the test for multi-channel mode

Change the test to verify the read-index for multiple messages per buffer.
See https://bugzilla.gnome.org/show_bug.cgi?id=754144

8 years agomatroskademux: Align raw video frames to 32 bytes
Jan Alexander Steffens (heftig) [Mon, 31 Aug 2015 10:46:52 +0000 (12:46 +0200)]
matroskademux: Align raw video frames to 32 bytes

Outputting unaligned video frames causes videoscale et al to
crash when attempting SIMD-accelerated conversion.

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

8 years agolevel: fix level calculations for mutliple channels
Stefan Sauer [Wed, 26 Aug 2015 21:16:46 +0000 (23:16 +0200)]
level: fix level calculations for mutliple channels

This was broken with 7b90bf32150897a141a29a12ecab555d8c5b7fab.

8 years agosmpte: Fix memory leak
Ravi Kiran K N [Thu, 27 Aug 2015 04:58:55 +0000 (10:28 +0530)]
smpte: Fix memory leak

In gst_smpte_collected(), check upfront if input formats are same
or not. This avoids allocation of in1 and in2 buffers and
subsequent memory leak when input formats do not match.

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

8 years agotests: souphttpsrc: don't try to connect to dead radio server
Tim-Philipp Müller [Fri, 21 Aug 2015 10:52:19 +0000 (11:52 +0100)]
tests: souphttpsrc: don't try to connect to dead radio server

8 years agortspsrc: Trivial fix to check correct condition
Vineeth TM [Fri, 21 Aug 2015 07:29:16 +0000 (16:29 +0900)]
rtspsrc: Trivial fix to check correct condition

When checking for describe method, because of missing parentheses, wrong
condition is being checked, which will result in wrong behavior.

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

8 years agomatroska: read: fix tag list memory leak
Vineeth TM [Fri, 21 Aug 2015 04:19:02 +0000 (13:19 +0900)]
matroska: read: fix tag list memory leak

gst_toc_entry_merge_tags makes a new ref of the taglist, so it should
be unref'ed as soon as the tags are merged to the tocentry

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

8 years agowavpackdec: fix taglist memory leak
Vineeth TM [Fri, 21 Aug 2015 03:20:59 +0000 (12:20 +0900)]
wavpackdec: fix taglist memory leak

When passing the taglist to gst_audio_decoder_merge_tags, the reference is increased
by audiodecoder and the caller should free the taglist being passed.

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

8 years agov4l2transform: fix pad closing
Jean-Michel Hautbois [Thu, 20 Aug 2015 12:45:33 +0000 (14:45 +0200)]
v4l2transform: fix pad closing

Signed-off-by: Jean-Michel Hautbois <jean-michel.hautbois@veo-labs.com>
https://bugzilla.gnome.org/show_bug.cgi?id=753875

8 years agoRelease 1.5.90
Sebastian Dröge [Wed, 19 Aug 2015 10:29:53 +0000 (13:29 +0300)]
Release 1.5.90

8 years agoUpdate .po files
Sebastian Dröge [Wed, 19 Aug 2015 09:47:42 +0000 (12:47 +0300)]
Update .po files

8 years agopo: Update translations
Sebastian Dröge [Wed, 19 Aug 2015 08:29:55 +0000 (11:29 +0300)]
po: Update translations

8 years agomultifilesrc: fix regression with starting from index set via index property
Tim-Philipp Müller [Thu, 13 Aug 2015 16:29:58 +0000 (17:29 +0100)]
multifilesrc: fix regression with starting from index set via index property

When we haven't started yet, set the start_index when we set the index property,
so that we start at the right index position after the initial seek. The index
property was never really meant to be for writing, but it used to work, so let's
support it for backwards compatibility.

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

8 years agoqtdemux: fix offset calculation when parsing CENC aux info
Alex Ashley [Tue, 18 Aug 2015 09:52:11 +0000 (10:52 +0100)]
qtdemux: fix offset calculation when parsing CENC aux info

Commit 7d7e54ce6863ff53e188d0276d2651b65082ffdb added support for
DASH common encryption, however commit
bb336840c0b0b02fa18dc4437ce0ded3d9142801 that went onto master
shortly before the CENC commit caused the calculation of the CENC
aux info offset to be incorrect.

The base_offset was being added if present, but if the base_offset
is relative to the start of the moof, the offset was being added twice.
The correct approach is to calculate the offset from the start of the
moof and use that offset when parsing the CENC aux info.

8 years agoflacenc: actually return true for accept-caps query handling
Thiago Santos [Mon, 17 Aug 2015 17:28:24 +0000 (14:28 -0300)]
flacenc: actually return true for accept-caps query handling

8 years agortp: copy metadata in the (de)payloaders which is missed before
Hyunjun Ko [Mon, 17 Aug 2015 05:07:10 +0000 (14:07 +0900)]
rtp: copy metadata in the (de)payloaders which is missed before

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

8 years agodirectsoundsink: allow specifying audio playback device
Dustin Spicuzza [Sun, 16 Aug 2015 19:21:51 +0000 (15:21 -0400)]
directsoundsink: allow specifying audio playback device

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

8 years agoflacenc: remove single entry if from loop
Thiago Santos [Sun, 16 Aug 2015 16:51:47 +0000 (13:51 -0300)]
flacenc: remove single entry if from loop

Iterate from the 2nd channel on and create the 1 channel struct
outside to make loop structure simpler and only slightly faster.

8 years agoflacenc: implement proper accept-caps
Thiago Santos [Sun, 16 Aug 2015 16:21:41 +0000 (13:21 -0300)]
flacenc: implement proper accept-caps

Should just compare with what can be immediatelly accepted by
the element. flacenc can't renegotiate so if it has a caps already
it should only accept if it is that caps otherwise just use the
template caps

8 years agoflacenc: improve sink pad template caps
Thiago Santos [Sun, 16 Aug 2015 16:03:36 +0000 (13:03 -0300)]
flacenc: improve sink pad template caps

Removes the need for custom caps query handling and makes it more
correct from the beginning on the template. It is a bit uglier
to read because there is 1 entry per channel but makes code easier
to maintain.

8 years agoy4mencode: fix gst-launch version in documentation
Thiago Santos [Sun, 16 Aug 2015 15:41:56 +0000 (12:41 -0300)]
y4mencode: fix gst-launch version in documentation

8 years agoaudioencoders: use template subset check for accept-caps
Thiago Santos [Sun, 16 Aug 2015 01:32:21 +0000 (22:32 -0300)]
audioencoders: use template subset check for accept-caps

It is faster than doing a query that propagates downstream and
should be enough

Elements: speexenc, wavpackenc, mulawenc, alawenc

8 years agovideoencoders: use template subset check for accept-caps
Thiago Santos [Sun, 16 Aug 2015 01:29:41 +0000 (22:29 -0300)]
videoencoders: use template subset check for accept-caps

It is faster than doing a query that propagates downstream and
should be enough

Elements: jpegenc, pngenc, vp8enc, vp9enc, y4menc

8 years agompegaudioparse: use new baseparse API to fix tag handling
Tim-Philipp Müller [Sun, 16 Aug 2015 16:21:24 +0000 (17:21 +0100)]
mpegaudioparse: use new baseparse API to fix tag handling

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

8 years agoaudioparsers: use new base parse API to fix tag handling
Olivier Crête [Tue, 17 Mar 2015 21:50:37 +0000 (17:50 -0400)]
audioparsers: use new base parse API to fix tag handling

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

8 years agoflacparse: use new baseparse API and fix tag handling
Tim-Philipp Müller [Sun, 16 Aug 2015 13:37:53 +0000 (14:37 +0100)]
flacparse: use new baseparse API and fix tag handling

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

8 years agoqtdemux: Use signed integer type to be able to check for negative subtraction results
Sebastian Dröge [Sun, 16 Aug 2015 11:04:02 +0000 (13:04 +0200)]
qtdemux: Use signed integer type to be able to check for negative subtraction results

CID 1315829

8 years agortpvorbisdepay: remove dead code
Luis de Bethencourt [Sun, 16 Aug 2015 10:50:34 +0000 (11:50 +0100)]
rtpvorbisdepay: remove dead code

payload_buffer must be NULL in ignore_reserved. Check will always be false.

Introduced by b1089fb5207697ba26edb4ff66ed0f465c6df3cf

CID #1316476

8 years agoalawenc: port to AudioEncoder base class
Thiago Santos [Sun, 16 Aug 2015 01:45:53 +0000 (22:45 -0300)]
alawenc: port to AudioEncoder base class

8 years agoaudiodecoders: use default pad accept-caps handling
Thiago Santos [Sat, 15 Aug 2015 12:16:23 +0000 (09:16 -0300)]
audiodecoders: use default pad accept-caps handling

Avoids useless check of downstream caps when handling an
accept-caps query

Elements: flacdec, speexdec, wavpackdec, mulawdec, alawdec

8 years agovideodecoders: use default pad accept-caps handling
Thiago Santos [Sat, 15 Aug 2015 11:49:57 +0000 (08:49 -0300)]
videodecoders: use default pad accept-caps handling

Avoids useless check of downstream caps when handling an
accept-caps query

Elements: jpegdec, pngdec, vp8dec, vp9dec

8 years agoalawdec: make error handling a bit nicer
Thiago Santos [Sat, 15 Aug 2015 14:31:04 +0000 (11:31 -0300)]
alawdec: make error handling a bit nicer

Print the element along with the debug to make it easier to trace
the failures

8 years agoalawdec: port to audiodecoder base class
Thiago Santos [Sat, 15 Aug 2015 14:04:16 +0000 (11:04 -0300)]
alawdec: port to audiodecoder base class

mulawdec was already ported, alawdec was left behind.

8 years agoqtdemux: only look for more samples in moofs in pull-mode
Thiago Santos [Sat, 15 Aug 2015 13:34:14 +0000 (10:34 -0300)]
qtdemux: only look for more samples in moofs in pull-mode

For playback of some fragmented formats with qtdemux it will
try to look for the next moof after finishing one but it is only
possible for pull-mode. For playback of streaming fragmented formats
such as DASH it should just not try to look for another moof but
instead wait for more data.

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

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

8 years agodcaparse: Don't look for a second syncword
Sebastian Dröge [Sat, 15 Aug 2015 10:58:50 +0000 (12:58 +0200)]
dcaparse: Don't look for a second syncword

There are streams out there that consistently contain garbage between
every frame so we never ever find a second consecutive syncword.

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

8 years agovp8enc, vp9enc: reset multipass file index when stopping encoder
Tim-Philipp Müller [Sat, 15 Aug 2015 10:12:05 +0000 (11:12 +0100)]
vp8enc, vp9enc: reset multipass file index when stopping encoder

Fixes multipass encoding when re-using the same element/pipeline
for subsequent encoding runs.

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

8 years agovp9enc: provide support for multiple pass cache files
Tim-Philipp Müller [Sat, 15 Aug 2015 10:09:42 +0000 (11:09 +0100)]
vp9enc: provide support for multiple pass cache files

Some files may provide different caps insight of one stream. Since
vp9enc support caps reinit, we should support cache reinit too.
If more then file cache file will be created, the naming will be:
cache cache.1 cache.2 ...

Based on patch by: Oleksij Rempel <linux@rempel-privat.de>

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

8 years agotests: aacparse: use caps query instead of accept-caps
Thiago Santos [Fri, 14 Aug 2015 14:41:42 +0000 (11:41 -0300)]
tests: aacparse: use caps query instead of accept-caps

The accept-caps query just does a shallow check at the current
element while at this test we want it to also look at downstream.
So use caps query there.

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

8 years agoaudioparsers: enable accept-template flag
Thiago Santos [Fri, 14 Aug 2015 14:40:22 +0000 (11:40 -0300)]
audioparsers: enable accept-template flag

Do a quick check with the pad template caps as it is enough. Users
should have figured the appropriate full caps on a previous caps query

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

8 years agortspsrc: send the User-Agent header
George Kiagiadakis [Fri, 14 Aug 2015 13:46:53 +0000 (15:46 +0200)]
rtspsrc: send the User-Agent header

Sometimes it is useful to know this information on the
server side. Other popular implementations (vlc, ffmpeg, ...)
also send this header on every message.

This includes a new "user-agent" property that the user
can set to use a custom User-Agent string. The default
is "GStreamer/<version>"

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

8 years agortspsrc: wrap gst_rtsp_message_init_request in a local function
George Kiagiadakis [Fri, 14 Aug 2015 13:42:42 +0000 (15:42 +0200)]
rtspsrc: wrap gst_rtsp_message_init_request in a local function

This will allow adding common request initialization, like the
user agent string, in just one place.

8 years agoaudioecho: make sure buffer gets reallocated if max_delay changes
Prashant Gotarne [Fri, 14 Aug 2015 04:06:09 +0000 (09:36 +0530)]
audioecho: make sure buffer gets reallocated if max_delay changes

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

8 years agovp8enc: provide support for multiple pass cache files
Oleksij Rempel [Thu, 9 Jul 2015 07:51:26 +0000 (09:51 +0200)]
vp8enc: provide support for multiple pass cache files

Some files may provide different caps insight of one stream. Since vp8enc
support caps reinit, we should support cache reinit too.
If more then file cache file will be created, the naming will be:
cache
cache.1
cache.2
...

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

8 years agortpmp4gdepay: fix timestamps for RTP packets with multiple AUs
Ramiro Polla [Wed, 15 Apr 2015 20:51:51 +0000 (22:51 +0200)]
rtpmp4gdepay: fix timestamps for RTP packets with multiple AUs

Use constantDuration to calculate the timestamp of non-first AU in the
RTP packet.

If constantDuration is not present in the MIME parameters, its value
must be calculated based on the timing information from two consecutive
RTP packets with AU-Index equal to 0.

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

8 years agosouphttpsrc: remove unnecessary if, g_free is null safe
Thiago Santos [Fri, 14 Aug 2015 09:43:13 +0000 (06:43 -0300)]
souphttpsrc: remove unnecessary if, g_free is null safe

8 years agosouphttpsrc: add property to set HTTP method
Alex Ashley [Fri, 14 Aug 2015 07:33:56 +0000 (08:33 +0100)]
souphttpsrc: add property to set HTTP method

To allow souphttpsrc to be use HTTP methods other than GET
(e.g. HEAD), add a "method" property that is a string. If this
property is not set, GET is used.

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

8 years agocheck: Rename states unit test
Edward Hervey [Fri, 14 Aug 2015 09:13:01 +0000 (11:13 +0200)]
check: Rename states unit test

Makes it easier to differentiate from other modules states unit test

8 years agogoom: Rename get_type() function of base class to prevent symbol conflicts
Sebastian Dröge [Fri, 14 Aug 2015 07:21:25 +0000 (09:21 +0200)]
goom: Rename get_type() function of base class to prevent symbol conflicts

This is a problem when statically linking.

8 years agortpjitterbuffer: Keep the DTS estimate if we got no DTS after a jitterbuffer reset
Sebastian Dröge [Thu, 13 Aug 2015 14:32:55 +0000 (16:32 +0200)]
rtpjitterbuffer: Keep the DTS estimate if we got no DTS after a jitterbuffer reset

Otherwise we will just output buffers without timestamps after a reset if no
timestamps are provided by upstream, e.g. when using RTSP over TCP.

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

8 years agomatroska: Remove unused variable
Ravi Kiran K N [Wed, 12 Aug 2015 11:46:01 +0000 (17:16 +0530)]
matroska: Remove unused variable

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

8 years agortp: Copy metadata in the (de)payloader, but only the relevant ones
Sebastian Dröge [Tue, 4 Aug 2015 17:59:17 +0000 (20:59 +0300)]
rtp: Copy metadata in the (de)payloader, but only the relevant ones

The payloader didn't copy anything so far, the depayloader copied every
possible meta. Let's make it consistent and just copy all metas without
tags or with only the video tag.

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

8 years agoqtdemux: fix small typo in comment
Thiago Santos [Mon, 10 Aug 2015 21:20:15 +0000 (18:20 -0300)]
qtdemux: fix small typo in comment

8 years agogoom2k1/doc: Fixup previous commit
Nicolas Dufresne [Mon, 10 Aug 2015 20:19:18 +0000 (16:19 -0400)]
goom2k1/doc: Fixup previous commit