[xiph-commits] r10243 - branches/oggdsf_new_demux/src/lib/core/directshow/dsfOggDemux2

illiminable at svn.xiph.org illiminable at svn.xiph.org
Sat Oct 22 01:18:57 PDT 2005


Author: illiminable
Date: 2005-10-22 01:18:52 -0700 (Sat, 22 Oct 2005)
New Revision: 10243

Modified:
   branches/oggdsf_new_demux/src/lib/core/directshow/dsfOggDemux2/OggDemuxPageSourceFilter.cpp
   branches/oggdsf_new_demux/src/lib/core/directshow/dsfOggDemux2/OggDemuxPageSourceFilter.h
Log:
* Add skeleton threadproc for multi-threaded data processing

Modified: branches/oggdsf_new_demux/src/lib/core/directshow/dsfOggDemux2/OggDemuxPageSourceFilter.cpp
===================================================================
--- branches/oggdsf_new_demux/src/lib/core/directshow/dsfOggDemux2/OggDemuxPageSourceFilter.cpp	2005-10-22 08:16:12 UTC (rev 10242)
+++ branches/oggdsf_new_demux/src/lib/core/directshow/dsfOggDemux2/OggDemuxPageSourceFilter.cpp	2005-10-22 08:18:52 UTC (rev 10243)
@@ -151,3 +151,25 @@
 {
 	return AM_FILTER_MISC_FLAGS_IS_SOURCE;
 }
+
+//CAMThread Stuff
+DWORD OggDemuxPageSourceFilter::ThreadProc(void) {
+	
+	//while(true) {
+	//	DWORD locThreadCommand = GetRequest();
+	//
+	//	switch(locThreadCommand) {
+	//		case THREAD_EXIT:
+	//
+	//			Reply(S_OK);
+	//			return S_OK;
+
+	//		case THREAD_RUN:
+	//
+	//			Reply(S_OK);
+	//			DataProcessLoop();
+	//			break;
+	//	}
+	//}
+	return S_OK;
+}

Modified: branches/oggdsf_new_demux/src/lib/core/directshow/dsfOggDemux2/OggDemuxPageSourceFilter.h
===================================================================
--- branches/oggdsf_new_demux/src/lib/core/directshow/dsfOggDemux2/OggDemuxPageSourceFilter.h	2005-10-22 08:16:12 UTC (rev 10242)
+++ branches/oggdsf_new_demux/src/lib/core/directshow/dsfOggDemux2/OggDemuxPageSourceFilter.h	2005-10-22 08:18:52 UTC (rev 10243)
@@ -32,7 +32,7 @@
 
 class OggDemuxPageSourceFilter
 	:	public CBaseFilter
-	//,	public CAMThread
+	,	public CAMThread
 	,	public IFileSourceFilter
 	//,	public IOggCallback
 	//,	public BasicSeekPassThrough
@@ -55,6 +55,9 @@
 	virtual int GetPinCount();
 	virtual CBasePin* GetPin(int inPinNo);
 
+	//PURE VIRTUALS from CAMThread
+	virtual DWORD ThreadProc(void);
+
 	//IFileSource Interface
 	virtual STDMETHODIMP GetCurFile(LPOLESTR* outFileName, AM_MEDIA_TYPE* outMediaType);
 	virtual STDMETHODIMP Load(LPCOLESTR inFileName, const AM_MEDIA_TYPE* inMediaType);



More information about the commits mailing list