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

illiminable at svn.xiph.org illiminable at svn.xiph.org
Sun Oct 23 07:35:59 PDT 2005


Author: illiminable
Date: 2005-10-23 07:35:56 -0700 (Sun, 23 Oct 2005)
New Revision: 10275

Modified:
   branches/oggdsf_new_demux/src/lib/core/directshow/dsfOggDemux2/OggStreamMapper.cpp
Log:
* Change state in stream mapper so if it accidentally sees another BOS, it doesn't try and create another pin for it.

Modified: branches/oggdsf_new_demux/src/lib/core/directshow/dsfOggDemux2/OggStreamMapper.cpp
===================================================================
--- branches/oggdsf_new_demux/src/lib/core/directshow/dsfOggDemux2/OggStreamMapper.cpp	2005-10-23 14:20:44 UTC (rev 10274)
+++ branches/oggdsf_new_demux/src/lib/core/directshow/dsfOggDemux2/OggStreamMapper.cpp	2005-10-23 14:35:56 UTC (rev 10275)
@@ -35,10 +35,12 @@
 			//Partial fall through
 		case STRMAP_PARSING_BOS_PAGES:
 			//WARNING::: Partial fall through
-			if (inOggPage->header()->isBOS()) {
-				return addNewPin(inOggPage);
-			} else {
-				mStreamState = STRMAP_DATA;
+			if (!allStreamsReady()) {
+				if (inOggPage->header()->isBOS()) {
+					return addNewPin(inOggPage);
+				} else {
+					mStreamState = STRMAP_DATA;
+				}
 			}
 			//Partial fall through
 		case STRMAP_DATA:



More information about the commits mailing list