omxvideoenc: drain encoder on ALLOCATION and DRAIN queries
authorGuillaume Desmottes <guillaume.desmottes@collabora.com>
Thu, 29 Aug 2019 06:50:56 +0000 (12:20 +0530)
committerGuillaume Desmottes <guillaume.desmottes@collabora.com>
Thu, 5 Sep 2019 03:52:32 +0000 (09:22 +0530)
commit7c40a91c31aa4bcbb191f7c6a5d222edf9dfd9d1
tree8dba63f8917a9ab7c08b2d2773a38c94d35f40c3
parent76267ec55d5432197ddff3254702551d54132205
omxvideoenc: drain encoder on ALLOCATION and DRAIN queries

Ensure that the encoder releases all its input buffers when requested by
upstream. Encoder input buffers may be shared with downstreaming (when
using dmabuf), upstream may then request the encoder to
drain when reconfiguring before destroying its buffers.

Also drain on ALLOCATION query as we already do in kmssink as that
notify of a format change.

Fix "decoder ! encoder" pipeline when decoding a file with different
resolutions on Zynq.
omx/gstomxvideoenc.c