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

illiminable at svn.xiph.org illiminable at svn.xiph.org
Sun Oct 23 03:54:39 PDT 2005


Author: illiminable
Date: 2005-10-23 03:54:34 -0700 (Sun, 23 Oct 2005)
New Revision: 10266

Modified:
   branches/oggdsf_new_demux/src/lib/core/directshow/dsfOggDemux2/OggDemuxPacketSourcePin.cpp
   branches/oggdsf_new_demux/src/lib/core/directshow/dsfOggDemux2/OggDemuxPacketSourcePin.h
Log:
* Implement pin streaming methods, begin/end flush, eos, and newsegment

Modified: branches/oggdsf_new_demux/src/lib/core/directshow/dsfOggDemux2/OggDemuxPacketSourcePin.cpp
===================================================================
--- branches/oggdsf_new_demux/src/lib/core/directshow/dsfOggDemux2/OggDemuxPacketSourcePin.cpp	2005-10-23 10:49:55 UTC (rev 10265)
+++ branches/oggdsf_new_demux/src/lib/core/directshow/dsfOggDemux2/OggDemuxPacketSourcePin.cpp	2005-10-23 10:54:34 UTC (rev 10266)
@@ -274,4 +274,31 @@
 		delete inPacket;
 		return true;
 	}
+}
+
+//Pin streaming methods
+HRESULT OggDemuxPacketSourcePin::DeliverNewSegment(REFERENCE_TIME tStart, REFERENCE_TIME tStop, double dRate)
+{
+	NewSegment(tStart, tStop, dRate);
+
+	mDataQueue->NewSegment(tStart, tStop, dRate);
+
+	return S_OK;
+}
+HRESULT OggDemuxPacketSourcePin::DeliverEndOfStream(void)
+{
+	mDataQueue->EOS();
+    return S_OK;
+}
+
+HRESULT OggDemuxPacketSourcePin::DeliverEndFlush(void)
+{
+	mDataQueue->EndFlush();
+    return S_OK;
+}
+
+HRESULT OggDemuxPacketSourcePin::DeliverBeginFlush(void)
+{
+	mDataQueue->BeginFlush();
+    return S_OK;
 }
\ No newline at end of file

Modified: branches/oggdsf_new_demux/src/lib/core/directshow/dsfOggDemux2/OggDemuxPacketSourcePin.h
===================================================================
--- branches/oggdsf_new_demux/src/lib/core/directshow/dsfOggDemux2/OggDemuxPacketSourcePin.h	2005-10-23 10:49:55 UTC (rev 10265)
+++ branches/oggdsf_new_demux/src/lib/core/directshow/dsfOggDemux2/OggDemuxPacketSourcePin.h	2005-10-23 10:54:34 UTC (rev 10266)
@@ -73,6 +73,12 @@
 	//Pin Conenction Methods
 	virtual HRESULT BreakConnect();
 	virtual HRESULT CompleteConnect(IPin *inReceivePin);
+
+	//Pin streaming methods
+	virtual HRESULT DeliverNewSegment(REFERENCE_TIME inStart, REFERENCE_TIME inStop, double inRate);
+	virtual HRESULT DeliverEndOfStream(void);
+	virtual HRESULT DeliverEndFlush(void);
+	virtual HRESULT DeliverBeginFlush(void);
 protected:
 	//IStampedOggPacketSink
 	virtual bool acceptStampedOggPacket(StampedOggPacket* inPacket);



More information about the commits mailing list