25 lines
919 B
Diff
25 lines
919 B
Diff
diff -up vdr-1.7.21/plugin.c~ vdr-1.7.21/plugin.c
|
|
--- vdr-1.7.21/plugin.c~ 2010-01-06 13:36:46.000000000 +0200
|
|
+++ vdr-1.7.21/plugin.c 2011-10-17 21:18:07.432419915 +0300
|
|
@@ -317,6 +317,12 @@ void cPluginManager::AddPlugin(const cha
|
|
char *p = strchr(s, ' ');
|
|
if (p)
|
|
*p = 0;
|
|
+ struct stat st;
|
|
+ if (stat (cString::sprintf("%s/%s%s%s%s", directory, LIBVDR_PREFIX, s, SO_INDICATOR, APIVERSION), &st) && errno == ENOENT) {
|
|
+ esyslog("WARN: missing plugin '%s'", s);
|
|
+ fprintf(stderr, "vdr: missing plugin '%s'\n", s);
|
|
+ }
|
|
+ else
|
|
dlls.Add(new cDll(cString::sprintf("%s/%s%s%s%s", directory, LIBVDR_PREFIX, s, SO_INDICATOR, APIVERSION), Args));
|
|
free(s);
|
|
}
|
|
@@ -325,7 +331,7 @@ bool cPluginManager::LoadPlugins(bool Lo
|
|
{
|
|
for (cDll *dll = dlls.First(); dll; dll = dlls.Next(dll)) {
|
|
if (!dll->Load(Log))
|
|
- return false;
|
|
+ /*return false*/;
|
|
}
|
|
return true;
|
|
}
|