Fixed a problem with an empty video buffer.