[Mplayer-cvslog] CVS: main/linux getch2.c,1.5,1.6
Arpi of Ize
arpi at mplayer.dev.hu
Wed Aug 22 21:43:25 CEST 2001
- Previous message: [Mplayer-cvslog] CVS: main asfheader.c,1.21,1.22 dec_video.c,1.27,1.28 demux_avi.c,1.25,1.26 demuxer.c,1.25,1.26 dll_init.c,1.25,1.26 network.c,1.6,1.7 url.c,1.6,1.7
- Next message: [Mplayer-cvslog] CVS: main/libvo vo_syncfb.c,1.6,1.7 yuv2rgb.c,1.2,1.3
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Update of /cvsroot/mplayer/main/linux
In directory mplayer:/var/tmp.root/cvs-serv26245
Modified Files:
getch2.c
Log Message:
status management
Index: getch2.c
===================================================================
RCS file: /cvsroot/mplayer/main/linux/getch2.c,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -r1.5 -r1.6
--- getch2.c 6 Aug 2001 14:03:37 -0000 1.5
+++ getch2.c 22 Aug 2001 19:43:23 -0000 1.6
@@ -199,6 +199,8 @@
return code;
}
+static int getch2_status=0;
+
void getch2_enable(){
struct termios tio_new;
#if defined(__NetBSD__) || defined(__svr4__) || defined(__CYGWIN__)
@@ -219,9 +221,11 @@
#else
ioctl(0,TCSETS,&tio_new);
#endif
+ getch2_status=1;
}
void getch2_disable(){
+ if(!getch2_status) return; // already disabled / never enabled
#if defined(__NetBSD__) || defined(__svr4__) || defined(__CYGWIN__)
tcsetattr(0,TCSANOW,&tio_orig);
#elif defined(__FreeBSD__) || defined(__OpenBSD__)
@@ -229,5 +233,6 @@
#else
ioctl(0,TCSETS,&tio_orig);
#endif
+ getch2_status=0;
}
- Previous message: [Mplayer-cvslog] CVS: main asfheader.c,1.21,1.22 dec_video.c,1.27,1.28 demux_avi.c,1.25,1.26 demuxer.c,1.25,1.26 dll_init.c,1.25,1.26 network.c,1.6,1.7 url.c,1.6,1.7
- Next message: [Mplayer-cvslog] CVS: main/libvo vo_syncfb.c,1.6,1.7 yuv2rgb.c,1.2,1.3
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the MPlayer-cvslog
mailing list