[prev in list] [next in list] [prev in thread] [next in thread]
List: helix-filesystem-cvs
Subject: [Filesystem-cvs] local/full smplfsys.cpp,1.31,1.32
From: cdunn () helixcommunity ! org
Date: 2006-03-08 19:26:01
[Download RAW message or body]
Update of /cvsroot/filesystem/local/full
In directory cvs:/tmp/cvs-serv10482/full
Modified Files:
smplfsys.cpp
Log Message:
Add support for mime mapper interface off of the data file, for fileproxy mode
Index: smplfsys.cpp
===================================================================
RCS file: /cvsroot/filesystem/local/full/smplfsys.cpp,v
retrieving revision 1.31
retrieving revision 1.32
diff -u -d -r1.31 -r1.32
--- smplfsys.cpp 3 Mar 2006 23:51:43 -0000 1.31
+++ smplfsys.cpp 8 Mar 2006 19:25:59 -0000 1.32
@@ -744,6 +744,13 @@
//
STDMETHODIMP CSimpleFileObject::QueryInterface(REFIID riid, void** ppvObj)
{
+ if (riid == IID_IHXFileMimeMapper &&
+ m_bProxyMode && m_pDataFile &&
+ m_pDataFile->QueryInterface(riid, ppvObj) == HXR_OK)
+ {
+ return HXR_OK;
+ }
+
QInterfaceList qiList[] =
{
{ GET_IIDHANDLE(IID_IUnknown), this },
@@ -2117,7 +2124,11 @@
else if (ulInfo == HX_FILEADVISE_RANDOMACCESS)
{
retVal = HXR_OK;
- if (m_pProgDownMon && m_bProgDownEnabled)
+ if (m_bProxyMode)
+ {
+ retVal = HXR_ADVISE_PREFER_LINEAR;
+ }
+ else if (m_pProgDownMon && m_bProgDownEnabled)
{
// Has this file ever been progressive?
if (m_pProgDownMon->HasBeenProgressive())
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic