Fix dimension error and update subtitle error.

If duration time is undefined, subtitle will be never shown.
It will only happen when viedo preload is set to none.