Move setting video buffer to outside thread

Signed-off-by: Rafał Malinowski <rafal.malinowski@corp.bluecherry.net>