[matroska] r1227 - trunk/libmatroska/src
[email protected] Fri, 14 Oct 2005 01:22:00 +0400 (MSD)
| Newsgroups | gmane.comp.multimedia.matroska.cvs |
|---|---|
| Message-ID | <[email protected]> |
Author: robux4
Date: 2005-10-14 01:21:59 +0400 (Fri, 14 Oct 2005)
New Revision: 1227
Modified:
trunk/libmatroska/src/KaxCues.cpp
Log:
libmatroska: simplify the code for the backward compatibility
Modified: trunk/libmatroska/src/KaxCues.cpp
===================================================================
--- trunk/libmatroska/src/KaxCues.cpp 2005-10-13 21:16:43 UTC (rev 1226)
+++ trunk/libmatroska/src/KaxCues.cpp 2005-10-13 21:21:59 UTC (rev 1227)
@@ -108,8 +108,6 @@
{
// look for the element in the temporary references
std::vector<const KaxBlockBlob *>::iterator ListIdx;
- KaxBlockBlob &BlockReference = *(new KaxBlockBlob(BLOCK_BLOB_NO_SIMPLE));
- BlockReference.SetBlockGroup(*const_cast<KaxBlockGroup*>(&BlockRef));
for (ListIdx = myTempReferences.begin(); ListIdx != myTempReferences.end(); ListIdx++) {
const KaxInternalBlock &refTmp = **ListIdx;
@@ -117,8 +115,7 @@
refTmp.TrackNum() == BlockRef.TrackNumber()) {
// found, now add the element to the entry list
KaxCuePoint & NewPoint = AddNewChild<KaxCuePoint>(*this);
- const KaxInternalBlock &intblock = BlockReference;
- NewPoint.PositionSet(intblock, GlobalTimecodeScale());
+ NewPoint.PositionSet(refTmp, GlobalTimecodeScale());
myTempReferences.erase(ListIdx);
break;
}