[xiph-commits] r10273 -
branches/oggdsf_new_demux/src/lib/core/directshow/dsfOggDemux2
illiminable at svn.xiph.org
illiminable at svn.xiph.org
Sun Oct 23 05:53:06 PDT 2005
Author: illiminable
Date: 2005-10-23 05:53:01 -0700 (Sun, 23 Oct 2005)
New Revision: 10273
Modified:
branches/oggdsf_new_demux/src/lib/core/directshow/dsfOggDemux2/OggDemuxPacketSourcePin.cpp
Log:
* Allocate the buffers before setting up the output queue
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 12:33:18 UTC (rev 10272)
+++ branches/oggdsf_new_demux/src/lib/core/directshow/dsfOggDemux2/OggDemuxPacketSourcePin.cpp 2005-10-23 12:53:01 UTC (rev 10273)
@@ -194,8 +194,14 @@
}
if (mIsStreamReady) {
- mDataQueue = new COutputQueue (inReceivePin, &mFilterHR, FALSE, TRUE,1,TRUE, mNumBuffers);
- return CBaseOutputPin::CompleteConnect(inReceivePin);
+ HRESULT locHR = CBaseOutputPin::CompleteConnect(inReceivePin);
+ if (locHR == S_OK) {
+ mDataQueue = new COutputQueue (inReceivePin, &mFilterHR, FALSE, TRUE,1,TRUE, mNumBuffers);
+ return S_OK;
+ } else {
+ return locHR;
+ }
+
}
More information about the commits
mailing list