Using nvv4l2h264enc encoder memory increases when releasing pipeline and setting up a new one

Hi,
The fix is for all video/x-raw → video/x-raw(memory:NVMM) conversion.