Bug 1314529. Part 1 - remove the call to MediaDecoder::SetMediaSeekable(). r=cpearce
authorJW Wang <jwwang@mozilla.com>
Wed, 02 Nov 2016 14:39:18 +0800
changeset 348200 7d53bf4f3712085d06395a359f29ada21ea0644f
parent 348199 8df986693ea022eed40cc5f75d6a978847fd5f0d
child 348201 43d87e61c0cf5e68a0e503d57424c78e0c625dc1
push id10298
push userraliiev@mozilla.com
push dateMon, 14 Nov 2016 12:33:03 +0000
treeherdermozilla-aurora@7e29173b1641 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerscpearce
bugs1314529
milestone52.0a1
Bug 1314529. Part 1 - remove the call to MediaDecoder::SetMediaSeekable(). r=cpearce MozReview-Commit-ID: 1vsazRU9KNw
dom/html/HTMLMediaElement.cpp
--- a/dom/html/HTMLMediaElement.cpp
+++ b/dom/html/HTMLMediaElement.cpp
@@ -3747,17 +3747,16 @@ nsresult HTMLMediaElement::InitializeDec
   if (!originalResource)
     return NS_ERROR_FAILURE;
   RefPtr<MediaDecoder> decoder = aOriginal->Clone(this);
   if (!decoder)
     return NS_ERROR_FAILURE;
 
   LOG(LogLevel::Debug, ("%p Cloned decoder %p from %p", this, decoder.get(), aOriginal));
 
-  decoder->SetMediaSeekable(aOriginal->IsMediaSeekable());
   decoder->SetMediaSeekableOnlyInBufferedRanges(
     aOriginal->IsMediaSeekableOnlyInBufferedRanges());
 
   RefPtr<MediaResource> resource =
     originalResource->CloneData(decoder->GetResourceCallback());
 
   if (!resource) {
     LOG(LogLevel::Debug, ("%p Failed to cloned stream for decoder %p", this, decoder.get()));