mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-27 05:10:36 +00:00
0f8592a752
See vdr/webcamd dvb thread(s) on the freebsd-multimedia list for FreeBSD notes, some links are here: http://people.freebsd.org/~nox/dvb/ and see these links for general vdr info: http://www.linuxtv.org/vdrwiki/index.php/Main_Page http://www.vdr-portal.de/ WWW: http://www.tvdr.de/
20 lines
498 B
C
20 lines
498 B
C
--- plugin.c.orig
|
|
+++ plugin.c
|
|
@@ -198,11 +198,14 @@ bool cDll::Load(bool Log)
|
|
}
|
|
handle = dlopen(fileName, RTLD_NOW);
|
|
const char *error = dlerror();
|
|
- if (!error) {
|
|
+ if (handle) {
|
|
void *(*creator)(void);
|
|
creator = (void *(*)(void))dlsym(handle, "VDRPluginCreator");
|
|
- if (!(error = dlerror()))
|
|
+ error = dlerror();
|
|
+ if (creator) {
|
|
plugin = (cPlugin *)creator();
|
|
+ error = NULL;
|
|
+ }
|
|
}
|
|
if (!error) {
|
|
if (plugin && args) {
|