[xiph-commits] r7642 - trunk/oggdsf/src/lib/core/directshow/dsfOggDemux

illiminable at motherfish-iii.xiph.org illiminable at motherfish-iii.xiph.org
Thu Aug 26 23:49:39 PDT 2004


Author: illiminable
Date: 2004-08-26 23:49:38 -0700 (Thu, 26 Aug 2004)
New Revision: 7642

Modified:
   trunk/oggdsf/src/lib/core/directshow/dsfOggDemux/HTTPFileSource.cpp
Log:
* Now caches to temp directory as specified in environment variables.

Modified: trunk/oggdsf/src/lib/core/directshow/dsfOggDemux/HTTPFileSource.cpp
===================================================================
--- trunk/oggdsf/src/lib/core/directshow/dsfOggDemux/HTTPFileSource.cpp	2004-08-26 21:13:27 UTC (rev 7641)
+++ trunk/oggdsf/src/lib/core/directshow/dsfOggDemux/HTTPFileSource.cpp	2004-08-27 06:49:38 UTC (rev 7642)
@@ -196,7 +196,12 @@
 		//mStreamBuffer.seekp(0, ios_base::beg);
 
 		//TODO::: Get rid of this path.
-		string locCacheFileName = "g:\\logs\\filecache.dat";
+		
+		//string locCacheFileName = "filecache.dat";
+		string locCacheFileName = getenv("TEMP");
+		debugLog<<"Temp = "<<locCacheFileName<<endl;
+		locCacheFileName += "\\filecache.dat";
+		debugLog<<"Cache file  = "<<locCacheFileName<<endl;
 		if(mFileCache.open(locCacheFileName)) {
 			debugLog<<"OPEN : Cach file opened"<<endl;
 		}



More information about the commits mailing list