aboutsummaryrefslogtreecommitdiffstats
path: root/mediaplugin/src
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--mediaplugin/src/media/UMediaPlugin.pas10
1 files changed, 9 insertions, 1 deletions
diff --git a/mediaplugin/src/media/UMediaPlugin.pas b/mediaplugin/src/media/UMediaPlugin.pas
index 277e6dda..eb4cf395 100644
--- a/mediaplugin/src/media/UMediaPlugin.pas
+++ b/mediaplugin/src/media/UMediaPlugin.pas
@@ -423,10 +423,18 @@ var
RegisterFunc: TPluginRegisterFunc;
PluginInfo: PMediaPluginInfo;
PluginEntry: PMediaPluginEntry;
+const
+ {$IF Defined(MSWINDOWS)}
+ ModuleExt = '.dll';
+ {$ELSEIF Defined(DARWIN)}
+ ModuleExt = '.dylib';
+ {$ELSE} //Defined(UNIX)
+ ModuleExt = '.so';
+ {$IFEND}
begin
MediaPlugins := TList.Create;
- LibPath := MediaPluginPath.Append('*.dll');
+ LibPath := MediaPluginPath.Append('*' + ModuleExt);
Iter := FileSystem.FileFind(LibPath, faAnyFile);
while (Iter.HasNext) do
begin