summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--xine_frontend_lirc.c21
1 files changed, 19 insertions, 2 deletions
diff --git a/xine_frontend_lirc.c b/xine_frontend_lirc.c
index 63ca4bc2..967975b5 100644
--- a/xine_frontend_lirc.c
+++ b/xine_frontend_lirc.c
@@ -4,7 +4,7 @@
* See the main source file 'xineliboutput.c' for copyright information and
* how to reach the author.
*
- * $Id: xine_frontend_lirc.c,v 1.7 2007-03-14 11:58:42 phintuka Exp $
+ * $Id: xine_frontend_lirc.c,v 1.8 2007-04-12 19:27:50 phintuka Exp $
*
*/
/*
@@ -20,7 +20,7 @@
*
* LIRC support added by Carsten Koch <Carsten.Koch@icem.de> 2000-06-16.
*
- * $Id: xine_frontend_lirc.c,v 1.7 2007-03-14 11:58:42 phintuka Exp $
+ * $Id: xine_frontend_lirc.c,v 1.8 2007-04-12 19:27:50 phintuka Exp $
*/
@@ -44,6 +44,10 @@ static volatile char *lirc_device_name = NULL;
static volatile int fd_lirc = -1;
static int lirc_repeat_emu = 0;
+#ifndef IS_FBFE
+static void sxfe_toggle_fullscreen(sxfe_t *this);
+#endif
+
static uint64_t time_ms()
{
struct timeval t;
@@ -187,6 +191,19 @@ static void *lirc_receiver_thread(void *fe)
LastTime = time_ms();
+#ifdef XINELIBOUTPUT_FE_TOGGLE_FULLSCREEN
+# ifndef IS_FBFE
+ if(!strcmp(KeyName, "Fullscreen")) {
+ if(!repeat)
+ sxfe_toggle_fullscreen((sxfe_t*)fe);
+ } else
+# endif
+ if(!strcmp(KeyName, "Deinterlace")) {
+ fe_t *this = (fe_t*)fe;
+ xine_set_param(this->stream, XINE_PARAM_VO_DEINTERLACE,
+ xine_get_param(this->stream, XINE_PARAM_VO_DEINTERLACE) ? 0 : 1);
+ } else
+#endif
if(find_input((fe_t*)fe))
process_xine_keypress(((fe_t*)fe)->input, "LIRC", KeyName, repeat, 0);