Bug 760336 - When seeking in an unbuffered range on a live stream, playback stops and |played| reports bogus values. r=chris.double
authorPaul Adenot <paul@paul.cx>
Thu, 07 Jun 2012 11:43:29 +1200
changeset 98738 5d04d59d85d00852e6f8e75131e31df16e49950d
parent 98737 45dbfd1debfdb55f62d4991dd369b570eee2c6fd
child 98739 fafddce7a3302677ced1fcc6ed8724c42ac0a360
push id1729
push userlsblakk@mozilla.com
push dateMon, 16 Jul 2012 20:02:43 +0000
treeherdermozilla-aurora@f4e75e148951 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerschris.double
bugs760336
milestone16.0a1
Bug 760336 - When seeking in an unbuffered range on a live stream, playback stops and |played| reports bogus values. r=chris.double
content/html/content/src/nsHTMLMediaElement.cpp
--- a/content/html/content/src/nsHTMLMediaElement.cpp
+++ b/content/html/content/src/nsHTMLMediaElement.cpp
@@ -1269,17 +1269,17 @@ NS_IMETHODIMP nsHTMLMediaElement::SetCur
   }
 
   mPlayingBeforeSeek = IsPotentiallyPlaying();
   // The media backend is responsible for dispatching the timeupdate
   // event if it changes the playback position as a result of the seek.
   LOG(PR_LOG_DEBUG, ("%p SetCurrentTime(%f) starting seek", this, aCurrentTime));
   nsresult rv = mDecoder->Seek(clampedTime);
   // Start a new range at position we seeked to.
-  mCurrentPlayRangeStart = clampedTime;
+  mCurrentPlayRangeStart = mDecoder->GetCurrentTime();
 
   // We changed whether we're seeking so we need to AddRemoveSelfReference.
   AddRemoveSelfReference();
 
   return rv;
 }
 
 /* readonly attribute double duration; */