[matroska] r1150 - trunk/DvdMenuXtractor

[email protected]
Newsgroups gmane.comp.multimedia.matroska.cvs
Message-ID <[email protected]>
Author: robux4
Date: 2005-04-23 21:52:03 +0400 (Sat, 23 Apr 2005)
New Revision: 1150

Modified:
   trunk/DvdMenuXtractor/DvdMenuXtractor.cpp
Log:
DMX: actually make the edition UID unique

Modified: trunk/DvdMenuXtractor/DvdMenuXtractor.cpp
===================================================================
--- trunk/DvdMenuXtractor/DvdMenuXtractor.cpp	2005-04-23 12:15:05 UTC (rev 1149)
+++ trunk/DvdMenuXtractor/DvdMenuXtractor.cpp	2005-04-23 17:52:03 UTC (rev 1150)
@@ -606,14 +606,13 @@
 		return wxString::Format("cell_%sT%02d_V%03d_C%02d", language?"L_":"", title, vobid, cellid);
 	}
 
-    void SplitAndDemux(VobParser * aVobParser, int16_t title, bool language)
+    void SplitAndDemux(VobParser * aVobParser, const wxString & editionUID, int16_t title, bool language)
     {
 		wxString newFilename;
 		wxString cellName;
 		wxString MtxCommandString;
 		const CellsListType *CellsList = IfoFile->GetCellsList(title, language);
 		int fOverWrite =  wxID_YES;
-		wxString editionUID = CreateUID();
 
 		if (!CellsList)
 			return;
@@ -1459,6 +1458,7 @@
    {
 		const int NbsStep = 2;
 		wxString StepString, StepStringFormat = "Step %d/%d : %s...";
+		wxString editionUID = CreateUID();
 		
 		m_OperationInProgress = TRUE;
 		m_StopOperation = false;
@@ -1494,7 +1494,7 @@
 				m_lbStep->SetLabel(StepString);
 				m_txtDemuxLog->AppendText(StepString+"\n");		
 				m_lbStep->Update();
-				SplitAndDemux(aVobParser, title, language);
+				SplitAndDemux(aVobParser, editionUID ,title, language);
 
 				if (aVobParser != NULL)
 					delete aVobParser;
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.