Fixing crash in buffer bar painting code
Fixing crash in buffer bar painting code

Crash was because of inconsistent state caused by threading issues.
The state of the buffer bar isn't so critical to need to be 100% accurate
at all times, so this is fixed by capping the buffered_bytes_ and
current_bytes to always be at legal values.

BUG=49870
TEST=media_unittests
TBR=hclam

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

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

Former-commit-id: b6cc0d1f17633c2a780ce7d215b7919177ac5ed7
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