video dispose c++ lib