Nicolas Dufresne
7986c55dcb
v4l2allocator: Fix use of atomic active marker
...
https://bugzilla.gnome.org/show_bug.cgi?id=730207
2014-05-15 12:21:35 -04:00
Nicolas Dufresne
19608ac85b
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
2014-05-15 12:21:31 -04:00
Nicolas Dufresne
4b2808c310
v4l2bufferpool: Also update num_buffers for import cases
...
https://bugzilla.gnome.org/show_bug.cgi?id=730207
2014-05-15 12:21:12 -04:00
Aleix Conchillo Flaqué
a62b280873
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
2014-05-15 15:48:21 +02:00
George Kiagiadakis
b19c830a1c
tests/check: rtpsession: test internal sources timing out
2014-05-14 16:01:50 +02:00
George Kiagiadakis
7e2138794f
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
2014-05-14 16:01:50 +02:00
George Kiagiadakis
85d4c031d4
rtpsession: cleanup sources that have sent BYE
2014-05-14 16:01:50 +02:00
George Kiagiadakis
7d7840cc4a
rtpsession: unify nested if clauses
2014-05-14 16:01:50 +02:00
George Kiagiadakis
0e6a31411b
rtpsession: timeout internal sources that are inactive for a long time and send BYE
2014-05-14 16:01:50 +02:00
Aleix Conchillo Flaqué
bcd469ff31
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
2014-05-14 10:23:28 +02:00
Adrien SCH
8ac30d4c26
matroskamux: fix the memory leak of language attribute
...
https://bugzilla.gnome.org/show_bug.cgi?id=728418
2014-05-13 19:55:21 -03:00
Nicolas Dufresne
cff050884c
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).
2014-05-13 13:44:20 -04:00
Nicolas Dufresne
de7e5e481d
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.
2014-05-12 18:08:19 -04:00
Tim-Philipp Müller
2e5daf15e7
v4l2src: minor GValue handling optimisation in probing code
2014-05-12 17:23:19 +01:00
Tim-Philipp Müller
f63bdd0483
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.
2014-05-12 17:21:43 +01:00
Edward Hervey
420661bd95
qtdemux: Fix leak of palette_data in error cases
...
CID #1212151
2014-05-12 16:56:35 +02:00
Edward Hervey
112d948b7e
qtmux: Free node_header in error cases
...
CID #1212134
2014-05-12 16:53:32 +02:00
Edward Hervey
6c4882996f
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
2014-05-12 13:46:01 +02:00
Edward Hervey
c09b14c931
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
2014-05-12 13:45:06 +02:00
Sebastian Dröge
f5b2b6e696
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
2014-05-10 09:30:16 +02:00
Nicolas Dufresne
a270dc79d9
v4l2transform: Fix NULL check copy paste error
...
CID 1212129
2014-05-09 12:14:23 -04:00
Nicolas Dufresne
bf1918481d
v4l2transform: Fix potential deadlock due to missing break
...
CID 1212131
2014-05-09 12:12:12 -04:00
Wim Taymans
b2e1598e4a
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
2014-05-09 18:10:32 +02:00
Jason Litzinger
9068e1bb8e
Add new test case.
2014-05-09 18:10:32 +02:00
Wim Taymans
5c90f17cf0
shapewipe: no need to activate pads
...
Activation will happen in the state change
2014-05-09 18:10:31 +02:00
Nicolas Dufresne
e45b1fd9e6
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
2014-05-09 12:10:04 -04:00
Nicolas Dufresne
5284aca559
v4l2object: Remove uneeded cast for code clarity
2014-05-09 12:08:11 -04:00
Nicolas Dufresne
16f0c253a3
v4l2pool: Fix leak of config structure in error case
...
CIDs 1212167 and 1212167
2014-05-09 11:56:52 -04:00
Nicolas Dufresne
68953d8026
v4l2object: Fix use of unitilized pool pointer
...
CID #1212173
2014-05-09 11:52:11 -04:00
Eric Trousset
bd51aa7aa8
qtdemux: don't respond to a position query in BYTE format with a TIME position
...
https://bugzilla.gnome.org/show_bug.cgi?id=729553
2014-05-09 16:12:45 +01:00
Tim-Philipp Müller
9872c19491
matroskademux: don't leak doctype string in error code path
...
CID 1212145.
2014-05-09 14:22:42 +01:00
Nicolas Dufresne
ab465bd162
v4l2object: Readback pool config if used within the baseclass
2014-05-08 15:56:37 -04:00
Nicolas Dufresne
82a806e63b
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.
2014-05-08 15:56:37 -04:00
Nicolas Dufresne
3e4ed47956
v4l2object: Style fix
2014-05-08 15:56:37 -04:00
Nicolas Dufresne
dfdd1ba9d9
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.
2014-05-08 15:56:37 -04:00
Nicolas Dufresne
1304c74c6a
v4l2allocator: Reset flushed group
...
This ensure that a flushed group memory are the same size as when they
where originally allocated / imported.
2014-05-08 15:56:37 -04:00
Nicolas Dufresne
f3ecbeb577
v4l2bufferpool: Get number of allocated buffers from allocator
...
The value of num_allocated buffer would get confused when
buffer are being discarded.
2014-05-08 15:56:37 -04:00
Nicolas Dufresne
7aed4a9806
v4l2allocator: Add a method to read number of allocated group
2014-05-08 15:56:37 -04:00
Nicolas Dufresne
972cf80957
v4l2bufferpool: Improve debugging
2014-05-08 15:56:37 -04:00
Nicolas Dufresne
c7d735a596
v4l2bufferpool: Ensure we don't re-enqueue buffer during flush
2014-05-08 15:56:37 -04:00
Nicolas Dufresne
01feadc2e7
v4l2transform: Initilialize debug category
2014-05-08 15:56:37 -04:00
Nicolas Dufresne
b2dab42ce8
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.
2014-05-08 15:56:37 -04:00
Nicolas Dufresne
428d63c2e5
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.
2014-05-08 15:56:37 -04:00
Nicolas Dufresne
cb311d57f5
v4l2bufferpool: Re-enqueue buffer at stream start
2014-05-08 15:56:37 -04:00
Nicolas Dufresne
a946a7cde6
v4l2allocator: There is not group on error
2014-05-08 15:56:37 -04:00
Nicolas Dufresne
6f5edb3b4b
v4l2transform: Handle FLUSH_STOP event
2014-05-08 15:56:37 -04:00
Nicolas Dufresne
815c9b7d35
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.
2014-05-08 15:56:37 -04:00
Nicolas Dufresne
97d0ca853e
v4l2bufferpool: Remove unreached acquire code
...
The acquire is done in _prepare now.
2014-05-08 15:56:37 -04:00
Nicolas Dufresne
f13331e928
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.
2014-05-08 15:56:37 -04:00
Nicolas Dufresne
deb40de4b8
v4l2transform: Add more traces
2014-05-08 15:56:37 -04:00