From 38986a97dafe6a3bc265f816a3e41a489db4d9dd Mon Sep 17 00:00:00 2001 From: phintuka Date: Sun, 4 Mar 2007 19:48:08 +0000 Subject: Adapted for vdr-1.5.1 (Patch from Rolf Ahrenberg) --- frontend_local.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) 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 #include +#if VDRVERSNUM >= 10501 || (defined(PATCH_SHUTDOWN_REWRITE) && PATCH_SHUTDOWN_REWRITE >= 100) +#include +#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; } } -- cgit v1.2.3