[matroska] r1001 - trunk/DvdMenuXtractor

[email protected]
Newsgroups gmane.comp.multimedia.matroska.cvs
Message-ID <[email protected]>
Author: robux4
Date: 2005-01-04 23:51:14 +0300 (Tue, 04 Jan 2005)
New Revision: 1001

Modified:
   trunk/DvdMenuXtractor/DvdMenuXtractor.cpp
   trunk/DvdMenuXtractor/README.txt
Log:
DMX: fix timecodes in the XML chapters

Modified: trunk/DvdMenuXtractor/DvdMenuXtractor.cpp
===================================================================
--- trunk/DvdMenuXtractor/DvdMenuXtractor.cpp	2005-01-03 19:20:45 UTC (rev 1000)
+++ trunk/DvdMenuXtractor/DvdMenuXtractor.cpp	2005-01-04 20:51:14 UTC (rev 1001)
@@ -1112,7 +1112,7 @@
 			}
 
 			XmlFile.AddLine(IndentString(lvl)+"<!-- Program PGN#"+wxString::Format("%d",i+1)+" in this PGC -->");
-			st_time += OutputProgram(lvl, XmlFile, pgc, i, st_time);
+			st_time = OutputProgram(lvl, XmlFile, pgc, i, st_time);
 		}
 	
 		// PGC start/end times
@@ -1270,7 +1270,6 @@
 		XmlFile.AddLine(IndentString(lvl)+"<EditionEntry>");
 			lvl++;
 			XmlFile.AddLine(IndentString(lvl)+"<EditionUID>"+editionUID+"</EditionUID>");
-			XmlFile.AddLine(IndentString(lvl)+"<EditionFlagOrdered>1</EditionFlagOrdered>"); // DVD style menu
 
 			// Write the first play PGC
 			if (IfoFile->FirstPlayPGC())
@@ -1327,7 +1326,7 @@
         // Write the Video Title Set
         for (int title=1; title <= IfoFile->NumberOfTitles(); title++)
         {
-			timecode_startA = 0; // each separate DVD domain has its own standalone segment
+			timecode_endA = timecode_startA = 0; // each separate DVD domain has its own standalone segment
 
 			// VTS Menu
 			if (IfoFile->LanguageUnits(title) && IfoFile->LanguageUnits(title)->nr_of_lus)
@@ -1344,7 +1343,6 @@
 				XmlFile.AddLine(IndentString(lvl)+"<EditionEntry>");
 					lvl++;
 					XmlFile.AddLine(IndentString(lvl)+"<EditionUID>"+editionUID+"</EditionUID>");
-					XmlFile.AddLine(IndentString(lvl)+"<EditionFlagOrdered>1</EditionFlagOrdered>"); // DVD style menu
 		
 					XmlFile.AddLine(IndentString(lvl)+"<!-- Video Title Set -->");
 					XmlFile.AddLine(IndentString(lvl)+"<ChapterAtom>");
@@ -1368,7 +1366,7 @@
 				XmlFile.Write();
 			}
 
-			timecode_startA = 0; // each separate DVD domain has its own standalone segment
+			timecode_endA = timecode_startA = 0; // each separate DVD domain has its own standalone segment
 
 			// VTS content
             wxString Filename = pConfig->Read(OutputDirSaved,"") + wxString::Format("VTS%02d_menu.xml", title);
@@ -1383,7 +1381,6 @@
             XmlFile.AddLine(IndentString(lvl)+"<EditionEntry>");
                 lvl++;
                 XmlFile.AddLine(IndentString(lvl)+"<EditionUID>"+editionUID+"</EditionUID>");
-                XmlFile.AddLine(IndentString(lvl)+"<EditionFlagOrdered>1</EditionFlagOrdered>"); // DVD style menu
     
 				XmlFile.AddLine(IndentString(lvl)+"<!-- Video Title Set -->");
 				XmlFile.AddLine(IndentString(lvl)+"<ChapterAtom>");

Modified: trunk/DvdMenuXtractor/README.txt
===================================================================
--- trunk/DvdMenuXtractor/README.txt	2005-01-03 19:20:45 UTC (rev 1000)
+++ trunk/DvdMenuXtractor/README.txt	2005-01-04 20:51:14 UTC (rev 1001)
@@ -2,7 +2,6 @@
 * The duration of still frames is not handled yet (only lasts as normal frames)
 
 TODO :
-* fix the time in the XML chapter for the higher level elements
 * support infinite still frames in the chapter XML file
 * detect when a file was empty and therefore not written
 * make use of the cancel buttons
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.