Thiago Santos [Sat, 24 May 2014 14:16:35 +0000 (11:16 -0300)]
qtdemux: parse tkhd transformation matrix and add tags if appropriate
Handle the transformation matrix cases where there are only simple rotations
(90, 180 or 270 degrees) and use a tag for those cases. This is a common scenario
when recording with mobile devices
https://bugzilla.gnome.org/show_bug.cgi?id=679522
Nicolas Dufresne [Fri, 23 May 2014 23:10:21 +0000 (19:10 -0400)]
v4l2bufferpool: Prevent num_queued from going negative
Nicolas Dufresne [Fri, 23 May 2014 22:25:49 +0000 (18:25 -0400)]
v4l2videodec: don't stop if loop returned FLUSHING
The decodeing thread returning flushing isn't an error, we should simply
try starting the task again. If it's actually flushing, it will stop again by itself.
Nicolas Dufresne [Fri, 23 May 2014 21:54:20 +0000 (17:54 -0400)]
v4l2videodec: Handle early task stop
Nicolas Dufresne [Fri, 23 May 2014 21:28:13 +0000 (17:28 -0400)]
v4l2videodec: Handle gst_pad_start_task() failure
Nicolas Dufresne [Fri, 23 May 2014 21:19:07 +0000 (17:19 -0400)]
v4l2videodec: Add trace for FLUSH_START/STOP handling
Nicolas Dufresne [Fri, 23 May 2014 21:18:16 +0000 (17:18 -0400)]
v4l2videodec: Fix use of atomic value
Nicolas Dufresne [Fri, 23 May 2014 21:01:53 +0000 (17:01 -0400)]
v4l2bufferpool: Improve debugging
No need to use obj->element, the pool now have a significant name. Also don't
warn if flushing.
Nicolas Dufresne [Fri, 23 May 2014 21:01:02 +0000 (17:01 -0400)]
v4l2videodec: Fix handle_frame error handling
Nicolas Dufresne [Fri, 23 May 2014 19:56:24 +0000 (15:56 -0400)]
v4l2bufferpool: Add a trace when _start() is called
Nicolas Dufresne [Fri, 23 May 2014 19:56:02 +0000 (15:56 -0400)]
v4l2allocator: Add debug assert to detect calls in the wrong state
Nicolas Dufresne [Fri, 23 May 2014 19:55:26 +0000 (15:55 -0400)]
v4l2allocator: Reset count when stopped
Nicolas Dufresne [Fri, 23 May 2014 19:55:08 +0000 (15:55 -0400)]
v4l2allocator: Return a GstFlowReturn instead of boolean in alloc
Nicolas Dufresne [Fri, 23 May 2014 19:17:27 +0000 (15:17 -0400)]
v4l2object: Don't leak config structure
Nicolas Dufresne [Fri, 23 May 2014 18:12:10 +0000 (14:12 -0400)]
v4l2bufferpool: Port to bufferpool flush_start/stop method
Thiago Santos [Fri, 23 May 2014 06:00:50 +0000 (03:00 -0300)]
qtdemux: add tag mappings for _swr, _mak and _mod tags
swr -> Application name
mak -> device manufacturer
mod -> device model
Nicolas Dufresne [Tue, 20 May 2014 21:37:49 +0000 (17:37 -0400)]
ximagesrc: Fix ximage leaks when buffer has more then one ximage
From time to time, when the image_pool list has more then 1 element
and I suppose at start, all but 1 pooled ximage are leaked. This is
due to broken algorithm in gst_ximagesink_src_ximage_get(). There was
also a risk of use after free for the case where the ximage size has
changed.
https://bugzilla.gnome.org/show_bug.cgi?id=728502
Sebastian Dröge [Wed, 21 May 2014 11:23:27 +0000 (13:23 +0200)]
Back to development
Sebastian Dröge [Wed, 21 May 2014 11:06:35 +0000 (13:06 +0200)]
Release 1.3.2
Sebastian Dröge [Wed, 21 May 2014 10:19:39 +0000 (12:19 +0200)]
Update .po files
Sebastian Dröge [Wed, 21 May 2014 08:51:10 +0000 (10:51 +0200)]
Automatic update of common submodule
From 211fa5f to 1f5d3c3
Edward Hervey [Tue, 20 May 2014 06:23:06 +0000 (08:23 +0200)]
vp8enc: Don't dereference NULL variable
CID #1139838
Edward Hervey [Tue, 20 May 2014 06:20:42 +0000 (08:20 +0200)]
vp9enc: Don't dereference NULL checks
CID #1197703
Sebastian Dröge [Mon, 19 May 2014 09:26:46 +0000 (11:26 +0200)]
v4l2bufferpool: Explicitly cast enum "subtype" to its "supertype"
gstv4l2bufferpool.c:608:18: error: implicit conversion from enumeration type
'enum _GstV4l2BufferPoolAcquireFlags' to different enumeration type
'GstBufferPoolAcquireFlags' [-Werror,-Wenum-conversion]
params.flags = GST_V4L2_POOL_ACQUIRE_FLAG_RESURECT;
~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Sebastian Dröge [Mon, 19 May 2014 09:24:06 +0000 (11:24 +0200)]
goom: Use fabs() instead of abs() to calculate the floating point absolute value
tentacle3d.c:268:7: error: using integer absolute value function 'abs' when
argument is of floating point type [-Werror,-Wabsolute-value]
if (abs (tmp - fx_data->rot) > abs (tmp - (fx_data->rot + 2.0 * G_PI))) {
^
Sebastian Dröge [Mon, 19 May 2014 09:21:36 +0000 (11:21 +0200)]
debugutils: Properly calculate the difference with unsigned types
tests.c:161:16: error: taking the absolute value of unsigned type
'unsigned long' has no effect [-Werror,-Wabsolute-value]
t->diff += labs (GST_BUFFER_TIMESTAMP (buffer) - t->expected);
Nicolas Dufresne [Fri, 16 May 2014 21:46:30 +0000 (17:46 -0400)]
v4l2videodec: Handle flush while in start_streaming
We need to handle the case where a flush occure while the streaming
thread is being brought up. In this case, the flushing state of the poll
object is cleared. To solve this, we simply set the capture poll to flushing
again, this way we know the thread will exit. The decoder streamlock
is used to synchronize with handle frame.
Nicolas Dufresne [Fri, 16 May 2014 20:44:37 +0000 (16:44 -0400)]
v4l2allocator: Don't trace twice the same message
Aleix Conchillo Flaqué [Thu, 15 May 2014 18:25:50 +0000 (11:25 -0700)]
rtspsrc: always use a random ssrc for the internal session
Use a random SSRC different than 0 for the internal session SSRC.
https://bugzilla.gnome.org/show_bug.cgi?id=730212
Wim Taymans [Fri, 16 May 2014 14:52:25 +0000 (16:52 +0200)]
rtpsession: update last_activity when sending RTP
Also update last_activity when doing something with the internal
source to make sure don't timeout early.
See https://bugzilla.gnome.org/show_bug.cgi?id=730217
Nicolas Dufresne [Thu, 15 May 2014 22:08:53 +0000 (18:08 -0400)]
v4l2: Cleanup M2M properties
M2M devices were sharing the same properties as src and sink. Most of
these made no sense. This patch reduces the number of propeties and
makes io-mode clearer by having capture-io-mode and output-io-mode. This
also accidently fixed a bug in gstv4l2transform io-mode code, where the
capture io-mode could not be set.
https://bugzilla.gnome.org/show_bug.cgi?id=729591
Benjamin Gaignard [Thu, 15 May 2014 15:39:39 +0000 (17:39 +0200)]
v4l2bufferpool: Update pool limit with hardware requiremenst
If the driver need more buffers than requested by the config,
update the pool min/max values. The minimum value for the pool
could be provided either by the driver or by the pool. This is
best effort for drivers that don't support
CID V4L2_CID_MIN_BUFFERS_FOR_CAPTURE.
https://bugzilla.gnome.org/show_bug.cgi?id=730200
Nicolas Dufresne [Thu, 15 May 2014 14:44:29 +0000 (10:44 -0400)]
v4l2videodec: Handle start_streaming error
https://bugzilla.gnome.org/show_bug.cgi?id=730207
Nicolas Dufresne [Thu, 15 May 2014 14:39:40 +0000 (10:39 -0400)]
v4l2videodec: Print the flow return causing the loop to leave
https://bugzilla.gnome.org/show_bug.cgi?id=730207
Nicolas Dufresne [Thu, 15 May 2014 14:31:40 +0000 (10:31 -0400)]
v4l2videodec: Don't lock the decoder when stopping task
That src pad task may need to take the lock when being pulled
down. takeing that lock can lead to a deadlock.
https://bugzilla.gnome.org/show_bug.cgi?id=730207
Nicolas Dufresne [Wed, 14 May 2014 21:18:52 +0000 (17:18 -0400)]
v4l2transform: Don't leak pool if activation failed
https://bugzilla.gnome.org/show_bug.cgi?id=730207
Nicolas Dufresne [Wed, 14 May 2014 21:18:35 +0000 (17:18 -0400)]
v4l2: Split flush in start/stop_streaming
This allow calling start streaming later for capture device. Currently it breaks
in dmabuf-import because downstream is holding a buffer that will only be
released after stream-start.
https://bugzilla.gnome.org/show_bug.cgi?id=730207
Nicolas Dufresne [Wed, 14 May 2014 19:12:26 +0000 (15:12 -0400)]
v4l2transform: Flush buffer pools on flush stop
https://bugzilla.gnome.org/show_bug.cgi?id=730207
Nicolas Dufresne [Wed, 14 May 2014 17:28:31 +0000 (13:28 -0400)]
v4l2allocator: Fix use of atomic active marker
https://bugzilla.gnome.org/show_bug.cgi?id=730207
Nicolas Dufresne [Wed, 14 May 2014 17:05:42 +0000 (13:05 -0400)]
v4l2bufferpool: Don't deactivate otherpool
We should not stop the otherpool unless we also stop our own
pool, otherwise it will never get restarted.
https://bugzilla.gnome.org/show_bug.cgi?id=730207
Nicolas Dufresne [Wed, 14 May 2014 16:33:58 +0000 (12:33 -0400)]
v4l2bufferpool: Also update num_buffers for import cases
https://bugzilla.gnome.org/show_bug.cgi?id=730207
Aleix Conchillo Flaqué [Wed, 14 May 2014 20:42:25 +0000 (13:42 -0700)]
rtpbin: update rtp encoder/decoder docs
Use %u in RTP encoder/decoder pads to match other rtpbin pads.
https://bugzilla.gnome.org/show_bug.cgi?id=730146
George Kiagiadakis [Fri, 27 Dec 2013 09:55:18 +0000 (11:55 +0200)]
tests/check: rtpsession: test internal sources timing out
George Kiagiadakis [Thu, 26 Dec 2013 15:30:42 +0000 (17:30 +0200)]
rtpsession: remove unused if branch
1) sources that have sent BYE in the past cannot be senders, since
they would have timed out to being receivers in the meantime...
2) sources that have sent BYE are now being removed earlier inside
this function
George Kiagiadakis [Thu, 26 Dec 2013 15:29:42 +0000 (17:29 +0200)]
rtpsession: cleanup sources that have sent BYE
George Kiagiadakis [Thu, 26 Dec 2013 15:24:51 +0000 (17:24 +0200)]
rtpsession: unify nested if clauses
George Kiagiadakis [Thu, 26 Dec 2013 15:21:44 +0000 (17:21 +0200)]
rtpsession: timeout internal sources that are inactive for a long time and send BYE
Aleix Conchillo Flaqué [Tue, 13 May 2014 19:25:04 +0000 (12:25 -0700)]
rtpjitterbuffer: don't stop looping if event found in the queue
If we are inserting a packet into the jitter queue we need to keep
looping through the items until the right position is found. Currently,
the code stops as soon as an event is found in the queue.
Regarding events, we should only move packets before an event if there
is another packet before the event that has a larger seqnum.
Fixes https://bugzilla.gnome.org/show_bug.cgi?id=730078
Adrien SCH [Thu, 17 Apr 2014 13:04:00 +0000 (13:04 +0000)]
matroskamux: fix the memory leak of language attribute
https://bugzilla.gnome.org/show_bug.cgi?id=728418
Nicolas Dufresne [Tue, 13 May 2014 17:44:20 +0000 (13:44 -0400)]
v4l2object: Fix regression in offset extrapolation
When extrapolating the offset, we need to use the extrapolate
stride rather then the base stride. This should fix support for format
with more then two planes (I420, Y42B, etc).
Nicolas Dufresne [Mon, 12 May 2014 22:03:18 +0000 (18:03 -0400)]
v4l2bufferpool: Use default VideoInfo for frame operation
When doing frame operation, we need to use the default VideoInfo
and let the frame API read the video meta in order to get the stride
and offset right. Currently we where using the specialized VideoInfo
which reflects what the HW is setup to.
Tim-Philipp Müller [Mon, 12 May 2014 16:23:19 +0000 (17:23 +0100)]
v4l2src: minor GValue handling optimisation in probing code
Tim-Philipp Müller [Mon, 12 May 2014 16:20:14 +0000 (17:20 +0100)]
v4l2src: avoid lists with one single framerate in probed caps
Simplify framerate field if possible, so we don't end up with
e.g. framerate = (fraction) { 30/1 }. Maybe the helper function
should be moved to core, but we can do this later.
Edward Hervey [Mon, 12 May 2014 14:56:35 +0000 (16:56 +0200)]
qtdemux: Fix leak of palette_data in error cases
CID #1212151
Edward Hervey [Mon, 12 May 2014 14:53:32 +0000 (16:53 +0200)]
qtmux: Free node_header in error cases
CID #1212134
Edward Hervey [Mon, 12 May 2014 11:46:01 +0000 (13:46 +0200)]
flvdemux: Don't use WARNING for not-linked flow return
Pollutes debug logs for no reason. It's only an error if all pads
return not-linked
Edward Hervey [Mon, 12 May 2014 11:45:06 +0000 (13:45 +0200)]
flvdemux: Skip unknown tags in push-mode
We add a new mode (SKIP) in push-mode to skip tags that we don't known about
Partially fixes https://bugzilla.gnome.org/show_bug.cgi?id=670712
Sebastian Dröge [Sat, 10 May 2014 07:14:33 +0000 (09:14 +0200)]
flacdec: Add support for variable block size files and remove dead code
This dead code wasn't used since the 1.0 port and would need to
be modified heavily for variable block size support.
https://bugzilla.gnome.org/show_bug.cgi?id=729894
Nicolas Dufresne [Fri, 9 May 2014 16:14:23 +0000 (12:14 -0400)]
v4l2transform: Fix NULL check copy paste error
CID 1212129
Nicolas Dufresne [Fri, 9 May 2014 16:11:54 +0000 (12:11 -0400)]
v4l2transform: Fix potential deadlock due to missing break
CID 1212131
Wim Taymans [Fri, 9 May 2014 16:01:28 +0000 (18:01 +0200)]
rtpjitterbuffer: increment accepted packets after loss
When we detect a lost packet, expect packets with higher
seqnum on the input.
Also update the unit test.
Fixes https://bugzilla.gnome.org/show_bug.cgi?id=729524
Jason Litzinger [Sun, 4 May 2014 17:12:54 +0000 (11:12 -0600)]
Add new test case.
Wim Taymans [Fri, 9 May 2014 14:14:21 +0000 (16:14 +0200)]
shapewipe: no need to activate pads
Activation will happen in the state change
Nicolas Dufresne [Fri, 9 May 2014 16:10:04 +0000 (12:10 -0400)]
v4l2object: Don't leak config structure
this fixes a leak of the config structure and take care of making sure
caps can't reach ref 0 before we are done doing our check.
CID 1212144
Nicolas Dufresne [Fri, 9 May 2014 16:08:11 +0000 (12:08 -0400)]
v4l2object: Remove uneeded cast for code clarity
Nicolas Dufresne [Fri, 9 May 2014 15:56:52 +0000 (11:56 -0400)]
v4l2pool: Fix leak of config structure in error case
CIDs 1212167 and 1212167
Nicolas Dufresne [Fri, 9 May 2014 15:51:26 +0000 (11:51 -0400)]
v4l2object: Fix use of unitilized pool pointer
CID #1212173
Eric Trousset [Fri, 9 May 2014 14:48:58 +0000 (16:48 +0200)]
qtdemux: don't respond to a position query in BYTE format with a TIME position
https://bugzilla.gnome.org/show_bug.cgi?id=729553
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.
Nicolas Dufresne [Tue, 6 May 2014 17:37:47 +0000 (13:37 -0400)]
v4l2object: Readback pool config if used within the baseclass
Nicolas Dufresne [Tue, 6 May 2014 16:58:59 +0000 (12:58 -0400)]
v4l2: Replace miss-use of crop meta in favour of proper offset
This moves away from copying information and store everything inside
the GstVideoInfo structure. The alignement exposed by v4l2 api
is now handled using proper offset.
Nicolas Dufresne [Tue, 6 May 2014 16:55:30 +0000 (12:55 -0400)]
v4l2object: Style fix
Nicolas Dufresne [Mon, 5 May 2014 16:38:33 +0000 (12:38 -0400)]
v4l2allocator: Reset imported buffer size with expected size
This ensure that the buffer pool won't always discard buffer with these
memory when they are released.
Nicolas Dufresne [Mon, 5 May 2014 16:37:43 +0000 (12:37 -0400)]
v4l2allocator: Reset flushed group
This ensure that a flushed group memory are the same size as when they
where originally allocated / imported.
Nicolas Dufresne [Mon, 5 May 2014 16:07:31 +0000 (12:07 -0400)]
v4l2bufferpool: Get number of allocated buffers from allocator
The value of num_allocated buffer would get confused when
buffer are being discarded.
Nicolas Dufresne [Mon, 5 May 2014 16:06:44 +0000 (12:06 -0400)]
v4l2allocator: Add a method to read number of allocated group
Nicolas Dufresne [Mon, 5 May 2014 00:23:42 +0000 (20:23 -0400)]
v4l2bufferpool: Improve debugging
Nicolas Dufresne [Sun, 4 May 2014 23:51:48 +0000 (19:51 -0400)]
v4l2bufferpool: Ensure we don't re-enqueue buffer during flush
Nicolas Dufresne [Sun, 4 May 2014 23:13:37 +0000 (19:13 -0400)]
v4l2transform: Initilialize debug category
Nicolas Dufresne [Sun, 4 May 2014 20:11:09 +0000 (16:11 -0400)]
v4l2allocator: Fix libv4l2 support
Need to include config.h, otherwise we endup directly using the
ioct/mmap/munmap calls and need to vall v4l2_munmap.
Nicolas Dufresne [Thu, 1 May 2014 17:04:08 +0000 (13:04 -0400)]
v4l2allocator: Set the flags on the object
We where not setting the probed flags on the allocator, which mean even if
CREATE_BUFS was supported on some driver, it would endup being ignored.
Nicolas Dufresne [Tue, 29 Apr 2014 20:49:52 +0000 (16:49 -0400)]
v4l2bufferpool: Re-enqueue buffer at stream start
Nicolas Dufresne [Tue, 29 Apr 2014 20:06:00 +0000 (16:06 -0400)]
v4l2allocator: There is not group on error
Nicolas Dufresne [Tue, 29 Apr 2014 18:56:31 +0000 (14:56 -0400)]
v4l2transform: Handle FLUSH_STOP event
Nicolas Dufresne [Tue, 29 Apr 2014 17:05:41 +0000 (13:05 -0400)]
v4l2bufferpool: Acquire cannot return a buffer from another pool
Return a buffer from an otherpool has unwanted side effects that lead to leaks and
prevents deactivating the pool. Instead, we change the _process() API so it can
replace the internal buffer with the buffer from the downstream pool. This implied
moving from _fill() to _create() method in the src.
Nicolas Dufresne [Tue, 29 Apr 2014 17:00:32 +0000 (13:00 -0400)]
v4l2bufferpool: Remove unreached acquire code
The acquire is done in _prepare now.
Nicolas Dufresne [Tue, 29 Apr 2014 16:57:08 +0000 (12:57 -0400)]
v4l2bufferpool: Sanetize buffer refount handling
Buffer refcounting is a bit hard, because of the duality between CAPTURE and
OUTPUT mode. In the long term, we should consider having two seperate pool
instead of this mess. At least state should be better kept this way.
Nicolas Dufresne [Tue, 29 Apr 2014 16:48:04 +0000 (12:48 -0400)]
v4l2transform: Add more traces
Nicolas Dufresne [Mon, 28 Apr 2014 12:48:26 +0000 (08:48 -0400)]
v4l2-allocator: Add S to REQBUFS/CREATE_BUFS enum
All enum that has REQBUFS and CREATE_BUFS where missing S, which was
confusing since they are supposed to match with associcated ioctl name. This
also fixes the yet unused CAN_REQUEST flag check.
Nicolas Dufresne [Fri, 18 Apr 2014 21:51:07 +0000 (17:51 -0400)]
v4l2transform: Enabled QoS
Nicolas Dufresne [Fri, 18 Apr 2014 21:02:50 +0000 (17:02 -0400)]
v4l2: Fixup USERPTR/DMABUF capture support
Nicolas Dufresne [Fri, 18 Apr 2014 18:45:00 +0000 (14:45 -0400)]
v4l2object: Improve selecton of min/max in decide allocation
Nicolas Dufresne [Fri, 18 Apr 2014 17:09:00 +0000 (13:09 -0400)]
v4l2bufferpool: Update config if meta is missing
Rather then hard failure, we should update the config with the meta option we
need and return false.
Nicolas Dufresne [Fri, 11 Apr 2014 21:10:11 +0000 (17:10 -0400)]
v4l2: Add DMABUF and USERPTR importation
Nicolas Dufresne [Fri, 18 Apr 2014 01:45:58 +0000 (21:45 -0400)]
v4l2allocator: Valid FD are bigger or equal to zero
Nicolas Dufresne [Wed, 16 Apr 2014 21:04:42 +0000 (17:04 -0400)]
v4l2object: Don't leak downstream pool in propose_allocation
parse_nth_allocation_pool() give a ref on the pool, we need to unref it
when done.
Nicolas Dufresne [Mon, 14 Apr 2014 16:19:39 +0000 (12:19 -0400)]
v4l2: Introduce DMABUF_IMPORT IO mode
Nicolas Dufresne [Thu, 10 Apr 2014 20:26:34 +0000 (16:26 -0400)]
v4l2: Add dmabuf export support
This can be enabled sing io-mode=dmabuf. This will enabled mmap base
drivers to export the buffers as dmabuf.
Nicolas Dufresne [Wed, 16 Apr 2014 19:51:03 +0000 (15:51 -0400)]
v4l2allocator: Guaranty queued state integrety
Because of the buf in videobuf2, dqbuf may leave the DONE flag being,
which would implied that the buffer is queued. As this has been broken
for 4 years, simply guaranty the state flags integrity when doing
qbuf/dqbuf.
See https://patchwork.linuxtv.org/patch/23641/
Nicolas Dufresne [Tue, 15 Apr 2014 21:31:42 +0000 (17:31 -0400)]
v4l2transform: Implement open/close