summaryrefslogtreecommitdiffstats
path: root/mplayer.c
diff options
context:
space:
mode:
authorgpoirier <gpoirier@b3059339-0415-0410-9bf9-f77b7e298cf2>2005-04-03 14:08:28 +0000
committergpoirier <gpoirier@b3059339-0415-0410-9bf9-f77b7e298cf2>2005-04-03 14:08:28 +0000
commit9e909f0dde36431c457922e1f66fff0c1d6e71ac (patch)
tree008569d4fe4ec81c58af17ad8b25d16138f312ec /mplayer.c
parentacf7defdcf8c22504cee6333b9d9164d34e4f8db (diff)
downloadmpv-9e909f0dde36431c457922e1f66fff0c1d6e71ac.tar.bz2
mpv-9e909f0dde36431c457922e1f66fff0c1d6e71ac.tar.xz
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 git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@15047 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'mplayer.c')
-rw-r--r--mplayer.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/mplayer.c b/mplayer.c
index 55339a2e7e..6a6d7383f6 100644
--- a/mplayer.c
+++ b/mplayer.c
@@ -3495,6 +3495,9 @@ if (stream->type==STREAMTYPE_DVDNAV && dvd_nav_still)
case MP_CMD_GET_PERCENT_POS : {
mp_msg(MSGT_GLOBAL,MSGL_INFO,MSGTR_AnsPercentPos, demuxer_get_percent_pos(demuxer));
} break;
+ case MP_CMD_SWITCH_AUDIO :
+ demuxer_switch_audio(demuxer);
+ break;
case MP_CMD_RUN : {
#ifndef __MINGW32__
if(!fork()) {