mirror of
https://github.com/mpv-player/mpv
synced 2025-03-25 04:38:01 +00:00
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:
parent
8679873019
commit
7a7248586c
10
mplayer.c
10
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: {
|
||||
|
Loading…
Reference in New Issue
Block a user