From: Jeremy S. <je...@us...> - 2003-04-25 20:22:06
|
CVS Root: /cvsroot/gstreamer Module: gst-plugins Changes by: jesimon Date: Fri Apr 25 2003 13:22:04 PDT Log message: workaround to support APE Tag v2 Modified files: gst/monkeyaudio/libmonkeyaudio: APETag.cpp Links: http://cvs.sf.net/cgi-bin/viewcvs.cgi/gstreamer/gst-plugins/gst/monkeyaudio/libmonkeyaudio/APETag.cpp.diff?r1=1.1&r2=1.2 ====Begin Diffs==== Index: APETag.cpp =================================================================== RCS file: /cvsroot/gstreamer/gst-plugins/gst/monkeyaudio/libmonkeyaudio/APETag.cpp,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- APETag.cpp 11 Mar 2003 19:33:32 -0000 1.1 +++ APETag.cpp 25 Apr 2003 20:21:50 -0000 1.2 @@ -240,10 +240,11 @@ APE_TAG_FOOTER APETagFooter; m_spIO->Seek(-int(sizeof(APE_TAG_FOOTER)), FILE_END); nRetVal = m_spIO->Read((unsigned char *) &APETagFooter, sizeof(APE_TAG_FOOTER), &nBytesRead); + if ((nBytesRead == sizeof(APE_TAG_FOOTER)) && (nRetVal == 0)) { if ((strncmp(APETagFooter.cID, "APETAGEX", 8) == 0) && - (APETagFooter.nVersion <= CURRENT_APE_TAG_VERSION) && + /*(APETagFooter.nVersion <= CURRENT_APE_TAG_VERSION) &&*/ (APETagFooter.nFields <= 65536) && (APETagFooter.nSize <= (1024 * 1024 * 16))) { |