- Fixed assignment of externremux.sh's default location

cPlugin::ConfigDirectory() cannot be used directly after the plugin has
been loaded. The return value of AddDirectory() must be allocated.
This commit is contained in:
schmirl
2008-04-29 07:00:53 +00:00
parent b2bea54b34
commit 685f43c6ec
6 changed files with 15 additions and 10 deletions

View File

@@ -7,8 +7,6 @@
#include <signal.h>
#include <unistd.h>
const char *g_ExternRemux = EXTERNREMUXPATH;
class cTSExt: public cThread {
private:
cRingBufferLinear *m_ResultBuffer;
@@ -68,7 +66,7 @@ cTSExt::cTSExt(cRingBufferLinear *ResultBuffer, std::string Parameter):
for (int i = STDERR_FILENO + 1; i < MaxPossibleFileDescriptors; i++)
close(i); //close all dup'ed filedescriptors
std::string cmd = std::string(g_ExternRemux) + " " + Parameter;
std::string cmd = std::string(opt_remux) + " " + Parameter;
execl("/bin/sh", "sh", "-c", cmd.c_str(), NULL);
_exit(-1);
}

View File

@@ -5,8 +5,6 @@
#include <vdr/ringbuffer.h>
#include <string>
extern const char *g_ExternRemux;
class cTSExt;
class cExternRemux: public cTSRemux {