v4l2videodec: Protect double calls to set_format()
authorNicolas Dufresne <nicolas.dufresne@collabora.com>
Mon, 9 Jul 2018 17:59:02 +0000 (13:59 -0400)
committerNicolas Dufresne <nicolas.dufresne@collabora.com>
Mon, 9 Jul 2018 18:01:00 +0000 (14:01 -0400)
commitc87f9eb37bd18bb1ec0a44fef0c2e17bbdd7663f
tree9e7bbe0973fb5d795f0afd66c2a629563dfd30cd
parent57be4d2da393842803b020f795e9760aff337b41
v4l2videodec: Protect double calls to set_format()

In some cases, set_format() may get called twice before the output
format is set. Running an allocation query in this case is both not
needed and will cause assertion due tot he NULL caps.
sys/v4l2/gstv4l2videodec.c