Fix for audio/video not firing ended if you change src and call load().
Fix for audio/video not firing ended if you change src and call load().

Another instance of HTMLMediaElement becoming out of sync with WebMediaPlayerImpl.  Most of these bugs are a result of HTMLMediaElement re-creating WebMediaPlayerImpl whenever src changes but not completely resetting internal state, causing inconsistent behaviour.

BUG=16768,20152
TEST=change src and call load(), wait until the end of the clip -- ended should fire

Review URL: http://codereview.chromium.org/173388


git-svn-id: http://src.chromium.org/svn/trunk/src@24331 4ff67af0-8c30-449e-8e8b-ad334ec8d88c

Former-commit-id: 9004bc62e8e717b59cf1990f0d74bf7c2b0a5f04
meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser