Fix broken video image issue.
Clean up some codes for audio loop.