diff options
author | Juergen Lock <nox@FreeBSD.org> | 2011-03-26 19:13:50 +0000 |
---|---|---|
committer | Juergen Lock <nox@FreeBSD.org> | 2011-03-26 19:13:50 +0000 |
commit | 0f8592a752db2bbc69de164655d2e424f89e9504 (patch) | |
tree | e7b1c67b8a8e1e4843448b489e02302140c1ad9a /multimedia/vdr/files/patch-plugin.c | |
parent | Tntnet is a modular, multithreaded, high performance webapplicationserver (diff) |
Preliminary port of the vdr development branch, use at your own risk! :)
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/
Diffstat (limited to 'multimedia/vdr/files/patch-plugin.c')
-rw-r--r-- | multimedia/vdr/files/patch-plugin.c | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/multimedia/vdr/files/patch-plugin.c b/multimedia/vdr/files/patch-plugin.c new file mode 100644 index 000000000000..46497c90fe98 --- /dev/null +++ b/multimedia/vdr/files/patch-plugin.c @@ -0,0 +1,19 @@ +--- 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) { |