[xiph-commits] r9974 - in trunk/oggdsf/src: lib/codecs/cmml/libCMMLParse tests/testCMMLParser

illiminable at svn.xiph.org illiminable at svn.xiph.org
Tue Sep 6 04:51:58 PDT 2005


Author: illiminable
Date: 2005-09-06 04:51:51 -0700 (Tue, 06 Sep 2005)
New Revision: 9974

Modified:
   trunk/oggdsf/src/lib/codecs/cmml/libCMMLParse/CMMLParser.cpp
   trunk/oggdsf/src/tests/testCMMLParser/testCMMLParser.cpp
Log:
* Increase the buffer size in the cmml parser

Modified: trunk/oggdsf/src/lib/codecs/cmml/libCMMLParse/CMMLParser.cpp
===================================================================
--- trunk/oggdsf/src/lib/codecs/cmml/libCMMLParse/CMMLParser.cpp	2005-09-06 09:02:08 UTC (rev 9973)
+++ trunk/oggdsf/src/lib/codecs/cmml/libCMMLParse/CMMLParser.cpp	2005-09-06 11:51:51 UTC (rev 9974)
@@ -87,7 +87,7 @@
 	// Read the entirety of the file into the buffer
 	locFile.seekg(0);
 
-	unsigned short BUFFER_SIZE = 8192;
+	unsigned long BUFFER_SIZE = 262144;
 	char *locBuffer = new char[locCMMLFileSize];
 	size_t locBytesRead = 0;
 

Modified: trunk/oggdsf/src/tests/testCMMLParser/testCMMLParser.cpp
===================================================================
--- trunk/oggdsf/src/tests/testCMMLParser/testCMMLParser.cpp	2005-09-06 09:02:08 UTC (rev 9973)
+++ trunk/oggdsf/src/tests/testCMMLParser/testCMMLParser.cpp	2005-09-06 11:51:51 UTC (rev 9974)
@@ -254,12 +254,14 @@
 	testCMMLRootParse(cmml_5, false);
 
 
-	wstring file_1 = L"G:\\Media\\Music Vid\\guru.cmml";
+	int x;
+	cin>>x;
+	wstring file_1 = L"G:\\xxxx.cmml";
 	testCMMLFileParse(file_1);
 
 
 	cout<<"---------------------------------------------------"<<endl;
-	wstring file_2 = L"G:\\Media\\Music Vid\\guru.cmml";
+	wstring file_2 = L"G:\\xxxx.cmml";
 	testCMMLClone(file_2);
 
 



More information about the commits mailing list