Make sure the next used frame is released so get_buffer() wont fail.