Importer::Importer() { mImportPluginList = new ImportPluginList; mUnusableImportPluginList = new UnusableImportPluginList; mExtImportItems = NULL; // build the list of import plugin and/or unusableImporters. // order is significant. If none match, they will all be tried // in the order defined here. GetPCMImportPlugin(mImportPluginList, mUnusableImportPluginList); GetOGGImportPlugin(mImportPluginList, mUnusableImportPluginList); GetFLACImportPlugin(mImportPluginList, mUnusableImportPluginList); GetMP3ImportPlugin(mImportPluginList, mUnusableImportPluginList); GetLOFImportPlugin(mImportPluginList, mUnusableImportPluginList); #if defined(USE_FFMPEG) GetFFmpegImportPlugin(mImportPluginList, mUnusableImportPluginList); #endif #ifdef USE_QUICKTIME GetQTImportPlugin(mImportPluginList, mUnusableImportPluginList); #endif #if defined(USE_GSTREAMER) GetGStreamerImportPlugin(mImportPluginList, mUnusableImportPluginList); #endif ReadImportItems(); }
bool Importer::Initialize() { ImportPluginList{}.swap(mImportPluginList); UnusableImportPluginList{}.swap(mUnusableImportPluginList); ExtImportItems{}.swap(mExtImportItems); // build the list of import plugin and/or unusableImporters. // order is significant. If none match, they will all be tried // in the order defined here. GetPCMImportPlugin(mImportPluginList, mUnusableImportPluginList); GetOGGImportPlugin(mImportPluginList, mUnusableImportPluginList); GetFLACImportPlugin(mImportPluginList, mUnusableImportPluginList); GetMP3ImportPlugin(mImportPluginList, mUnusableImportPluginList); GetLOFImportPlugin(mImportPluginList, mUnusableImportPluginList); #if defined(USE_FFMPEG) GetFFmpegImportPlugin(mImportPluginList, mUnusableImportPluginList); #endif #ifdef USE_QUICKTIME GetQTImportPlugin(mImportPluginList, mUnusableImportPluginList); #endif #if defined(USE_GSTREAMER) GetGStreamerImportPlugin(mImportPluginList, mUnusableImportPluginList); #endif ReadImportItems(); return true; }
Importer::Importer() { mImportPluginList = new ImportPluginList; mUnusableImportPluginList = new UnusableImportPluginList; // build the list of import plugin and/or unusableImporters. // order is significant. If none match, they will all be tried // in the order defined here. GetPCMImportPlugin(mImportPluginList, mUnusableImportPluginList); GetOGGImportPlugin(mImportPluginList, mUnusableImportPluginList); GetMP3ImportPlugin(mImportPluginList, mUnusableImportPluginList); GetLOFImportPlugin(mImportPluginList, mUnusableImportPluginList); }