Bug 725993 - Remove usage of STORE_ON_DISK_AS_FILE flag in media cache, r=roc
authorMichal Novotny <michal.novotny@gmail.com>
Fri, 04 Jan 2013 00:27:04 +0100
changeset 123097 cddc8be15e62676b51f29001b2281779b01255cc
parent 123096 b9c4a94834925e98f93c113f6cbe1b24a12f7cb0
child 123098 9c02f2a0bd9b83ad7fa67123b1557512571ad7f3
push idunknown
push userunknown
push dateunknown
reviewersroc
bugs725993
milestone20.0a1
Bug 725993 - Remove usage of STORE_ON_DISK_AS_FILE flag in media cache, r=roc
content/media/MediaResource.cpp
--- a/content/media/MediaResource.cpp
+++ b/content/media/MediaResource.cpp
@@ -310,25 +310,16 @@ ChannelMediaResource::OnStartRequest(nsI
 
     if (seekable) {
       mDecoder->SetInfinite(false);
     }
   }
   mDecoder->SetTransportSeekable(seekable);
   mCacheStream.SetTransportSeekable(seekable);
 
-  nsCOMPtr<nsICachingChannel> cc = do_QueryInterface(aRequest);
-  if (cc) {
-    bool fromCache = false;
-    rv = cc->IsFromCache(&fromCache);
-    if (NS_SUCCEEDED(rv) && !fromCache) {
-      cc->SetCacheAsFile(true);
-    }
-  }
-
   {
     MutexAutoLock lock(mLock);
     mChannelStatistics->Start();
   }
 
   mReopenOnError = false;
   // If we are seeking to get metadata, because we are playing an OGG file,
   // ignore if the channel gets closed without us suspending it explicitly. We