Bug 1199032: [MSE/webm] P2. Construct WebMDemuxer with special MSE handling. r=kinetik a=ritu
☠☠ backed out by 5bb661db5c6c ☠ ☠
authorJean-Yves Avenard <jyavenard@mozilla.com>
Fri, 28 Aug 2015 10:52:28 +1000
changeset 288992 cb7bf94606ad0522d04f7bd75184521c2ef1fd7c
parent 288991 d7a0bba042a7daef9ec2058b0f508a6e4e943945
child 288993 6c48368813f8102c4f6c18cc13dd8c25ddb4d4d5
push id5067
push userraliiev@mozilla.com
push dateMon, 21 Sep 2015 14:04:52 +0000
treeherdermozilla-beta@14221ffe5b2f [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerskinetik, ritu
bugs1199032
milestone42.0a2
Bug 1199032: [MSE/webm] P2. Construct WebMDemuxer with special MSE handling. r=kinetik a=ritu
dom/media/mediasource/TrackBuffersManager.cpp
--- a/dom/media/mediasource/TrackBuffersManager.cpp
+++ b/dom/media/mediasource/TrackBuffersManager.cpp
@@ -780,17 +780,17 @@ TrackBuffersManager::ShutdownDemuxers()
 
 void
 TrackBuffersManager::CreateDemuxerforMIMEType()
 {
   ShutdownDemuxers();
 
 #ifdef MOZ_WEBM
   if (mType.LowerCaseEqualsLiteral("video/webm") || mType.LowerCaseEqualsLiteral("audio/webm")) {
-    mInputDemuxer = new WebMDemuxer(mCurrentInputBuffer);
+    mInputDemuxer = new WebMDemuxer(mCurrentInputBuffer, true /* IsMediaSource*/ );
     return;
   }
 #endif
 
 #ifdef MOZ_FMP4
   if (mType.LowerCaseEqualsLiteral("video/mp4") || mType.LowerCaseEqualsLiteral("audio/mp4")) {
     mInputDemuxer = new MP4Demuxer(mCurrentInputBuffer);
     return;