[xiph-commits] r9110 - trunk/oggdsf/src/tools/CMMLDump
ozone at motherfish-iii.xiph.org
ozone at motherfish-iii.xiph.org
Sun Apr 3 07:19:16 PDT 2005
Author: ozone
Date: 2005-04-03 07:19:14 -0700 (Sun, 03 Apr 2005)
New Revision: 9110
Modified:
trunk/oggdsf/src/tools/CMMLDump/CMMLDump.cpp
Log:
oggcodecs:
* Make CMMLDump output XML preamble
Modified: trunk/oggdsf/src/tools/CMMLDump/CMMLDump.cpp
===================================================================
--- trunk/oggdsf/src/tools/CMMLDump/CMMLDump.cpp 2005-04-03 14:18:21 UTC (rev 9109)
+++ trunk/oggdsf/src/tools/CMMLDump/CMMLDump.cpp 2005-04-03 14:19:14 UTC (rev 9110)
@@ -120,7 +120,7 @@
// Get the packet's time in seconds
LOOG_INT64 locPacketGranulePos = inOggPage->header()->GranulePos();
- float locPacketStartTimeInSeconds = (float) locPacketGranulePos/ (float) 1000;
+ float locPacketStartTimeInSeconds = (float) locPacketGranulePos / (float) 1000;
// Let's make the CMML parsing library decide whether it's a <head>
// or <clip> tag -- after all, that's what it's there for :)
@@ -157,9 +157,6 @@
wcout << locPacketDataWString << endl;
}
- if (locDidParseClip) {
- cout << locPacketStartTimeInSeconds << " seconds:" << endl;
- }
wcout << locCMMLTag->toString() << endl;
delete locCMMLTag;
@@ -198,6 +195,10 @@
fstream locInputFile;
+ // Output XML preabmel
+ cout << "<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?>" << endl;
+ cout << "<!DOCTYPE cmml SYSTEM \"cmml.dtd\">" << endl;
+
// Let's go!
const unsigned short BUFF_SIZE = 8092;
More information about the commits
mailing list