[xiph-commits] r8385 -
trunk/oggdsf/src/lib/core/directshow/dsfAnxDemux
illiminable at motherfish-iii.xiph.org
illiminable at motherfish-iii.xiph.org
Tue Dec 14 06:06:38 PST 2004
Author: illiminable
Date: 2004-12-14 06:06:37 -0800 (Tue, 14 Dec 2004)
New Revision: 8385
Modified:
trunk/oggdsf/src/lib/core/directshow/dsfAnxDemux/AnxStreamMapper.cpp
Log:
* Bit of a hack to work around weird packet order.
Modified: trunk/oggdsf/src/lib/core/directshow/dsfAnxDemux/AnxStreamMapper.cpp
===================================================================
--- trunk/oggdsf/src/lib/core/directshow/dsfAnxDemux/AnxStreamMapper.cpp 2004-12-14 13:43:47 UTC (rev 8384)
+++ trunk/oggdsf/src/lib/core/directshow/dsfAnxDemux/AnxStreamMapper.cpp 2004-12-14 14:06:37 UTC (rev 8385)
@@ -59,6 +59,17 @@
bool locWasAny = false;
//Use 1 instead of 0... cmml is always ready and terminates the graph creation early.
//We want to know when everything else is ready.
+
+ //XXXXXXXXXXXXXX:::: Big dirty hack to deal with badly ordered header packets !!
+ //=======================================================================
+ //The side effect is... a file will hang if it has unknown streams.
+ //=======================================================================
+ if (mSeenStreams.size() == 0) {
+ retVal = true;
+ } else {
+ retVal = false;
+ }
+
for (unsigned long i = 1; i < mStreamList.size(); i++) {
locWasAny = true;
retVal = retVal && mStreamList[i]->streamReady();
@@ -69,6 +80,7 @@
//debugLog<<"NOT READY !!!!"<<endl;
}
}
+ //=======================================================================
if (locWasAny && retVal) {
//debugLog<<"Streams READY"<<endl;
} else {
More information about the commits
mailing list