[xiph-commits] r7304 - in trunk/oggdsf/src:

illiminable at dactyl.lonelymoon.com illiminable
Sat Jul 24 00:29:12 PDT 2004


lib/core/ogg/libVorbisComment tools/OOOggCommentDump
Message-ID: <20040724072912.D85749AAAB at dactyl.lonelymoon.com>

Author: illiminable
Date: Sat Jul 24 00:29:12 2004
New Revision: 7304

Modified:
trunk/oggdsf/src/lib/core/ogg/libVorbisComment/FileComments.cpp
trunk/oggdsf/src/tools/OOOggCommentDump/OOOggCommentDump.cpp
Log:
* Comment dunp tool works again with new api.

Modified: trunk/oggdsf/src/lib/core/ogg/libVorbisComment/FileComments.cpp
===================================================================
--- trunk/oggdsf/src/lib/core/ogg/libVorbisComment/FileComments.cpp	2004-07-24 07:03:10 UTC (rev 7303)
+++ trunk/oggdsf/src/lib/core/ogg/libVorbisComment/FileComments.cpp	2004-07-24 07:29:11 UTC (rev 7304)
@@ -59,21 +59,25 @@
locStreamInfo->setComments(locVorbisComments);
locStreamInfo->setMajorStreamNo(0);   //Temp... increase for chaining
locStreamInfo->setMinorStreamNo(mMinorStreamCount);
-
+			mStreams.push_back(locStreamInfo);
mMinorStreamCount++;


} else if ((strncmp((char*)locPacket->packetData(), "\201theora", 7)) == 0) {
+			locVorbisComments = new VorbisComments;
+			locStreamInfo = new StreamCommentInfo;
bool locIsOK = locVorbisComments->parseOggPacket(locPacket, 7);
locStreamInfo->setCodecID(StreamCommentInfo::THEORA);
locStreamInfo->setPageStart(mBytePos);
locStreamInfo->setComments(locVorbisComments);
locStreamInfo->setMajorStreamNo(0);   //Temp... increase for chaining
locStreamInfo->setMinorStreamNo(mMinorStreamCount);
+			mStreams.push_back(locStreamInfo);

mMinorStreamCount++;
}
}
+	mBytePos += inOggPage->pageSize();

return true;


Modified: trunk/oggdsf/src/tools/OOOggCommentDump/OOOggCommentDump.cpp
===================================================================
--- trunk/oggdsf/src/tools/OOOggCommentDump/OOOggCommentDump.cpp	2004-07-24 07:03:10 UTC (rev 7303)
+++ trunk/oggdsf/src/tools/OOOggCommentDump/OOOggCommentDump.cpp	2004-07-24 07:29:11 UTC (rev 7304)
@@ -81,8 +81,8 @@
// USAGE :: OOOggCommentDump <OggFile>
//

+

-
if (argc < 2) {
cout<<"Usage : OOOggCommentDump <filename>"<<endl;
} else {



More information about the commits mailing list