Cleanup and stop the video preview before setting the video size.