summaryrefslogtreecommitdiffstats
path: root/mplayer.c
diff options
context:
space:
mode:
authorfaust3 <faust3@b3059339-0415-0410-9bf9-f77b7e298cf2>2004-09-16 09:25:56 +0000
committerfaust3 <faust3@b3059339-0415-0410-9bf9-f77b7e298cf2>2004-09-16 09:25:56 +0000
commit7a7248586c7b1554a178fb376e278da3ba96caa3 (patch)
tree30e4edf873fea8dbb126a65ab7e37feef874589f /mplayer.c
parent8679873019b1ccbd4c7ec2b2794229b1c3da3d19 (diff)
downloadmpv-7a7248586c7b1554a178fb376e278da3ba96caa3.tar.bz2
mpv-7a7248586c7b1554a178fb376e278da3ba96caa3.tar.xz
make it possible to use the run command from a menu config file, based on a patch by Aurelien Jacobs <aurel@gnuage.org>
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@13354 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'mplayer.c')
-rw-r--r--mplayer.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/mplayer.c b/mplayer.c
index 2c0a00309a..3869e7de25 100644
--- a/mplayer.c
+++ b/mplayer.c
@@ -3197,6 +3197,16 @@ if (stream->type==STREAMTYPE_DVDNAV && dvd_nav_still)
case MP_CMD_GET_PERCENT_POS : {
mp_msg(MSGT_GLOBAL,MSGL_INFO,"ANS_PERCENT_POSITION=%ld\n", demuxer_get_percent_pos(demuxer));
} break;
+#ifdef HAVE_MENU
+ case MP_CMD_CRUN : {
+#ifndef __MINGW32__
+ if(!fork()) {
+ execl("/bin/sh","sh","-c",cmd->args[0].v.s,NULL);
+ exit(0);
+ }
+#endif
+ } break;
+#endif
#ifdef USE_DVDNAV
case MP_CMD_DVDNAV_EVENT: {