summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorphintuka <phintuka>2006-07-02 17:06:06 +0000
committerphintuka <phintuka>2006-07-02 17:06:06 +0000
commit087ee88d344a9b4c822bec9e08ad4b472b040192 (patch)
tree73c091c6594697049813fc7675e4cd1049e71525
parent3f2bb16197f850ccf22dd3de105525eb73e622d8 (diff)
downloadxineliboutput-087ee88d344a9b4c822bec9e08ad4b472b040192.tar.gz
xineliboutput-087ee88d344a9b4c822bec9e08ad4b472b040192.tar.bz2
Added option to close VDR when window is closed
-rw-r--r--frontend_local.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/frontend_local.c b/frontend_local.c
index 9bcae10c..3f0959be 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.4 2006-06-11 19:08:05 phintuka Exp $
+ * $Id: frontend_local.c,v 1.5 2006-07-02 17:06:06 phintuka Exp $
*
*/
@@ -438,6 +438,12 @@ void cXinelibLocal::Action(void)
}
LOGMSG("cXinelibLocal::Action: Xine closed");
+
+ if(!m_bReconfigRequest && xc.exit_on_close) {
+ LOGMSG("Shutting down VDR");
+ cThread::EmergencyExit(true);
+ break;
+ }
}
if(curr_fe) {