/* */
static int OpenDisplay (vout_display_t *, bool force_resolution);
static void CloseDisplay (vout_display_t *);
+#if 0
static void SwitchDisplay(int i_signal);
+#endif
static void TextMode (int tty);
static void GfxMode (int tty);
struct termios old_termios;
/* Original configuration information */
+#if 0
struct sigaction sig_usr1; /* USR1 previous handler */
struct sigaction sig_usr2; /* USR2 previous handler */
+#endif
struct vt_mode vt_mode; /* previous VT mode */
/* Framebuffer information */
int bytes_per_pixel;
/* Video memory */
- uint8_t *video_ptr; /* base adress */
+ uint8_t *video_ptr; /* base address */
size_t video_size; /* page size */
picture_t *picture;
Close(VLC_OBJECT(vd));
return VLC_EGENERIC;
}
+ vout_display_DeleteWindow(vd, NULL);
/* */
video_format_t fmt = vd->fmt;
ioctl(sys->tty, VT_RELDISP, VT_ACKACQ);
+#if 0
/* Set-up tty signal handler to be aware of tty changes */
struct sigaction sig_tty;
memset(&sig_tty, 0, sizeof(sig_tty));
/* FIXME SIGUSR1 could have succeed */
goto error_signal;
}
+#endif
/* Set-up tty according to new signal handler */
if (-1 == ioctl(sys->tty, VT_GETMODE, &sys->vt_mode)) {
return VLC_SUCCESS;
error:
+#if 0
sigaction(SIGUSR1, &sys->sig_usr1, NULL);
sigaction(SIGUSR2, &sys->sig_usr2, NULL);
error_signal:
+#endif
tcsetattr(0, 0, &sys->old_termios);
TextMode(sys->tty);
return VLC_EGENERIC;
/* Reset the terminal */
ioctl(sys->tty, VT_SETMODE, &sys->vt_mode);
+#if 0
/* Remove signal handlers */
sigaction(SIGUSR1, &sys->sig_usr1, NULL);
sigaction(SIGUSR2, &sys->sig_usr2, NULL);
+#endif
/* Reset the keyboard state */
tcsetattr(0, 0, &sys->old_termios);
}
}
+#if 0
/*****************************************************************************
* SwitchDisplay: VT change signal handler
*****************************************************************************
*****************************************************************************/
static void SwitchDisplay(int i_signal)
{
- VLC_UNUSED(i_signal);
-#if 0
vout_display_t *vd;
vlc_mutex_lock(&p_vout_bank->lock);
}
vlc_mutex_unlock(&p_vout_bank->lock);
-#endif
}
+#endif
/*****************************************************************************
* TextMode and GfxMode : switch tty to text/graphic mode