[matroska] r921 - trunk/DvdMenuXtractor

[email protected]
Newsgroups gmane.comp.multimedia.matroska.cvs
Message-ID <[email protected]>
Author: robux4
Date: 2004-10-26 16:58:23 +0400 (Tue, 26 Oct 2004)
New Revision: 921

Modified:
   trunk/DvdMenuXtractor/VobParser.cpp
   trunk/DvdMenuXtractor/VobParser.h
Log:
remove more unused code

Modified: trunk/DvdMenuXtractor/VobParser.cpp
===================================================================
--- trunk/DvdMenuXtractor/VobParser.cpp	2004-10-26 12:39:11 UTC (rev 920)
+++ trunk/DvdMenuXtractor/VobParser.cpp	2004-10-26 12:58:23 UTC (rev 921)
@@ -233,7 +233,7 @@
 			{
 				m_bFirstPacket = false;
 				m_startdts = pktinfo.dts;
-				m_startpts = pktinfo.pts;
+				m_startpts = pktinfo.dts /*pktinfo.pts*/;
 			}
 		}
 		else
@@ -241,11 +241,6 @@
 			DebugLog("Unknown start code\n");
 		}
 		
-		if(m_demuxer)
-		{
-			m_demuxer->ProcessVOBStream(m_buff,DVD_VIDEO_LB_LEN);
-		}
-
 		m_pktindex++;
 	}
 	else

Modified: trunk/DvdMenuXtractor/VobParser.h
===================================================================
--- trunk/DvdMenuXtractor/VobParser.h	2004-10-26 12:39:11 UTC (rev 920)
+++ trunk/DvdMenuXtractor/VobParser.h	2004-10-26 12:58:23 UTC (rev 921)
@@ -161,7 +161,6 @@
 	virtual ~Demuxer() {}
 	virtual void ProcessVideoStream(uint8_t* buff, uint32_t size, int32_t delay) {}
 	virtual void ProcessAudioStream(uint8_t* buff, uint32_t size, uint8_t streamID, int32_t delay) {}
-	virtual void ProcessVOBStream(uint8_t* buff, uint32_t size) {}
 	virtual void ProcessAC3Stream(uint8_t* buff, uint32_t size, uint8_t streamID, int32_t delay) {}
 	virtual void ProcessLPCMStream(uint8_t* buff, uint32_t size, uint8_t streamID, int32_t delay) {}
 	virtual void ProcessDTSStream(uint8_t* buff, uint32_t size, uint8_t streamID, int32_t delay) {}
@@ -211,7 +210,7 @@
 			m_TimecodeFile = fopen(m_filename.c_str(),"w");
 			fwrite("# timecode format v2\n", 1, 21, m_TimecodeFile);
 		}
-		wxString _timecode = wxString::Format("%d\n", delay);
+		wxString _timecode = wxString::Format("%d (%d)\n", delay, ftell(m_TimecodeFile));
 		fwrite(_timecode.c_str(), 1, _timecode.length(), m_TimecodeFile);
 	}
 protected:
@@ -349,16 +348,6 @@
 		}		
 	}
 
-	void ProcessVOBStream(uint8_t* buff, uint32_t size)
-	{
-		Demuxer* demuxCursor = m_demuxerRoot;
-		while(demuxCursor)
-		{
-			demuxCursor->ProcessVOBStream(buff,size);
-			demuxCursor = demuxCursor->m_next;
-		}		
-	}
-
 	void ProcessAudioStream(uint8_t* buff, uint32_t size, uint8_t streamID, int32_t delay)
 	{
 		Demuxer* demuxCursor = m_demuxerRoot;
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.