summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authornick <nick@b3059339-0415-0410-9bf9-f77b7e298cf2>2002-02-17 09:25:09 +0000
committernick <nick@b3059339-0415-0410-9bf9-f77b7e298cf2>2002-02-17 09:25:09 +0000
commit340183b0e920023d1a24dc5ff95255b5ecbc2a9c (patch)
tree3a489b785892857ba9d1a9d47d03498dcb01b4b4
parent5ddd8e92a1842f9368c77c5baae1551d3b358177 (diff)
downloadmpv-340183b0e920023d1a24dc5ff95255b5ecbc2a9c.tar.bz2
mpv-340183b0e920023d1a24dc5ff95255b5ecbc2a9c.tar.xz
Screenshot on the fly
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@4739 b3059339-0415-0410-9bf9-f77b7e298cf2
-rw-r--r--libvo/video_out.h2
-rw-r--r--mplayer.c7
2 files changed, 9 insertions, 0 deletions
diff --git a/libvo/video_out.h b/libvo/video_out.h
index bd6b09a486..9beb9ea383 100644
--- a/libvo/video_out.h
+++ b/libvo/video_out.h
@@ -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
diff --git a/mplayer.c b/mplayer.c
index afa9c1d5d3..c546fa1b33 100644
--- a/mplayer.c
+++ b/mplayer.c
@@ -2197,6 +2197,13 @@ if(step_sec>0) {
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':