summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorphintuka <phintuka>2007-03-04 19:48:08 +0000
committerphintuka <phintuka>2007-03-04 19:48:08 +0000
commit38986a97dafe6a3bc265f816a3e41a489db4d9dd (patch)
tree032500a6b5e33c7f702fd29c2cd6fc899a366d9a
parent39e64e62f6e977b7c1e9f70054f7f64b5da3a62b (diff)
downloadxineliboutput-38986a97dafe6a3bc265f816a3e41a489db4d9dd.tar.gz
xineliboutput-38986a97dafe6a3bc265f816a3e41a489db4d9dd.tar.bz2
Adapted for vdr-1.5.1 (Patch from Rolf Ahrenberg)
-rw-r--r--frontend_local.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/frontend_local.c b/frontend_local.c
index 8c3f1c26..6bbf4bc3 100644
--- a/frontend_local.c
+++ b/frontend_local.c
@@ -4,7 +4,7 @@
* See the main source file 'xineliboutput.c' for copyright information and
* how to reach the author.
*
- * $Id: frontend_local.c,v 1.19 2007-01-27 14:15:25 phintuka Exp $
+ * $Id: frontend_local.c,v 1.20 2007-03-04 19:48:08 phintuka Exp $
*
*/
@@ -17,6 +17,9 @@
#include <vdr/config.h>
#include <vdr/tools.h>
+#if VDRVERSNUM >= 10501 || (defined(PATCH_SHUTDOWN_REWRITE) && PATCH_SHUTDOWN_REWRITE >= 100)
+#include <vdr/shutdown.h>
+#endif
#include "logdefs.h"
#include "config.h"
@@ -472,7 +475,11 @@ void cXinelibLocal::Action(void)
if(!m_bReconfigRequest && xc.exit_on_close) {
LOGMSG("Shutting down VDR");
+#if VDRVERSNUM >= 10501 || (defined(PATCH_SHUTDOWN_REWRITE) && PATCH_SHUTDOWN_REWRITE >= 100)
+ ShutdownHandler.RequestEmergencyExit();
+#else
cThread::EmergencyExit(true);
+#endif
break;
}
}