[matroska] r1231 - trunk/libmatroska/src

[email protected] Sat, 15 Oct 2005 16:34:49 +0400 (MSD)
Newsgroups gmane.comp.multimedia.matroska.cvs
Message-ID <[email protected]>
Author: robux4
Date: 2005-10-15 16:34:47 +0400 (Sat, 15 Oct 2005)
New Revision: 1231

Modified:
   trunk/libmatroska/src/KaxCuesData.cpp
Log:
libmatroska: fix compilation under gcc

Modified: trunk/libmatroska/src/KaxCuesData.cpp
===================================================================
--- trunk/libmatroska/src/KaxCuesData.cpp	2005-10-15 09:13:55 UTC (rev 1230)
+++ trunk/libmatroska/src/KaxCuesData.cpp	2005-10-15 12:34:47 UTC (rev 1231)
@@ -195,12 +195,12 @@
 */
 void KaxCueReference::AddReference(const KaxBlockBlob & BlockReference, uint64 GlobalTimecodeScale)
 {
-	const KaxInternalBlock * theBlock = &(KaxInternalBlock &)BlockReference;
+	const KaxInternalBlock & theBlock = BlockReference;
 	KaxCueRefTime & NewTime = GetChild<KaxCueRefTime>(*this);
-	*static_cast<EbmlUInteger*>(&NewTime) = theBlock->GlobalTimecode() / GlobalTimecodeScale;
+	*static_cast<EbmlUInteger*>(&NewTime) = theBlock.GlobalTimecode() / GlobalTimecodeScale;
 
 	KaxCueRefCluster & TheClustPos = GetChild<KaxCueRefCluster>(*this);
-	*static_cast<EbmlUInteger*>(&TheClustPos) = theBlock->ClusterPosition();
+	*static_cast<EbmlUInteger*>(&TheClustPos) = theBlock.ClusterPosition();
 
 #ifdef OLD
 	// handle recursive reference use