[PATCH v3 3/5] video: Use cyclic to handle video sync