Wim Taymans
d004eda79d
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
2014-05-16 16:55:17 +02:00
Nicolas Dufresne
077fcbcf15
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
2014-05-15 19:06:52 -04:00
Benjamin Gaignard
0d852cf235
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
2014-05-15 12:55:33 -04:00
Nicolas Dufresne
541a9670d2
v4l2videodec: Handle start_streaming error
...
https://bugzilla.gnome.org/show_bug.cgi?id=730207
2014-05-15 12:22:04 -04:00
Nicolas Dufresne
bff156bc57
v4l2videodec: Print the flow return causing the loop to leave
...
https://bugzilla.gnome.org/show_bug.cgi?id=730207
2014-05-15 12:21:59 -04:00
Nicolas Dufresne
f384047be3
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
2014-05-15 12:21:54 -04:00
Nicolas Dufresne
5f10d2b4e2
v4l2transform: Don't leak pool if activation failed
...
https://bugzilla.gnome.org/show_bug.cgi?id=730207
2014-05-15 12:21:48 -04:00
Nicolas Dufresne
a4b5811d22
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
2014-05-15 12:21:44 -04:00
Nicolas Dufresne
c1792de95e
v4l2transform: Flush buffer pools on flush stop
...
https://bugzilla.gnome.org/show_bug.cgi?id=730207
2014-05-15 12:21:40 -04:00
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