summaryrefslogtreecommitdiffstats
path: root/input
diff options
context:
space:
mode:
authorben <ben@b3059339-0415-0410-9bf9-f77b7e298cf2>2006-08-22 20:55:49 +0000
committerben <ben@b3059339-0415-0410-9bf9-f77b7e298cf2>2006-08-22 20:55:49 +0000
commit7764a187e0449a9a205f3c6172de8934116682a4 (patch)
tree0badc6dc4b4c2f6d4fe27d715b68de0efb42efb4 /input
parent31b58afd888ba6bca95541d5363bea7be2e91306 (diff)
downloadmpv-7764a187e0449a9a205f3c6172de8934116682a4.tar.bz2
mpv-7764a187e0449a9a205f3c6172de8934116682a4.tar.xz
added new filter option to menu file browser to only display some files according to extension
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@19497 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'input')
-rw-r--r--input/input.c1
-rw-r--r--input/input.h1
2 files changed, 2 insertions, 0 deletions
diff --git a/input/input.c b/input/input.c
index 5f331310ab..692c470c33 100644
--- a/input/input.c
+++ b/input/input.c
@@ -106,6 +106,7 @@ static mp_cmd_t mp_cmds[] = {
{ MP_CMD_SWITCH_RATIO, "switch_ratio", 0, { {MP_CMD_ARG_FLOAT,{0}}, {-1,{0}} } },
{ MP_CMD_VO_FULLSCREEN, "vo_fullscreen", 0, { {MP_CMD_ARG_INT,{-1}}, {-1,{0}} } },
{ MP_CMD_VO_ONTOP, "vo_ontop", 0, { {MP_CMD_ARG_INT,{-1}}, {-1,{0}} } },
+ { MP_CMD_FILE_FILTER, "file_filter", 1, { { MP_CMD_ARG_INT, {0}}, {-1,{0}}}},
{ MP_CMD_VO_ROOTWIN, "vo_rootwin", 0, { {MP_CMD_ARG_INT,{-1}}, {-1,{0}} } },
{ MP_CMD_VO_BORDER, "vo_border", 0, { {MP_CMD_ARG_INT,{-1}}, {-1,{0}} } },
{ MP_CMD_SCREENSHOT, "screenshot", 0, { {-1,{0}} } },
diff --git a/input/input.h b/input/input.h
index 4d83d1b113..f2251e4b98 100644
--- a/input/input.h
+++ b/input/input.h
@@ -71,6 +71,7 @@
#define MP_CMD_GET_PROPERTY 69
#define MP_CMD_OSD_SHOW_PROPERTY_TEXT 70
#define MP_CMD_SEEK_CHAPTER 71
+#define MP_CMD_FILE_FILTER 72
#define MP_CMD_GUI_EVENTS 5000
#define MP_CMD_GUI_LOADFILE 5001