v4l2object: set streamparm for outputs that support it
authorPhilipp Zabel <p.zabel@pengutronix.de>
Wed, 16 Mar 2016 15:22:48 +0000 (16:22 +0100)
committerNicolas Dufresne <nicolas.dufresne@collabora.com>
Wed, 5 Apr 2017 13:26:05 +0000 (09:26 -0400)
commitce5c0b8f9271c4dc0f92bea683e1141ec75dc14c
tree2b59dabc807ac706931b325686ca43eebc4e030b
parent1d43f6d852c2114f230fdfb075c211720e175c3d
v4l2object: set streamparm for outputs that support it

Without a specified framerate from the sink, the decoder frame interval
should be set using the framerate of the encoded video stream.
Therefore, the v4l2object should be able to change the framerate on the
output if the V4L2 device accepts it.

This is also necessary for mem2mem encoders so that their bitrate
calculation code may work correctly and they may report the correct
frame duration on the capture queue.

https://bugzilla.gnome.org/show_bug.cgi?id=779466
sys/v4l2/gstv4l2object.c