vidloop: wait for frame cycle ends before stop

	modified:   modules/vidloop/vidloop.c