summaryrefslogtreecommitdiff
path: root/vdr.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2015-09-08 11:08:06 +0200
committerKlaus Schmidinger <vdr@tvdr.de>2015-09-08 11:08:06 +0200
commit4e3325b7f7e30d1013798d74b8e7e0b8471813b1 (patch)
treec5082d2ea7afddbec5cfeda720daee873d9f11aa /vdr.c
parent3284e941c6ab7f59c4fbfa78d4976d756aec0731 (diff)
downloadvdr-4e3325b7f7e30d1013798d74b8e7e0b8471813b1.tar.gz
vdr-4e3325b7f7e30d1013798d74b8e7e0b8471813b1.tar.bz2
Implemented setup options for SVDRP peering
Diffstat (limited to 'vdr.c')
-rw-r--r--vdr.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/vdr.c b/vdr.c
index a09ec086..68c8a9e1 100644
--- a/vdr.c
+++ b/vdr.c
@@ -22,7 +22,7 @@
*
* The project's page is at http://www.tvdr.de
*
- * $Id: vdr.c 4.5 2015/09/01 10:33:04 kls Exp $
+ * $Id: vdr.c 4.6 2015/09/08 10:00:46 kls Exp $
*/
#include <getopt.h>
@@ -919,7 +919,10 @@ int main(int argc, char *argv[])
// SVDRP:
- StartSVDRPHandler(SVDRPport, DEFAULTSVDRPPORT);
+ SetSVDRPPorts(SVDRPport, DEFAULTSVDRPPORT);
+ StartSVDRPServerHandler();
+ if (Setup.SVDRPPeering)
+ StartSVDRPClientHandler();
// Main program loop:
@@ -1524,7 +1527,8 @@ Exit:
signal(SIGPIPE, SIG_DFL);
signal(SIGALRM, SIG_DFL);
- StopSVDRPHandler();
+ StopSVDRPClientHandler();
+ StopSVDRPServerHandler();
PluginManager.StopPlugins();
cRecordControls::Shutdown();
RecordingsHandler.DelAll();