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

illiminable at svn.xiph.org illiminable at svn.xiph.org
Sat Oct 22 01:54:30 PDT 2005


Author: illiminable
Date: 2005-10-22 01:54:25 -0700 (Sat, 22 Oct 2005)
New Revision: 10246

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 skeletons of run, pause and stop methods

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:28:32 UTC (rev 10245)
+++ branches/oggdsf_new_demux/src/lib/core/directshow/dsfOggDemux2/OggDemuxPageSourceFilter.cpp	2005-10-22 08:54:25 UTC (rev 10246)
@@ -74,15 +74,16 @@
 		*ppv = (IFileSourceFilter*)this;
 		((IUnknown*)*ppv)->AddRef();
 		return NOERROR;
-	/*} else if (riid == IID_IMediaSeeking) {
+	} else if (riid == IID_IMediaSeeking) {
 		*ppv = (IMediaSeeking*)this;
 		((IUnknown*)*ppv)->AddRef();
-		return NOERROR;*/
-	}/* else if (riid == IID_ISpecifyPropertyPages) {
+		return NOERROR;
+	/*} else if (riid == IID_ISpecifyPropertyPages) {
 		*ppv = (ISpecifyPropertyPages*)this;
 		((IUnknown*)*ppv)->AddRef();
 		return NOERROR;
-	}*/  else if (riid == IID_IAMFilterMiscFlags) {
+	*/
+	}  else if (riid == IID_IAMFilterMiscFlags) {
 		*ppv = (IAMFilterMiscFlags*)this;
 		((IUnknown*)*ppv)->AddRef();
 		return NOERROR;
@@ -103,7 +104,59 @@
 OggDemuxPageSourceFilter::~OggDemuxPageSourceFilter(void)
 {
 }
+//IMEdiaStreaming
+STDMETHODIMP OggDemuxPageSourceFilter::Run(REFERENCE_TIME tStart) 
+{
+	//const REFERENCE_TIME A_LONG_TIME = UNITS * 1000;
+	//CAutoLock locLock(m_pLock);
+	//debugLog<<"Run  :  time = "<<tStart<<endl;
+	////DeliverNewSegment(tStart, tStart + A_LONG_TIME, 1.0);
+	//return CBaseFilter::Run(tStart);
 
+	//TODO:::
+	return E_NOTIMPL;
+	
+
+}
+STDMETHODIMP OggDemuxPageSourceFilter::Pause(void) 
+{
+	//CAutoLock locLock(m_pLock);
+	//debugLog << "** Pause called **"<<endl;
+	//if (m_State == State_Stopped) {
+	//	//debugLog << "Was in stopped state... starting thread"<<endl;
+	//	if (ThreadExists() == FALSE) {
+	//		Create();
+	//	}
+	//	CallWorker(THREAD_RUN);
+	//}
+	////debugLog<<"Was NOT is stopped state, not doing much at all..."<<endl;
+	//
+	//HRESULT locHR = CBaseFilter::Pause();
+	//
+	//return locHR;
+
+
+	//TODO:::
+	return E_NOTIMPL;
+	
+}
+STDMETHODIMP OggDemuxPageSourceFilter::Stop(void) 
+{
+	//CAutoLock locLock(m_pLock);
+	//debugLog<<"** Stop Called ** "<<endl;
+	//CallWorker(THREAD_EXIT);
+	//Close();
+	//DeliverBeginFlush();
+	//mSetIgnorePackets = true;
+	//DeliverEndFlush();
+	//
+	//return CBaseFilter::Stop();
+
+	//TODO:::
+	return E_NOTIMPL;
+
+}
+
 int OggDemuxPageSourceFilter::GetPinCount() 
 {
 	//TODO::: Implement

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:28:32 UTC (rev 10245)
+++ branches/oggdsf_new_demux/src/lib/core/directshow/dsfOggDemux2/OggDemuxPageSourceFilter.h	2005-10-22 08:54:25 UTC (rev 10246)
@@ -50,6 +50,10 @@
 	STDMETHODIMP NonDelegatingQueryInterface(REFIID riid, void **ppv);
 	static CUnknown * WINAPI CreateInstance(LPUNKNOWN pUnk, HRESULT *pHr);
 
+	//Streaming MEthods
+	STDMETHODIMP Run(REFERENCE_TIME tStart);
+	STDMETHODIMP Pause(void);
+	STDMETHODIMP Stop(void);
 
 	//PURE VIRTUALS From CBaseFilter
 	virtual int GetPinCount();



More information about the commits mailing list