summaryrefslogtreecommitdiffstats
path: root/mplayer.c
diff options
context:
space:
mode:
authoralbeu <albeu@b3059339-0415-0410-9bf9-f77b7e298cf2>2008-04-09 00:36:28 +0000
committeralbeu <albeu@b3059339-0415-0410-9bf9-f77b7e298cf2>2008-04-09 00:36:28 +0000
commitf481e7870b0fcb7fec1614efab4fc7baf380bf1c (patch)
treeb5cbdd1b187650efb3bea73bb69c862fdfae74ba /mplayer.c
parent64868a36cd8113336745f5baf336ae76553de9ab (diff)
downloadmpv-f481e7870b0fcb7fec1614efab4fc7baf380bf1c.tar.bz2
mpv-f481e7870b0fcb7fec1614efab4fc7baf380bf1c.tar.xz
Remove the need for code using stream to export an mp_input_check_interrupt()
function. It also removes the compile-time dependency on input. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@26358 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'mplayer.c')
-rw-r--r--mplayer.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/mplayer.c b/mplayer.c
index 1a03616d14..810e4d8041 100644
--- a/mplayer.c
+++ b/mplayer.c
@@ -2855,6 +2855,8 @@ if(slave_mode)
mp_input_add_cmd_fd(0,USE_SELECT,MP_INPUT_SLAVE_CMD_FUNC,NULL);
else if(!noconsolecontrols)
mp_input_add_event_fd(0, getch2);
+// Set the libstream interrupt callback
+stream_set_interrupt_callback(mp_input_check_interrupt);
#ifdef HAVE_MENU
if(use_menu) {