diff options
author | faust3 <faust3@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2004-09-16 09:25:56 +0000 |
---|---|---|
committer | faust3 <faust3@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2004-09-16 09:25:56 +0000 |
commit | 7a7248586c7b1554a178fb376e278da3ba96caa3 (patch) | |
tree | 30e4edf873fea8dbb126a65ab7e37feef874589f /mplayer.c | |
parent | 8679873019b1ccbd4c7ec2b2794229b1c3da3d19 (diff) | |
download | mpv-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.c | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -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: { |