Reduce CPU usage by allocating the memory for the video buffer only once (the same way as AudioAppSrc currently does)