mm-video-v4l2: venc: add error handling for init failure

If component_init then framework will not invoke deinit
sequence. get_buffer_req on output port failed, so session
was not closed and that is reported as leaks. So added
error hadling to cleanup instance, if there any failure
at component_init.

Change-Id: I0e663c8c6d05eb149a3fbbe7fcfa96fef3ae5b4e
Signed-off-by: Govindaraj Rajagopal <grajagop@codeaurora.org>
1 file changed