<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style></head>
<body class='hmmessage'><div dir='ltr'>
Hi,<div><br></div><div>If Matroska if is not exist the program will crash.</div><div><br></div><div>1. In MatroskaFile.cpp </div><div><br></div><div><div>fParserForInitialization</div><div><span class="Apple-tab-span" style="white-space:pre"> </span>= new MatroskaFileParser(*this, ByteStreamFileSource::createNew(envir(), fileName),</div><div><span class="Apple-tab-span" style="white-space:pre"> </span>handleEndOfTrackHeaderParsing, this, NULL); </div></div><div><br></div><div>2. In MatroskaFileParser.cpp</div><div><br></div><div><div> if (ourDemux == NULL) {</div><div> // Initialization</div><div> fCurrentParseState = PARSING_START_OF_FILE;</div><div> continueParsing();</div><div> }</div></div><div><br></div><div><div>void MatroskaFileParser::continueParsing() {</div><div> // ...</div><div> if (fOnEndFunc != NULL) (*fOnEndFunc)(fOnEndClientData);</div><div>}</div></div><div><br></div><div>3. In MatroskaFile.cpp</div><div><br></div><div><div>void MatroskaFile::handleEndOfTrackHeaderParsing() {</div><div> // Delete our parser, because it's done its job now:</div><div><br></div><div>// <font color="#ff0000">if Matroska file is not exist, the fParserForInitialization is a invalid pointer.</font></div><div> <font color="#ff0000"> delete fParserForInitialization; fParserForInitialization = NULL; </font></div><div><br></div><div> // Finally, signal our caller that we've been created and initialized:</div><div> if (fOnCreation != NULL) (*fOnCreation)(this, fOnCreationClientData);</div><div>}</div></div> </div></body>
</html>