changeset 4738:77519b9ac057

Screenshot on the fly
author nick
date Sun, 17 Feb 2002 09:25:09 +0000
parents 32e1f5042f65
children a2df307ed979
files libvo/video_out.h mplayer.c
diffstat 2 files changed, 9 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/libvo/video_out.h	Sun Feb 17 08:24:43 2002 +0000
+++ b/libvo/video_out.h	Sun Feb 17 09:25:09 2002 +0000
@@ -27,6 +27,8 @@
 #define VOCTRL_GUISUPPORT 4
 /* used to switch to fullscreen */
 #define VOCTRL_FULLSCREEN 5
+/* user wants to have screen shot. (currently without args)*/
+#define VOCTRL_SCREENSHOT 6
 
 #define VO_TRUE		1
 #define VO_FALSE	0
--- a/mplayer.c	Sun Feb 17 08:24:43 2002 +0000
+++ b/mplayer.c	Sun Feb 17 09:25:09 2002 +0000
@@ -2197,6 +2197,13 @@
 	printf("ABS seek to %5.3f   \n",rel_seek_secs);
 	break;
 #else
+#ifndef USE_LIBVO2
+    /* User wants to have screen shot */
+    case 'S':
+    case 's':
+		video_out->control(VOCTRL_SCREENSHOT, NULL);
+		break;
+#endif
     // Contrast:
     case '1':
     case '2':