[xiph-commits] r8508 - trunk/oggdsf/src/lib/core/ogg/libOOOgg

illiminable at motherfish-iii.xiph.org illiminable at motherfish-iii.xiph.org
Tue Dec 21 08:34:06 PST 2004


Author: illiminable
Date: 2004-12-21 08:34:06 -0800 (Tue, 21 Dec 2004)
New Revision: 8508

Modified:
   trunk/oggdsf/src/lib/core/ogg/libOOOgg/OggMuxStream.cpp
Log:
* Fixed a quirk where with some extra filters a stray bit of audio from the start of the stream would end up at the end.

Modified: trunk/oggdsf/src/lib/core/ogg/libOOOgg/OggMuxStream.cpp
===================================================================
--- trunk/oggdsf/src/lib/core/ogg/libOOOgg/OggMuxStream.cpp	2004-12-21 15:51:09 UTC (rev 8507)
+++ trunk/oggdsf/src/lib/core/ogg/libOOOgg/OggMuxStream.cpp	2004-12-21 16:34:06 UTC (rev 8508)
@@ -66,9 +66,14 @@
 		int x = 0;
 		x= x/x;
 	}
-	mPageQueue.push_back(inOggPage);		//AOP::: Clone not required.
-	mNotifier->notifyArrival();
-	return true;
+	if (!mIsEOS) {
+		mPageQueue.push_back(inOggPage);		//AOP::: Clone not required.
+		mNotifier->notifyArrival();
+		return true;
+	} else {
+		delete inOggPage;
+		return true;
+	}
 }
 
 bool OggMuxStream::pushFront(OggPage* inOggPage) {



More information about the commits mailing list