[xiph-commits] r10197 -
trunk/oggdsf/src/lib/core/directshow/dsfAnxDemux
illiminable at svn.xiph.org
illiminable at svn.xiph.org
Thu Oct 20 02:51:17 PDT 2005
Author: illiminable
Date: 2005-10-20 02:51:13 -0700 (Thu, 20 Oct 2005)
New Revision: 10197
Modified:
trunk/oggdsf/src/lib/core/directshow/dsfAnxDemux/AnxDemuxSourceFilter.cpp
Log:
* Brutal hack to get around a bug in directshow which doesn't parse file exensions properly out of urls with query strings
Modified: trunk/oggdsf/src/lib/core/directshow/dsfAnxDemux/AnxDemuxSourceFilter.cpp
===================================================================
--- trunk/oggdsf/src/lib/core/directshow/dsfAnxDemux/AnxDemuxSourceFilter.cpp 2005-10-19 22:54:19 UTC (rev 10196)
+++ trunk/oggdsf/src/lib/core/directshow/dsfAnxDemux/AnxDemuxSourceFilter.cpp 2005-10-20 09:51:13 UTC (rev 10197)
@@ -91,8 +91,11 @@
// urls with fragments or queries, won't match the extension... so this hack is for the ff plug-in so
// that it appends another .anx after the fragment/query, which is stripped off here, before sending to the
// server.
- if (mFileName.find(L"?") != string::npos){
- mFileName = mFileName.substr(0, mFileName.size() - 4);
+
+ //NOTE::: This magic string also appears in the hacked version of dsplayer in the IE plugin.
+ //The number 18 is the length of the magic string
+ if (mFileName.find(L"XsZZfQ__WiiPFD.anx") == mFileName.size() - 18){
+ mFileName = mFileName.substr(0, mFileName.size() - 18);
}
More information about the commits
mailing list