Fixed potential crash when using set_video_size_by_name, also use set_video_definition_by_name instead