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
This commit is contained in:
faust3 2004-09-16 09:25:56 +00:00
parent 8679873019
commit 7a7248586c
1 changed files with 10 additions and 0 deletions

View File

@ -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: {