Simplify WMPI::duration() MSE path
commitd02ea32de7a829f9005371718c6b475d0149838b
authorwolenetz@chromium.org <wolenetz@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Thu, 20 Jun 2013 20:39:28 +0000 (20 20:39 +0000)
committerwolenetz@chromium.org <wolenetz@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Thu, 20 Jun 2013 20:39:28 +0000 (20 20:39 +0000)
treee1d13c079613ce1d099a872b2c8de6cf4854213d
parent2b51de381095be21c329ad7241e2761ed64acb12
Simplify WMPI::duration() MSE path

In MSE case, blink now consults MediaSource directly for duration,
and WMPI::duration() is only used to support maxTimeSeekable().
In this case, exact user-specified (double) duration available from
ChunkDemuxer is unnecessary, and we can use the (TimeDelta) duration
maintained by Pipeline.

R=acolwell@chromium.org
TEST=media unit and layout tests pass locally on chromium linux

Review URL: https://chromiumcodereview.appspot.com/17448015

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@207551 0039d316-1c4b-4281-b951-d872f2087c98
webkit/renderer/media/webmediaplayer_impl.cc