[matroska] r1152 - trunk/DvdMenuXtractor
[email protected] Tue, 26 Apr 2005 01:04:43 +0400 (MSD)
| Newsgroups | gmane.comp.multimedia.matroska.cvs |
|---|---|
| Message-ID | <[email protected]> |
Author: robux4
Date: 2005-04-26 01:04:42 +0400 (Tue, 26 Apr 2005)
New Revision: 1152
Modified:
trunk/DvdMenuXtractor/DvdMenuXtractor.cpp
Log:
DMX: GotoAndPlay up to the PGC to use the Enter/Leave commands
Modified: trunk/DvdMenuXtractor/DvdMenuXtractor.cpp
===================================================================
--- trunk/DvdMenuXtractor/DvdMenuXtractor.cpp 2005-04-24 07:20:37 UTC (rev 1151)
+++ trunk/DvdMenuXtractor/DvdMenuXtractor.cpp 2005-04-25 21:04:42 UTC (rev 1152)
@@ -72,7 +72,7 @@
wxString outputDirectory;
wxString mtxDirectory;
const wxString APPLICATION_NAME = "DVDMenuXtractor: DMX - a fair-use tool";
-const wxString APPLICATION_VERSION = "0.9.7";
+const wxString APPLICATION_VERSION = "0.9.8";
// ----------------------------------------------------------------------------
@@ -927,7 +927,7 @@
return result;
}
- uint64_t OutputProgram(int lvl, wxTextFile & XmlFile, const pgc_t * pgc, int program_number, const CellsListType & cell_list, int16_t pgc_num, const ttu_t * ptts, int title) const
+ uint64_t OutputProgram(int lvl, wxTextFile & XmlFile, const pgc_t * pgc, const wxString PgcUID, int program_number, const CellsListType & cell_list, int16_t pgc_num, const ttu_t * ptts, int title) const
{
static unsigned char _PrivatePTT[] = {0x10, 0x00};
static unsigned char _PrivatePG[] = {0x18, 0x00, 0x00};
@@ -1034,7 +1034,7 @@
XmlFile.AddLine(IndentString(lvl)+"<ChapterProcessCommand>");
lvl++;
XmlFile.AddLine(IndentString(lvl)+"<ChapterProcessTime>2</ChapterProcessTime>");
- XmlFile.AddLine(IndentString(lvl)+"<ChapterProcessData format=\"ascii\">GotoAndPlay("+_myUID+");</ChapterProcessData>");
+ XmlFile.AddLine(IndentString(lvl)+"<ChapterProcessData format=\"ascii\">GotoAndPlay("+PgcUID+");</ChapterProcessData>");
lvl--;
XmlFile.AddLine(IndentString(lvl)+"</ChapterProcessCommand>");
lvl--;
@@ -1105,7 +1105,7 @@
// Handle the Programs/Cells in the PGC
for (int i=0; i< pgc->nr_of_programs; i++)
{
- found_time = OutputProgram(lvl, XmlFile, pgc, i, cell_list, pgc_num, ptts, title);
+ found_time = OutputProgram(lvl, XmlFile, pgc, _myUID, i, cell_list, pgc_num, ptts, title);
if (start_time > found_time)
start_time = found_time;