1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-27 05:10:36 +00:00
freebsd-ports/multimedia/vdr/files/patch-plugin.c
Juergen Lock 0f8592a752 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/
2011-03-26 19:13:50 +00:00

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) {