src/libtsduck/plugin/tsPluginRepository.cpp
void ts::PluginRepository::loadAllPlugins(Report& report)
{
    // Do nothing if loading dynamic libraries is disallowed.
    if (!_sharedLibraryAllowed) {
        return;
    }

    // Get list of shared library files
    UStringVector files;
    ApplicationSharedLibrary::GetPluginList(files, u"tsplugin_", TS_PLUGINS_PATH);

    // Load all plugins and register allocator functions (when not zero).
    for (size_t i = 0; i < files.size(); ++i) {
        PluginSharedLibrary shlib(files[i], report);
        if (shlib.isLoaded()) {
            const UString name(shlib.moduleName());
            registerInput(name, shlib.new_input);
            registerOutput(name, shlib.new_output);
            registerProcessor(name, shlib.new_processor);
        }
    }
}
//----------------------------------------------------------------------------
// Load all available tsp processors.
//----------------------------------------------------------------------------
Load all available tsp processors.
Load all available tsp processors .
void ts::PluginRepository::loadAllPlugins(Report& report)
{
    if (!_sharedLibraryAllowed) {
        return;
    }
    UStringVector files;
    ApplicationSharedLibrary::GetPluginList(files, u"tsplugin_", TS_PLUGINS_PATH);
    for (size_t i = 0; i < files.size(); ++i) {
        PluginSharedLibrary shlib(files[i], report);
        if (shlib.isLoaded()) {
            const UString name(shlib.moduleName());
            registerInput(name, shlib.new_input);
            registerOutput(name, shlib.new_output);
            registerProcessor(name, shlib.new_processor);
        }
    }
}
void ts :: PluginRepository :: loadAllPlugins ( Report & report ) { if ( ! _sharedLibraryAllowed ) { return ; } UStringVector files ; ApplicationSharedLibrary :: GetPluginList ( files , u" " , TS_PLUGINS_PATH ) ; for ( size_t i = 0 ; i < files . size ( ) ; ++ i ) { PluginSharedLibrary shlib ( files [ i ] , report ) ; if ( shlib . isLoaded ( ) ) { const UString name ( shlib . moduleName ( ) ) ; registerInput ( name , shlib . new_input ) ; registerOutput ( name , shlib . new_output ) ; registerProcessor ( name , shlib . new_processor ) ; } } }
Load all available tsp processors.
Load all available tsp processors .
// Do nothing if loading dynamic libraries is disallowed. // Get list of shared library files // Load all plugins and register allocator functions (when not zero).