summaryrefslogtreecommitdiff
path: root/streamdev-server.c
diff options
context:
space:
mode:
Diffstat (limited to 'streamdev-server.c')
-rw-r--r--streamdev-server.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/streamdev-server.c b/streamdev-server.c
index 40ba309..b2c178a 100644
--- a/streamdev-server.c
+++ b/streamdev-server.c
@@ -3,7 +3,7 @@
*
* See the README file for copyright information and how to reach the author.
*
- * $Id: streamdev-server.c,v 1.8 2008/04/08 14:18:15 schmirl Exp $
+ * $Id: streamdev-server.c,v 1.9 2008/04/29 07:00:53 schmirl Exp $
*/
#include <getopt.h>
@@ -25,6 +25,7 @@ cPluginStreamdevServer::cPluginStreamdevServer(void)
cPluginStreamdevServer::~cPluginStreamdevServer()
{
+ free(opt_remux);
}
const char *cPluginStreamdevServer::Description(void)
@@ -50,7 +51,9 @@ bool cPluginStreamdevServer::ProcessArgs(int argc, char *argv[])
while((c = getopt_long(argc, argv, "r:", long_options, NULL)) != -1) {
switch (c) {
case 'r':
- g_ExternRemux = optarg;
+ if (opt_remux)
+ free(opt_remux);
+ opt_remux = strdup(optarg);
break;
default:
return false;
@@ -74,6 +77,8 @@ bool cPluginStreamdevServer::Start(void)
}
return false;
}
+ if (!opt_remux)
+ opt_remux = strdup(DEFAULT_EXTERNREMUX);
cStreamdevServer::Initialize();