[xiph-commits] r10252 -
branches/oggdsf_new_demux/src/lib/core/directshow/dsfOggDemux2
illiminable at svn.xiph.org
illiminable at svn.xiph.org
Sat Oct 22 09:45:02 PDT 2005
Author: illiminable
Date: 2005-10-22 09:44:58 -0700 (Sat, 22 Oct 2005)
New Revision: 10252
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 stream, file, and demux locks
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 16:30:36 UTC (rev 10251)
+++ branches/oggdsf_new_demux/src/lib/core/directshow/dsfOggDemux2/OggDemuxPageSourceFilter.cpp 2005-10-22 16:44:58 UTC (rev 10252)
@@ -99,10 +99,17 @@
OggDemuxPageSourceFilter::OggDemuxPageSourceFilter(void)
: CBaseFilter(NAME("OggDemuxPageSourceFilter"), NULL, m_pLock, CLSID_OggDemuxPageSourceFilter)
{
+ //Why do we do this, should the base class do it ?
+ m_pLock = new CCritSec;
+
+ mSourceFileLock = new CCritSec;
+ mDemuxLock = new CCritSec;
+ mStreamLock = new CCritSec;
}
OggDemuxPageSourceFilter::~OggDemuxPageSourceFilter(void)
{
+ //TODO::: Delete the locks
}
//IMEdiaStreaming
STDMETHODIMP OggDemuxPageSourceFilter::Run(REFERENCE_TIME tStart)
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 16:30:36 UTC (rev 10251)
+++ branches/oggdsf_new_demux/src/lib/core/directshow/dsfOggDemux2/OggDemuxPageSourceFilter.h 2005-10-22 16:44:58 UTC (rev 10252)
@@ -92,4 +92,8 @@
protected:
virtual HRESULT SetUpPins();
+
+ CCritSec* mSourceFileLock;
+ CCritSec* mDemuxLock;
+ CCritSec* mStreamLock;
};
More information about the commits
mailing list