Mercurial > mplayer.hg
changeset 6112:69b3c25728fb
Add the forgoten scrennshot command
author | albeu |
---|---|
date | Sat, 18 May 2002 00:11:43 +0000 |
parents | 582960ab7cc7 |
children | 5e0c8feca2e0 |
files | input/input.c input/input.h mplayer.c |
diffstat | 3 files changed, 6 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/input/input.c Fri May 17 23:51:37 2002 +0000 +++ b/input/input.c Sat May 18 00:11:43 2002 +0000 @@ -64,6 +64,7 @@ { MP_CMD_TV_STEP_CHANNEL_LIST, "tv_step_chanlist", 0, { {-1,{0}} } }, #endif { MP_CMD_VO_FULLSCREEN, "vo_fullscreen", 0, { {-1,{0}} } }, + { MP_CMD_SCREENSHOT, "screenshot", 0, { {-1,{0}} } }, #ifdef HAVE_NEW_GUI { MP_CMD_GUI_LOADFILE, "gui_loadfile", 0, { {-1,{0}} } }, @@ -241,6 +242,7 @@ { { JOY_BTN3, 0 }, "volume -1"}, #endif { { 'f', 0 }, "vo_fullscreen" }, + { { 's', 0 }, "screenshot" }, { { 0 }, NULL } };
--- a/input/input.h Fri May 17 23:51:37 2002 +0000 +++ b/input/input.h Sat May 18 00:11:43 2002 +0000 @@ -25,6 +25,7 @@ #define MP_CMD_VO_FULLSCREEN 20 #define MP_CMD_SUB_POS 21 #define MP_CMD_DVDNAV 22 +#define MP_CMD_SCREENSHOT 23 #define MP_CMD_GUI_EVENTS 5000 #define MP_CMD_GUI_LOADFILE 5001
--- a/mplayer.c Fri May 17 23:51:37 2002 +0000 +++ b/mplayer.c Sat May 18 00:11:43 2002 +0000 @@ -2520,6 +2520,9 @@ if(sub_pos <0) sub_pos=0; vo_osd_changed(OSDTYPE_SUBTITLE); } break; + case MP_CMD_SCREENSHOT : + if(vo_config_count) video_out->control(VOCTRL_SCREENSHOT, NULL); + break; #ifdef USE_DVDNAV case MP_CMD_DVDNAV_EVENT: { dvdnav_priv_t * dvdnav_priv = (dvdnav_priv_t*)(stream->priv);