Author: robux4
Date: 2005-01-05 18:54:27 +0300 (Wed, 05 Jan 2005)
New Revision: 1009
Modified:
trunk/DvdMenuXtractor/DvdMenuXtractor.cpp
trunk/DvdMenuXtractor/IFOFile.cpp
trunk/DvdMenuXtractor/README.txt
trunk/DvdMenuXtractor/VobParser.cpp
Log:
DMX: fix the log messages
Modified: trunk/DvdMenuXtractor/DvdMenuXtractor.cpp
===================================================================
--- trunk/DvdMenuXtractor/DvdMenuXtractor.cpp 2005-01-05 15:04:43 UTC (rev 1008)
+++ trunk/DvdMenuXtractor/DvdMenuXtractor.cpp 2005-01-05 15:54:27 UTC (rev 1009)
@@ -57,7 +57,7 @@
va_list va;
va_start(va, format);
if(f == stderr)
- wxLogError(wxString::FormatV(format,va).Trim());
+ wxLogWarning(wxString::FormatV(format,va).Trim());
else
wxLogMessage(wxString::FormatV(format,va).Trim());
}
@@ -692,7 +692,7 @@
break;
default:
- myfprintf(stderr, "Unknown audio format %d", _attr->audio_format);
+ wxLogError("Unknown audio format %d", _attr->audio_format);
break;
}
}
@@ -1144,7 +1144,7 @@
{
if (!IfoFile)
{
- myfprintf(stderr, "No IFO file loaded !");
+ wxLogError("No IFO file loaded !");
return;
}
@@ -1369,6 +1369,7 @@
m_lbStep->SetLabel(StepString);
m_txtDemuxLog->AppendText(StepString+"\n");
m_lbStep->Update();
+
VobParser *aVobParser = BuildVobMap(title, language);
if (aVobParser != NULL)
Modified: trunk/DvdMenuXtractor/IFOFile.cpp
===================================================================
--- trunk/DvdMenuXtractor/IFOFile.cpp 2005-01-05 15:04:43 UTC (rev 1008)
+++ trunk/DvdMenuXtractor/IFOFile.cpp 2005-01-05 15:54:27 UTC (rev 1009)
@@ -59,7 +59,7 @@
}
catch (...)
{
- myfprintf(stderr, "Cannot open VIDEO_TS.IFO");
+ wxLogError("Cannot open VIDEO_TS.IFO");
}
IfoContent *_ifo = m_ifos.GetIfoTitle(0);
@@ -73,7 +73,7 @@
}
catch (...)
{
- myfprintf(stderr, "Cannot open VTS_%02d_X.IFO", i);
+ wxLogError("Cannot open VTS_%02d_X.IFO", i);
}
}
}
@@ -237,9 +237,9 @@
cle->isStill = (srp.pgc->cell_playback[k].still_time > 0);
if (cle->isStill)
{
- myfprintf(stdout, "Still cell (%d.%d) detected. Assuming there is just one frame.", vob_id, cell_id);
+ wxLogWarning("Still cell (%d.%d) detected. Assuming there is just one frame.", vob_id, cell_id);
if (srp.pgc->cell_playback[k].still_time == 0xFF) {
- myfprintf(stderr, "Cell %d.%d with still infinite duration !", vob_id, cell_id);
+ wxLogWarning("Cell %d.%d with still infinite duration !", vob_id, cell_id);
} else {
cle->nb_frames = 1; // maybe not true ?
cle->frame_dur = srp.pgc->cell_playback[k].still_time * 1000.0 / cle->nb_frames;
Modified: trunk/DvdMenuXtractor/README.txt
===================================================================
--- trunk/DvdMenuXtractor/README.txt 2005-01-05 15:04:43 UTC (rev 1008)
+++ trunk/DvdMenuXtractor/README.txt 2005-01-05 15:54:27 UTC (rev 1009)
@@ -3,7 +3,6 @@
* make use of the cancel buttons
* store the palette for subs
* verify (and fix) the frame and cluster timecodes from mkvmerge
-* avoid opening .VOB files we know won't exist
* generate the d2v file ?
* allow skipping DVD parts when extracting (VMG, VTSM, VTS)
* allow selection of stream output (audio & subs languages)
Modified: trunk/DvdMenuXtractor/VobParser.cpp
===================================================================
--- trunk/DvdMenuXtractor/VobParser.cpp 2005-01-05 15:04:43 UTC (rev 1008)
+++ trunk/DvdMenuXtractor/VobParser.cpp 2005-01-05 15:54:27 UTC (rev 1009)
@@ -60,7 +60,7 @@
#else
#define inc_lvl()
#define dec_lvl()
-#define DebugLog wxLogMessage
+#define DebugLog wxLogDebug
#endif
// ----------------------------------------------------------------------------
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.