v4l2videoenc: Set default latency if the frame duration is invalid
authorHou Qi <qi.hou@nxp.com>
Tue, 25 May 2021 08:19:20 +0000 (16:19 +0800)
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Fri, 28 May 2021 11:54:53 +0000 (11:54 +0000)
commitf4049fc292ce1ed749701d2a31bf6026b7d60eac
tree862fd79c58e1712099a0703192e5f0d9e229b955
parent80567ca939c535ed6083770a1f37743d60ba11b3
v4l2videoenc: Set default latency if the frame duration is invalid

If the duration of the v4l2object is invalid, use default 25fps instead.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-good/-/merge_requests/996>
sys/v4l2/gstv4l2videoenc.c