[xiph-commits] r8030 -
trunk/oggdsf/src/lib/codecs/flac/libs/libFLACHelper
illiminable at motherfish-iii.xiph.org
illiminable at motherfish-iii.xiph.org
Sat Oct 16 09:19:09 PDT 2004
Author: illiminable
Date: 2004-10-16 09:19:09 -0700 (Sat, 16 Oct 2004)
New Revision: 8030
Modified:
trunk/oggdsf/src/lib/codecs/flac/libs/libFLACHelper/FLACPushDecoder.cpp
trunk/oggdsf/src/lib/codecs/flac/libs/libFLACHelper/FLACPushDecoder.h
Log:
* Fixed a few things.
Modified: trunk/oggdsf/src/lib/codecs/flac/libs/libFLACHelper/FLACPushDecoder.cpp
===================================================================
--- trunk/oggdsf/src/lib/codecs/flac/libs/libFLACHelper/FLACPushDecoder.cpp 2004-10-16 15:34:56 UTC (rev 8029)
+++ trunk/oggdsf/src/lib/codecs/flac/libs/libFLACHelper/FLACPushDecoder.cpp 2004-10-16 16:19:09 UTC (rev 8030)
@@ -8,6 +8,7 @@
, mFrameSize(0)
, mSampleRate(0)
, mBegun(false)
+ , mGotMetaData(false)
{
}
@@ -24,6 +25,17 @@
void FLACPushDecoder::flushCodec() {
flush();
}
+
+bool FLACPushDecoder::acceptMetadata(OggPacket* inPacket) {
+ delete mInPacket;
+ mInPacket = inPacket;
+ bool locMetaOK = process_until_end_of_metadata();
+ delete mInPacket;
+ mInPacket = NULL;
+ delete mOutPacket;
+ mOutPacket = NULL;
+ return locMetaOK;
+}
StampedOggPacket* FLACPushDecoder::decodeFLAC(OggPacket* inPacket) {
//Basically puts the incoming packet into the member variable.
//Calls process_single() and the read call back is fired.
Modified: trunk/oggdsf/src/lib/codecs/flac/libs/libFLACHelper/FLACPushDecoder.h
===================================================================
--- trunk/oggdsf/src/lib/codecs/flac/libs/libFLACHelper/FLACPushDecoder.h 2004-10-16 15:34:56 UTC (rev 8029)
+++ trunk/oggdsf/src/lib/codecs/flac/libs/libFLACHelper/FLACPushDecoder.h 2004-10-16 16:19:09 UTC (rev 8030)
@@ -12,6 +12,7 @@
virtual ~FLACPushDecoder(void);
StampedOggPacket* decodeFLAC(OggPacket* inPacket);
+ bool acceptMetadata(OggPacket* inPacket);
void initCodec();
void flushCodec();
@@ -30,5 +31,6 @@
OggPacket* mInPacket;
StampedOggPacket* mOutPacket;
bool mBegun;
+ bool mGotMetaData;
};
More information about the commits
mailing list