Mercurial > mplayer.hg
comparison mplayer.c @ 15046:b7aa70b05d76
Added support of audio stream switching in the MPEG demuxer using the #-key
Patch by Michael Behrisch < behrisch $ informatik * hu-berlin * de >
commited with the kind blessing of D. Richard Felker III
author | gpoirier |
---|---|
date | Sun, 03 Apr 2005 14:08:28 +0000 |
parents | 265d8b8adbbe |
children | aab0ddfabf3f |
comparison
equal
deleted
inserted
replaced
15045:20ea036e5f0d | 15046:b7aa70b05d76 |
---|---|
3493 } break; | 3493 } break; |
3494 | 3494 |
3495 case MP_CMD_GET_PERCENT_POS : { | 3495 case MP_CMD_GET_PERCENT_POS : { |
3496 mp_msg(MSGT_GLOBAL,MSGL_INFO,MSGTR_AnsPercentPos, demuxer_get_percent_pos(demuxer)); | 3496 mp_msg(MSGT_GLOBAL,MSGL_INFO,MSGTR_AnsPercentPos, demuxer_get_percent_pos(demuxer)); |
3497 } break; | 3497 } break; |
3498 case MP_CMD_SWITCH_AUDIO : | |
3499 demuxer_switch_audio(demuxer); | |
3500 break; | |
3498 case MP_CMD_RUN : { | 3501 case MP_CMD_RUN : { |
3499 #ifndef __MINGW32__ | 3502 #ifndef __MINGW32__ |
3500 if(!fork()) { | 3503 if(!fork()) { |
3501 execl("/bin/sh","sh","-c",cmd->args[0].v.s,NULL); | 3504 execl("/bin/sh","sh","-c",cmd->args[0].v.s,NULL); |
3502 exit(0); | 3505 exit(0); |