v4l2videodec: Move capture probe after input format is set
authorNicolas Dufresne <nicolas@ndufresne.ca>
Thu, 13 Sep 2018 02:35:39 +0000 (02:35 +0000)
committerNicolas Dufresne <nicolas.dufresne@collabora.com>
Fri, 14 Sep 2018 00:48:09 +0000 (20:48 -0400)
commit2510b5937d66615fbdd5743deea91cf09d7d419b
tree236ab2d11d81afe382a839e9da0482b574366a11
parent7f42b12e8c32e80c1ef7ff450887ab4ac0f5e1c0
v4l2videodec: Move capture probe after input format is set

This is to support Amlogic CODEC driver which does not provide a full
list of formats when the driver is initially opened. GStreamer does
not strictly need this full list initially, but only later, in order
to negotiate with downstream if multiple format can be selected.

With this change, we will no longer probe twice the device, since the
probed list can be directly used for negotation.
sys/v4l2/gstv4l2videodec.c