mirror of
https://github.com/mpv-player/mpv
synced 2024-12-23 23:32:26 +00:00
Add the input command "change_rectangle" to control the rectangle
plugin boundaries. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@6889 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
939d40dd78
commit
2f98400294
@ -70,6 +70,7 @@ static mp_cmd_t mp_cmds[] = {
|
||||
{ MP_CMD_PANSCAN, "panscan",1, { {MP_CMD_ARG_FLOAT,{0}}, {MP_CMD_ARG_INT,{0}}, {-1,{0}} } },
|
||||
{ MP_CMD_LOADFILE, "loadfile", 1, { {MP_CMD_ARG_STRING, {0}}, {-1,{0}} } },
|
||||
{ MP_CMD_LOADLIST, "loadlist", 1, { {MP_CMD_ARG_STRING, {0}}, {-1,{0}} } },
|
||||
{ MP_CMD_VF_CHANGE_RECTANGLE, "change_rectangle", 2, { {MP_CMD_ARG_INT,{0}}, {MP_CMD_ARG_INT,{0}}, {-1,{0}}}},
|
||||
|
||||
#ifdef HAVE_NEW_GUI
|
||||
{ MP_CMD_GUI_LOADFILE, "gui_loadfile", 0, { {-1,{0}} } },
|
||||
|
@ -30,6 +30,7 @@
|
||||
#define MP_CMD_MUTE 25
|
||||
#define MP_CMD_LOADFILE 26
|
||||
#define MP_CMD_LOADLIST 27
|
||||
#define MP_CMD_VF_CHANGE_RECTANGLE 28
|
||||
|
||||
#define MP_CMD_GUI_EVENTS 5000
|
||||
#define MP_CMD_GUI_LOADFILE 5001
|
||||
|
@ -2615,6 +2615,9 @@ if (stream->type==STREAMTYPE_DVDNAV && dvd_nav_still)
|
||||
case MP_CMD_SCREENSHOT :
|
||||
if(vo_config_count) video_out->control(VOCTRL_SCREENSHOT, NULL);
|
||||
break;
|
||||
case MP_CMD_VF_CHANGE_RECTANGLE:
|
||||
set_rectangle(sh_video, cmd->args[0].v.i, cmd->args[1].v.i);
|
||||
break;
|
||||
#ifdef USE_DVDNAV
|
||||
case MP_CMD_DVDNAV_EVENT: {
|
||||
dvdnav_priv_t * dvdnav_priv = (dvdnav_priv_t*)(stream->priv);
|
||||
|
Loading…
Reference in New Issue
Block a user