platform/upstream/gst-plugins-good.git
10 years agov4l2: fix probing and enumeration of stepwise frame sizes
Tim-Philipp Müller [Mon, 30 Jun 2014 09:29:54 +0000 (10:29 +0100)]
v4l2: fix probing and enumeration of stepwise frame sizes

The code enumerating STEPWISE framesizes would start from
(min_w, min_h) and then add (step_w, step_h) to get the
next framesize. However, it should really allow any width
from min_w to max_w with step_w and same for heights.
Secondly, we would add and probe each individual stepped
frame size to the caps as separate structure, which would
lead to hundreds if not thousands of structs ending up in
the probed caps. Use integer ranges with steps instead.

This was particularly noticable with the Raspberry Pi Cam.

https://bugzilla.gnome.org/show_bug.cgi?id=724521
https://bugzilla.gnome.org/show_bug.cgi?id=732458
https://bugzilla.gnome.org/show_bug.cgi?id=726521

10 years agov4l2object: drop workaround for misbehaving TRY_FMT
Daniel Drake [Fri, 27 Jun 2014 10:33:06 +0000 (11:33 +0100)]
v4l2object: drop workaround for misbehaving TRY_FMT

This workaround from 2011 was causing 25 S_FMT ioctls to be sent
to my UVC webcam from under gst_v4l2_object_get_caps as it probes
all the formats. In total, this adds up to about 5 seconds of
execution time, or a 10 second delay while starting up cheese.

These ioctls come from a workaround from 2011 where TRY_FMT might
make changes to hardware settings, so S_FMT was used to restore
the original config:
https://bugzilla.gnome.org/show_bug.cgi?id=649067

The driver bug is now assumed fixed. Remove the workaround to fix the
long startup delay.

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

10 years agovideomixer: reset QoS on segment event
Vincent Penquerc'h [Tue, 1 Jul 2014 11:50:31 +0000 (12:50 +0100)]
videomixer: reset QoS on segment event

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

10 years agomatroskademux: send gap events instead of segment tricks
Vincent Penquerc'h [Tue, 1 Jul 2014 14:14:34 +0000 (15:14 +0100)]
matroskademux: send gap events instead of segment tricks

This fixes missing frames from being time skipped.

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

10 years agortpsession: Fix memory leaks in unit test
Sebastian Dröge [Sun, 29 Jun 2014 22:00:32 +0000 (00:00 +0200)]
rtpsession: Fix memory leaks in unit test

10 years agortpbin: Don't leak caps
Sebastian Dröge [Sun, 29 Jun 2014 21:55:19 +0000 (23:55 +0200)]
rtpbin: Don't leak caps

10 years agopulsesrc: Fix compiler warning when compiling with G_DISABLE_ASSERT
Sebastian Dröge [Sun, 29 Jun 2014 18:02:14 +0000 (20:02 +0200)]
pulsesrc: Fix compiler warning when compiling with G_DISABLE_ASSERT

10 years agortpssrcdemux: Fix compiler warning when compiling with G_DISABLE_ASSERT
Sebastian Dröge [Sun, 29 Jun 2014 17:59:53 +0000 (19:59 +0200)]
rtpssrcdemux: Fix compiler warning when compiling with G_DISABLE_ASSERT

10 years agomatroskamux: Fix compiler warnings when compiling with G_DISABLE_ASSERT
Sebastian Dröge [Sun, 29 Jun 2014 17:57:57 +0000 (19:57 +0200)]
matroskamux: Fix compiler warnings when compiling with G_DISABLE_ASSERT

10 years agodeinterlace: Fix compiler warnings when compiling with G_DISABLE_ASSERT
Sebastian Dröge [Sun, 29 Jun 2014 17:54:44 +0000 (19:54 +0200)]
deinterlace: Fix compiler warnings when compiling with G_DISABLE_ASSERT

10 years agopulse: fix compiler warnings when compiling with -DG_DISABLE_ASSERT
Tim-Philipp Müller [Sun, 29 Jun 2014 16:05:13 +0000 (17:05 +0100)]
pulse: fix compiler warnings when compiling with -DG_DISABLE_ASSERT

Compiler complains about uninitialised variables in the impossible
'default' code path in device provider source/sink switch-case.

10 years agov4l2: fix compiler warnings when compiling with -DG_DISABLE_ASSERT
Tim-Philipp Müller [Sun, 29 Jun 2014 16:03:17 +0000 (17:03 +0100)]
v4l2: fix compiler warnings when compiling with -DG_DISABLE_ASSERT

Compiler complains about uninitialised variables in the impossible
'default' code path in device provider source/sink switch-case.

10 years agotests: matroskaparse: fail on errors and disable pull mode test
Tim-Philipp Müller [Sat, 28 Jun 2014 16:40:45 +0000 (17:40 +0100)]
tests: matroskaparse: fail on errors and disable pull mode test

Actually look for error messages on the bus and fail if there
is one before the EOS message. Disable pull mode test which is
pointless as long as matroskaparse only supports push mode
(pull mode support has not been ported over to 1.0).

10 years agomatroskaparse: don't error out if there's not enough data in the adapter
Tim-Philipp Müller [Sat, 28 Jun 2014 16:37:23 +0000 (17:37 +0100)]
matroskaparse: don't error out if there's not enough data in the adapter

gst_matroska_parse_take() would return FLOW_ERROR instead of
FLOW_EOS in case there's less data in the adapter than requested,
because buffer is NULL in that case which triggers the error
code path. This made the unit test fail (occasionally at least,
because of a bug in the unit test there's a race and it would
happen only sporadically).

10 years agovideomixer: Update dist generated ORC files
Sebastian Dröge [Sat, 28 Jun 2014 14:53:58 +0000 (16:53 +0200)]
videomixer: Update dist generated ORC files

10 years agovideomixer: Update videoconvert code from -base
Sebastian Dröge [Sat, 28 Jun 2014 14:48:13 +0000 (16:48 +0200)]
videomixer: Update videoconvert code from -base

And also rename the remaining symbols to prevent conflicts
during static linking.

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

10 years agoautovideosrc: use videotestsrc as fallback element instead of fakesrc
Tim-Philipp Müller [Sat, 28 Jun 2014 12:01:46 +0000 (13:01 +0100)]
autovideosrc: use videotestsrc as fallback element instead of fakesrc

fakesrc doesn't announce video caps, so most video pipelines will
just error out with not-negotiated if a fallback element is created.

10 years agoautoaudiosrc: use audiotestsrc as fallback element instead of fakesrc
Tim-Philipp Müller [Sat, 28 Jun 2014 11:44:31 +0000 (12:44 +0100)]
autoaudiosrc: use audiotestsrc as fallback element instead of fakesrc

fakesrc doesn't announce audio caps, so most audio pipelines will
just error out with not-negotiated if a fallback element is created.

10 years agoRelease 1.3.90 1.3.90
Sebastian Dröge [Sat, 28 Jun 2014 09:21:15 +0000 (11:21 +0200)]
Release 1.3.90

10 years agoUpdate .po files
Sebastian Dröge [Sat, 28 Jun 2014 09:08:33 +0000 (11:08 +0200)]
Update .po files

10 years agoRename GstDeviceMonitor to GstDeviceProvider
Olivier Crête [Thu, 26 Jun 2014 18:52:57 +0000 (14:52 -0400)]
Rename GstDeviceMonitor to GstDeviceProvider

10 years agovideobox: Add unit test
Ravi Kiran K N [Tue, 24 Jun 2014 03:44:40 +0000 (09:14 +0530)]
videobox: Add unit test

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

10 years agovideomixer: Declare as Compositor in 'klass'
Thibault Saunier [Mon, 16 Jun 2014 09:35:39 +0000 (11:35 +0200)]
videomixer: Declare as Compositor in 'klass'

10 years agoflvdemux: fix speex caps
Tim-Philipp Müller [Thu, 26 Jun 2014 12:50:19 +0000 (13:50 +0100)]
flvdemux: fix speex caps

Decoder complains about "notification: Invalid mode encountered.
The stream is corrupted" though, even if it works, so there's
probably something wrong with the generated codec headers.

10 years agoflvmux: fix speex in FLV
Tim-Philipp Müller [Thu, 26 Jun 2014 12:43:33 +0000 (13:43 +0100)]
flvmux: fix speex in FLV

Speex in FLV is always mono @ 16kHz, see
http://download.macromedia.com/f4v/video_file_format_spec_v10_1.pdf
section E.4.2.1: "If the SoundFormat indicates Speex, the audio is
compressed mono sampled at 16 kHz, the SoundRate shall be 0, the
SoundSize shall be 1, and the SoundType shall be 0"

Also see https://bugzilla.gnome.org/show_bug.cgi?id=683622

10 years agoisomp4: Add object type id and fourcc for DTS/DTS-HD
Jan Schmidt [Wed, 25 Jun 2014 19:19:57 +0000 (05:19 +1000)]
isomp4: Add object type id and fourcc for DTS/DTS-HD

Enables playback for files with DTS audio tracks.
Also add an extra AC-3 variant fourcc from Nero

10 years agovideomixer2: Solve segmentation fault when src caps are configured
David Fernandez [Thu, 13 Mar 2014 09:35:30 +0000 (10:35 +0100)]
videomixer2: Solve segmentation fault when src caps are configured

Change function pointers to NULL while holding the lock to avoid
race conditions

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

10 years agojitterbuffer: improve SR packet handling
Wim Taymans [Wed, 25 Jun 2014 12:34:21 +0000 (14:34 +0200)]
jitterbuffer: improve SR packet handling

Implement 3 different cases for handling the SR:

 1) we don't have enough timing information to handle the SR packet and
    we need to wait a little for more RTP packets. In that case we keep
    the SR packet around and retry when we get an RTP packet in the
    chain function.

 2) the SR packet has a too old timestamp and should be discarded. It is
    labeled invalid and the last_sr is cleared.

 3) the SR packet is ok and there is enough timing information, proceed
    with processing the SR packet.

Before this patch, case 2) and 1) were handled in the same way,
resulting that SR packets with too old timestamps were checked over and
over again for each RTP packet.

10 years agotests: add udpsink test to check client add/remove
Tim-Philipp Müller [Tue, 24 Jun 2014 09:47:33 +0000 (10:47 +0100)]
tests: add udpsink test to check client add/remove

10 years agotests: port udpsink tests to 1.0
Tim-Philipp Müller [Mon, 23 Jun 2014 15:13:27 +0000 (16:13 +0100)]
tests: port udpsink tests to 1.0

They all seem a bit pointless though.

10 years agoavimux: Add UYVY format
Olivier Crête [Mon, 23 Jun 2014 23:55:29 +0000 (19:55 -0400)]
avimux: Add UYVY format

10 years agogstrtpssrcdemux: manage ssrc of RTCP RR packets
Miguel París Díaz [Fri, 6 Jun 2014 09:20:21 +0000 (11:20 +0200)]
gstrtpssrcdemux: manage ssrc of RTCP RR packets

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

10 years agowavparse: Update offset after parsing adtl chunk
Sebastian Dröge [Mon, 23 Jun 2014 18:53:50 +0000 (20:53 +0200)]
wavparse: Update offset after parsing adtl chunk

Otherwise we will parse it over and over again without ever
getting past it.

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

10 years agoosxvideosink: remove legacy code for passing a window handle
Andoni Morales Alastruey [Sun, 7 Jul 2013 18:18:27 +0000 (20:18 +0200)]
osxvideosink: remove legacy code for passing a window handle

"have-ns-view" and the "embed" property was kept in 0.10 for
backwards compatibility but it's no longer used in favor of
the GstVideoOverlay interface

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

10 years agoBack to development
Sebastian Dröge [Sun, 22 Jun 2014 17:36:14 +0000 (19:36 +0200)]
Back to development

10 years agomatroskademux: Don't call GST_DEBUG_OBJECT() and other macros with non-GObject objects
Sebastian Dröge [Sun, 22 Jun 2014 17:26:03 +0000 (19:26 +0200)]
matroskademux: Don't call GST_DEBUG_OBJECT() and other macros with non-GObject objects

It will crash with latest GLib GIT and was never supposed to work before
either.

10 years agoRelease 1.3.3 1.3.3
Sebastian Dröge [Sun, 22 Jun 2014 16:08:03 +0000 (18:08 +0200)]
Release 1.3.3

10 years agoUpdate .po files
Sebastian Dröge [Sun, 22 Jun 2014 15:36:28 +0000 (17:36 +0200)]
Update .po files

10 years agopo: Update translations
Sebastian Dröge [Sun, 22 Jun 2014 12:24:24 +0000 (14:24 +0200)]
po: Update translations

10 years agopulse, v4l2: update for device "klass" -> "device-class" rename
Tim-Philipp Müller [Sat, 21 Jun 2014 00:32:03 +0000 (01:32 +0100)]
pulse, v4l2: update for device "klass" -> "device-class" rename

10 years agomultiudpsink: optimisation: avoid unnecessary memory ref/unrefs
Tim-Philipp Müller [Fri, 20 Jun 2014 11:21:05 +0000 (12:21 +0100)]
multiudpsink: optimisation: avoid unnecessary memory ref/unrefs

We know the buffer will stay valid and we will also not
modify the buffer, we just want to send out the data.

10 years agomultiudpsink: avoid some unnecessary run-time type checks
Tim-Philipp Müller [Thu, 19 Jun 2014 13:59:48 +0000 (14:59 +0100)]
multiudpsink: avoid some unnecessary run-time type checks

10 years agortspsrc: pass the stream id when asking for crypto params
Wim Taymans [Thu, 19 Jun 2014 14:17:23 +0000 (16:17 +0200)]
rtspsrc: pass the stream id when asking for crypto params

This way the app can choose different parameters for each stream.

10 years agortspsrc: add support for key length parameters
Aleix Conchillo Flaqué [Tue, 20 May 2014 21:58:07 +0000 (14:58 -0700)]
rtspsrc: add support for key length parameters

This patch adds supports for the incoming key management parameters for
encryption and authentication key lengths.

It also adds a new signal request-rtcp-key that allows the user to
provide the crypto parameters and key for the RTCP stream.

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

10 years agovp8depay: fix header size checking
Wim Taymans [Thu, 19 Jun 2014 13:25:01 +0000 (15:25 +0200)]
vp8depay: fix header size checking

Use a different variable name to make it clear that we are calculating
the header size.
Correctly check that we have enough bytes to read the header bits. We
were checking if there were 5 bytes available in the header while we
only needed 3, causing the packet to be discarded as too small.

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

10 years agortph264pay: propagate the GST_BUFFER_FLAG_DISCONT flag
Guillaume Desmottes [Tue, 20 May 2014 10:39:31 +0000 (12:39 +0200)]
rtph264pay: propagate the GST_BUFFER_FLAG_DISCONT flag

Similarly to what we did with the DELTA_UNIT flag, this patch
propagates the DISCONT flag to the first RTP packet being used to transfer a
DISCONT buffer.

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

10 years agortph264pay: propagate the GST_BUFFER_FLAG_DELTA_UNIT flag
Guillaume Desmottes [Tue, 6 May 2014 15:42:14 +0000 (17:42 +0200)]
rtph264pay: propagate the GST_BUFFER_FLAG_DELTA_UNIT flag

Downstream elements may be interested knowing if a RTP packet is the start
of a key frame (to implement a RTP extension as defined in the
ONVIF Streaming Spec for example).

We do this by checking the GST_BUFFER_FLAG_DELTA_UNIT flag we receive from
upstream and propagate it to the *first* RTP packet outputted to transfer this
buffer.

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

10 years agogstrtpmp4gpay: propagate the GST_BUFFER_FLAG_DISCONT flag
Guillaume Desmottes [Tue, 20 May 2014 11:58:20 +0000 (13:58 +0200)]
gstrtpmp4gpay: propagate the GST_BUFFER_FLAG_DISCONT flag

Propagate the DISCONT flag to the first RTP packet being used to transfer
a DISCONT buffer.

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

10 years agortpjpegpay: propagate the GST_BUFFER_FLAG_DISCONT flag
Guillaume Desmottes [Tue, 20 May 2014 11:58:20 +0000 (13:58 +0200)]
rtpjpegpay: propagate the GST_BUFFER_FLAG_DISCONT flag

Propagate the DISCONT flag to the first RTP packet being used to transfer
a DISCONT buffer.

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

10 years agoavidemux: don't leak flow combiner
Tim-Philipp Müller [Wed, 18 Jun 2014 14:03:25 +0000 (15:03 +0100)]
avidemux: don't leak flow combiner

10 years agortpjp2kpay: pre-allocate buffer-list of the right size
Tim-Philipp Müller [Wed, 18 Jun 2014 13:38:55 +0000 (14:38 +0100)]
rtpjp2kpay: pre-allocate buffer-list of the right size

10 years agortpjpegpay: pre-allocate buffer list of the right size
Tim-Philipp Müller [Wed, 18 Jun 2014 13:34:09 +0000 (14:34 +0100)]
rtpjpegpay: pre-allocate buffer list of the right size

10 years agortpmp4vpay: pre-allocate buffer list of the right size
Tim-Philipp Müller [Wed, 18 Jun 2014 13:19:28 +0000 (14:19 +0100)]
rtpmp4vpay: pre-allocate buffer list of the right size

10 years agortpvp8pay: allocate bitreader on the stack
Tim-Philipp Müller [Wed, 18 Jun 2014 12:44:31 +0000 (13:44 +0100)]
rtpvp8pay: allocate bitreader on the stack

10 years agortpvp8pay: post error message on bus on error and don't use g_message()
Tim-Philipp Müller [Wed, 18 Jun 2014 12:29:47 +0000 (13:29 +0100)]
rtpvp8pay: post error message on bus on error and don't use g_message()

10 years agortpvp8pay: couple of minor optimisations
Tim-Philipp Müller [Wed, 18 Jun 2014 12:20:44 +0000 (13:20 +0100)]
rtpvp8pay: couple of minor optimisations

Pre-allocate buffer list of the right size to avoid re-allocs.
Avoid plenty of double runtime cast checks and re-doing the
same calculation over and over again in rtp_vp8_calc_payload_len().
Only call gst_buffer_get_size() once.

10 years agortpgstpay: pre-allocate buffer list of the right size
Tim-Philipp Müller [Wed, 18 Jun 2014 07:10:03 +0000 (08:10 +0100)]
rtpgstpay: pre-allocate buffer list of the right size

To avoid re-allocs.

10 years agortph264pay: pre-allocate bufferlist of the right size
Tim-Philipp Müller [Wed, 18 Jun 2014 06:52:05 +0000 (07:52 +0100)]
rtph264pay: pre-allocate bufferlist of the right size

To avoid unnecessary re-allocs.

10 years agortph264pay: push single buffer directly, no need to wrap it in a bufferlist
Tim-Philipp Müller [Mon, 16 Jun 2014 19:15:43 +0000 (20:15 +0100)]
rtph264pay: push single buffer directly, no need to wrap it in a bufferlist

No point in a buffer list if we just have one single
buffer to push. Fix up unit test to handle that case
as well.

10 years agortpvrawpay: make chunks per frame configurable
Tim-Philipp Müller [Mon, 16 Jun 2014 14:35:12 +0000 (15:35 +0100)]
rtpvrawpay: make chunks per frame configurable

Bit of a misnomer because it's really chunks per field
and not per frame, but we're going to ignore that for
the time being.

10 years agortpvrawpay: remove unused variables
Tim-Philipp Müller [Mon, 16 Jun 2014 13:52:16 +0000 (14:52 +0100)]
rtpvrawpay: remove unused variables

10 years agortpvrawpay: pre-allocate buffer lists of sufficient size
Tim-Philipp Müller [Mon, 16 Jun 2014 13:44:27 +0000 (14:44 +0100)]
rtpvrawpay: pre-allocate buffer lists of sufficient size

Avoids unnecessary reallocs when appending buffers
to the bufferlist.

10 years agortpvrawpay: micro-optimise variable access in inner loop
Tim-Philipp Müller [Mon, 16 Jun 2014 12:51:03 +0000 (13:51 +0100)]
rtpvrawpay: micro-optimise variable access in inner loop

Store some values that don't change during the execution
of the inner loops locally, so the compiler knows that too.

10 years agortpvrawpay: use buffer lists
Tim-Philipp Müller [Mon, 16 Jun 2014 12:38:47 +0000 (13:38 +0100)]
rtpvrawpay: use buffer lists

Collect buffers to send out in buffer lists instead of
pushing out single buffers one at a time. For HD video
each frame might easily add up to a couple of thousand
packets, multiply that by the frame rate and that's a
lot of push() and sendmsg() calls per second.

A good reason to push out buffers as early as possible is
latency, so we don't accumulate the whole frame in a single
buffer list, but instead push it out in a few chunks, which
is hopefully a reasonable compromise.

10 years agoudp: improve element descriptions for dynudpsink and multiudpsink
Tim-Philipp Müller [Mon, 16 Jun 2014 15:40:07 +0000 (16:40 +0100)]
udp: improve element descriptions for dynudpsink and multiudpsink

10 years agoudp: remove suppression of compiler warnings for deprecated GLib API
Tim-Philipp Müller [Mon, 16 Jun 2014 15:17:16 +0000 (16:17 +0100)]
udp: remove suppression of compiler warnings for deprecated GLib API

Not needed any more.

10 years agovideobox: Fix caps negotiation issue
Ravi Kiran K N [Tue, 17 Jun 2014 07:46:27 +0000 (13:16 +0530)]
videobox: Fix caps negotiation issue

Make sure that if AYUV is received it will detect that it can produce
both RGB and YUV formats

Signed-off-by: Ravi Kiran K N <ravi.kiran@samsung.com>
https://bugzilla.gnome.org/show_bug.cgi?id=725248

10 years agortptheoradepay: fix double frees
Tim-Philipp Müller [Mon, 16 Jun 2014 11:02:41 +0000 (12:02 +0100)]
rtptheoradepay: fix double frees

Fix double-frees introduced to fix another coverity report.

CID 1223053

10 years agodynudpsink: return FLUSHING when sendto got canceled, not an error
Tim-Philipp Müller [Fri, 13 Jun 2014 09:12:07 +0000 (10:12 +0100)]
dynudpsink: return FLUSHING when sendto got canceled, not an error

10 years agooss: simplify probed caps before returning them
Tim-Philipp Müller [Fri, 13 Jun 2014 08:52:03 +0000 (09:52 +0100)]
oss: simplify probed caps before returning them

Exposes all formats in the first structure if the
rest is the same for all of them.

10 years agooss: make sure 16-bit formats are before 8-bit formats in probed caps
Tim-Philipp Müller [Fri, 13 Jun 2014 08:45:28 +0000 (09:45 +0100)]
oss: make sure 16-bit formats are before 8-bit formats in probed caps

Probe supported formats in order of desirability rather than in
what order they may happen to be in the formats bitmask. Fixes
accidentally exposure of 8-bit formats in caps before 16-bit formats
(in case where U16 was not supported S8 might be listed before S16).

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

10 years agov4l2bufferpool: Cleanly handle v4l2_allocator_new failure
Nicolas Dufresne [Thu, 12 Jun 2014 20:36:24 +0000 (16:36 -0400)]
v4l2bufferpool: Cleanly handle v4l2_allocator_new failure

10 years agortptheordepay: fix leaks
Vincent Penquerc'h [Thu, 12 Jun 2014 10:24:15 +0000 (11:24 +0100)]
rtptheordepay: fix leaks

Coverity 1212163

10 years agortpg729pay: leak fixes
Vincent Penquerc'h [Thu, 12 Jun 2014 10:16:08 +0000 (11:16 +0100)]
rtpg729pay: leak fixes

Coverity 1212159

10 years agortph263pay: fix leak
Vincent Penquerc'h [Thu, 12 Jun 2014 10:11:38 +0000 (11:11 +0100)]
rtph263pay: fix leak

Coverity 1212157

10 years agortph263pay: fix leaks
Vincent Penquerc'h [Thu, 12 Jun 2014 09:43:53 +0000 (10:43 +0100)]
rtph263pay: fix leaks

Coverity 1212149

10 years agortpdvpay: catch failures to map buffer
Vincent Penquerc'h [Thu, 12 Jun 2014 09:31:47 +0000 (10:31 +0100)]
rtpdvpay: catch failures to map buffer

Coverity 1139741

10 years agomultipartdemux: guard against having no MIME type
Vincent Penquerc'h [Wed, 11 Jun 2014 16:43:42 +0000 (17:43 +0100)]
multipartdemux: guard against having no MIME type

The code would previously crash trying to insert a NULL string
into a hash table.
It does seem a little broken that indexing is done by MIME type
and not by index though, unless the spec says there cannot be
two parts with the same MIME type.

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

10 years agomultipartdemux: Send stream-start event
Nicolas Dufresne [Tue, 10 Jun 2014 19:42:14 +0000 (15:42 -0400)]
multipartdemux: Send stream-start event

This event was not sent. Send it before caps, this requires the pad to
be parented. This removes warning like: "Got data flow before
stream-start event".

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

10 years agoqtdemux: avoid looping indefinitely in broken svq3 files
Thiago Santos [Tue, 10 Jun 2014 18:33:33 +0000 (15:33 -0300)]
qtdemux: avoid looping indefinitely in broken svq3 files

Abort if an atom with size 0 is read from within the svq3 stsd
atoms

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

10 years agoflacdec: add const where appropriate
Vincent Penquerc'h [Tue, 10 Jun 2014 09:52:23 +0000 (10:52 +0100)]
flacdec: add const where appropriate

10 years agospeexenc: add missing va_end in variadic function
Edward Hervey [Mon, 9 Jun 2014 08:39:20 +0000 (10:39 +0200)]
speexenc: add missing va_end in variadic function

Coverity 1139944

10 years agoflvdemux: Attempt upstream seek first
Edward Hervey [Mon, 9 Jun 2014 08:04:38 +0000 (10:04 +0200)]
flvdemux: Attempt upstream seek first

If we have an upstream element that can handle the seek (such as
rtmpsrc), try to do that first before attempting it ourself.

10 years agowavparse: do not include codec_data on raw audio caps
Vincent Penquerc'h [Wed, 4 Jun 2014 10:34:27 +0000 (11:34 +0100)]
wavparse: do not include codec_data on raw audio caps

If the wav header contains an extended chunk, we want to keep
the codec_data field, but not for raw audio.

This fixes some elements (such as adder) from failing to intersect
raw audio caps which would otherwise be intersectable.

10 years agoflvdemux: Query duration upstream first
Edward Hervey [Thu, 5 Jun 2014 07:38:29 +0000 (09:38 +0200)]
flvdemux: Query duration upstream first

Upstream elements (like rtmpsrc) might be able to provide the duration
more accurately than flvdemux. Especially with index-less vod files

10 years agov4l2bufferpool: Cleanup poll method and retry on EINTR/EAGAIN
Nicolas Dufresne [Fri, 30 May 2014 23:37:57 +0000 (19:37 -0400)]
v4l2bufferpool: Cleanup poll method and retry on EINTR/EAGAIN

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

10 years agoflvdemux: set RESYNC buffer flag when bridging large PTS gaps
Jan Alexander Steffens (heftig) [Thu, 6 Mar 2014 15:37:51 +0000 (16:37 +0100)]
flvdemux: set RESYNC buffer flag when bridging large PTS gaps

So downstream gets notified when this happens.

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

10 years agortprtx: Reset state on each iteration
Olivier Crête [Tue, 3 Jun 2014 21:59:32 +0000 (17:59 -0400)]
rtprtx: Reset state on each iteration

Otherwise it didn't wait for the test to finish before checking the results.

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

10 years agomatroskademux: don't leak doctype string in error code path
Tim-Philipp Müller [Fri, 9 May 2014 13:22:42 +0000 (14:22 +0100)]
matroskademux: don't leak doctype string in error code path

CID 1212145.

10 years agovp9enc: Don't dereference NULL checks
Edward Hervey [Tue, 20 May 2014 06:20:42 +0000 (08:20 +0200)]
vp9enc: Don't dereference NULL checks

CID #1197703

10 years agovp8enc: Don't dereference NULL variable
Edward Hervey [Tue, 20 May 2014 06:23:06 +0000 (08:23 +0200)]
vp8enc: Don't dereference NULL variable

CID #1139838

10 years agoqtdemux: upstream handles seek if fragmented and on time segment
Thiago Santos [Fri, 30 May 2014 17:32:42 +0000 (14:32 -0300)]
qtdemux: upstream handles seek if fragmented and on time segment

Otherwise we can reject seeks on local files that contain fragmented-like
atoms like 'mvex'. Also improve a message log

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

10 years agoh264depay: make sure we call handle_nal for each NAL
Wim Taymans [Fri, 30 May 2014 14:43:44 +0000 (16:43 +0200)]
h264depay: make sure we call handle_nal for each NAL

Call handle_nal for each NAL in the STAP-A RTP packet. This makes
sure we correctly extract the SPS and PPS.

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

10 years agosouphttpsrc: Add custom sticky event to contain the HTTP request and response headers
Sebastian Dröge [Wed, 7 May 2014 12:09:06 +0000 (14:09 +0200)]
souphttpsrc: Add custom sticky event to contain the HTTP request and response headers

This can be useful to e.g. get cookie information downstream.

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

10 years agoavidemux: remove stream last flow return
Thiago Santos [Mon, 26 May 2014 22:47:39 +0000 (19:47 -0300)]
avidemux: remove stream last flow return

GstPad already stores that information

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

10 years agoqtdemux: remove last flow return from stream struct
Thiago Santos [Mon, 26 May 2014 22:37:46 +0000 (19:37 -0300)]
qtdemux: remove last flow return from stream struct

It is already stored on GstPad on core

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

10 years agoflvdemux: Use GstFlowCombiner
Thiago Santos [Mon, 26 May 2014 22:19:45 +0000 (19:19 -0300)]
flvdemux: Use GstFlowCombiner

Use the flow combiner to have the standard combination results and avoid
repeating the same code

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

10 years agomatroskademux: use GstFlowCombiner
Thiago Santos [Mon, 26 May 2014 16:21:25 +0000 (13:21 -0300)]
matroskademux: use GstFlowCombiner

Use the flow combiner to have the standard combination results and avoid
repeating the same code

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

10 years agoavidemux: use GstFlowCombiner
Thiago Santos [Mon, 26 May 2014 16:04:10 +0000 (13:04 -0300)]
avidemux: use GstFlowCombiner

Removes flow return combination code to use the newly added GstFlowCombiner

10 years agoqtdemux: use GstFlowCombiner
Thiago Santos [Fri, 23 May 2014 20:53:00 +0000 (17:53 -0300)]
qtdemux: use GstFlowCombiner

Removes the common code to combining flow returns to let it be
handled by core gstutils' GstFlowCombiner

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