[xiph-commits] r8752 - trunk/oggdsf/src/lib/codecs/cmml/libCMMLTags

illiminable at motherfish-iii.xiph.org illiminable at motherfish-iii.xiph.org
Thu Jan 13 20:01:39 PST 2005


Author: illiminable
Date: 2005-01-13 20:01:38 -0800 (Thu, 13 Jan 2005)
New Revision: 8752

Modified:
   trunk/oggdsf/src/lib/codecs/cmml/libCMMLTags/C_HeadTag.cpp
   trunk/oggdsf/src/lib/codecs/cmml/libCMMLTags/C_HeadTag.h
Log:
* Fix a bug in the head tags.

Modified: trunk/oggdsf/src/lib/codecs/cmml/libCMMLTags/C_HeadTag.cpp
===================================================================
--- trunk/oggdsf/src/lib/codecs/cmml/libCMMLTags/C_HeadTag.cpp	2005-01-13 20:32:31 UTC (rev 8751)
+++ trunk/oggdsf/src/lib/codecs/cmml/libCMMLTags/C_HeadTag.cpp	2005-01-14 04:01:38 UTC (rev 8752)
@@ -71,6 +71,11 @@
 	delete mTitle;
 	mTitle = inTitle;
 }
+
+void C_HeadTag::setMetaList(C_MetaTagList* inMetaList) {
+	delete mMetaList;
+	mMetaList = inMetaList;
+}
 void C_HeadTag::setBase(C_BaseTag* inBase) {
 	delete mBase;
 	mBase = inBase;
@@ -81,10 +86,11 @@
 	C_HumReadCMMLTag::privateClone(outTag);
 	C_HeadTag* locTag = reinterpret_cast<C_HeadTag*>(outTag);
 	locTag->setProfile(mProfile);
-	//locTag->mTitle = mTitle;
+	
 	if (mBase != NULL) {
 		locTag->setBase(mBase->clone());
 	}
+	locTag->setMetaList(mMetaList->clone());
 	locTag->setTitle(mTitle->clone());
 }
 C_CMMLTag* C_HeadTag::genericClone() {

Modified: trunk/oggdsf/src/lib/codecs/cmml/libCMMLTags/C_HeadTag.h
===================================================================
--- trunk/oggdsf/src/lib/codecs/cmml/libCMMLTags/C_HeadTag.h	2005-01-13 20:32:31 UTC (rev 8751)
+++ trunk/oggdsf/src/lib/codecs/cmml/libCMMLTags/C_HeadTag.h	2005-01-14 04:01:38 UTC (rev 8752)
@@ -73,6 +73,9 @@
 	/// Sets the base tag for this element. You give away your pointer.
 	void setBase(C_BaseTag* inBase);
 
+	/// Sets the metalist used for this element. You give away your pointer.
+	void setMetaList(C_MetaTagList* inMetaList);
+
 	/// Returns an xml representation of this tag.
 	virtual wstring toString();
 



More information about the commits mailing list