From 3689a4a8b21a5a6d3128d3a8c535cf3700a0b6d6 Mon Sep 17 00:00:00 2001 From: phintuka Date: Thu, 12 Apr 2007 19:27:50 +0000 Subject: Fullscreen and de-interlace toggling with special lirc keys "Fullscreen" and "Deinterlace" --- xine_frontend_lirc.c | 21 +++++++++++++++++++-- 1 file 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 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); -- cgit v1.2.3