Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save j0sh/1661687 to your computer and use it in GitHub Desktop.

Select an option

Save j0sh/1661687 to your computer and use it in GitHub Desktop.
RTMPD: Allow loading application-less modules.
From d6d62a145d125eaec2ed0e513c50be2b72341669 Mon Sep 17 00:00:00 2001
From: Josh Allmann <joshua.allmann@gmail.com>
Date: Mon, 23 Jan 2012 00:14:19 -0800
Subject: [PATCH] -- Allow loading application-less modules.
This may be useful for eg, libs that register common protocols.
---
sources/thelib/src/configuration/module.cpp | 6 ------
1 files changed, 0 insertions(+), 6 deletions(-)
diff --git a/sources/thelib/src/configuration/module.cpp b/sources/thelib/src/configuration/module.cpp
index 25518f1..664a34b 100644
--- a/sources/thelib/src/configuration/module.cpp
+++ b/sources/thelib/src/configuration/module.cpp
@@ -70,12 +70,6 @@ bool Module::LoadLibrary() {
string functionName = (string) config[CONF_APPLICATION_INIT_APPLICATION_FUNCTION];
getApplication = (GetApplicationFunction_t) GET_PROC_ADDRESS(libHandler,
STR(functionName));
- if (getApplication == NULL) {
- string strError = OPEN_LIBRARY_ERROR;
- FATAL("Unable to find %s function. Error was: %s", STR(functionName),
- STR(strError));
- return false;
- }
functionName = (string) config[CONF_APPLICATION_INIT_FACTORY_FUNCTION];
getFactory = (GetFactoryFunction_t) GET_PROC_ADDRESS(libHandler,
--
1.7.5.4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment