mm-video-v4l2: vdec:Fix delay in thumbnail generation for 4k video

Thumbnail generation for 4k is taking long time(>1 sec) using
h/w codec.Delay is seen with hardware codec because once omx
receives FBD back from driver, it sends crop information change to ACodec.
Acodec will do some get_parameter() calls to update information
locally.But during these get_parameter calls, lot of c2d
open/close/getbuffesize calls are going on to update buffersize.
Calling C2d calls for every get_parameter is not necessary
as resolution and format is not changed.

So fix is added to avoid unnecessary c2d calls.

Change-Id: I7b269367fc1c919bb9e683e78f8954be72b08dd7
2 files changed