00001 /* 00002 Free Download Manager Copyright (c) 2003-2007 FreeDownloadManager.ORG 00003 Open Download Manager Copyright (c) 2008-2010 OpenDownloadManager.ORG 00004 */ 00005 00006 #include "fsFileReader.h" 00007 00008 #ifdef _DEBUG 00009 #undef THIS_FILE 00010 static char THIS_FILE[]=__FILE__; 00011 #define new DEBUG_NEW 00012 #endif 00013 00014 fsFileReader::fsFileReader(fsFileStream* pStream, HRESULT* phr) : 00015 CAsyncReader (NAME("File Reader"), NULL, pStream, phr) 00016 { 00017 if (pStream->Get_MediaType ()) 00018 m_mt = *pStream->Get_MediaType (); 00019 } 00020 00021 fsFileReader::~fsFileReader() 00022 { 00023 00024 } 00025 00026 void fsFileReader::Set_MediaType(const AM_MEDIA_TYPE *mt) 00027 { 00028 m_mt = *mt; 00029 }
1.5.6