diff --git a/ebml/EbmlElement.h b/ebml/EbmlElement.h index 1b8724e8..25a82d13 100644 --- a/ebml/EbmlElement.h +++ b/ebml/EbmlElement.h @@ -246,6 +246,7 @@ class DllApi x : public BaseClass { \ #define EBML_CONTEXT(e) tEBML_CONTEXT(e) #define EBML_NAME(e) tEBML_NAME(e) #define EBML_SPEC(e) tEBML_SPEC(e) +#define EBML_CREATE(e) EBML_INFO_CREATE(EBML_SPEC(e)) #define EBML_INFO_ID(cb) tEBML_INFO_ID(cb) #define EBML_INFO_NAME(cb) tEBML_INFO_NAME(cb) diff --git a/src/EbmlMaster.cpp b/src/EbmlMaster.cpp index 31132842..cf6a4b6c 100644 --- a/src/EbmlMaster.cpp +++ b/src/EbmlMaster.cpp @@ -253,7 +253,7 @@ EbmlElement *EbmlMaster::FindNextElt(const EbmlElement & PastElt, bool bCreateIf if (bCreateIfNull) { // add the element - EbmlElement *NewElt = &(PastElt.CreateElement()); + EbmlElement *NewElt = &(EBML_CREATE(PastElt)); if (!PushElement(*NewElt)) { delete NewElt;