mirror of
https://github.com/mpv-player/mpv.git
synced 2025-12-28 05:33:14 +00:00
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
This commit is contained in:
@@ -82,6 +82,7 @@ static mp_cmd_t mp_cmds[] = {
|
||||
{ MP_CMD_SUB_LOG, "sub_log", 0, { {-1,{0}} } },
|
||||
{ MP_CMD_GET_PERCENT_POS, "get_percent_pos", 0, { {-1,{0}} } },
|
||||
{ MP_CMD_GET_TIME_LENGTH, "get_time_length", 0, { {-1,{0}} } },
|
||||
{ MP_CMD_SWITCH_AUDIO, "switch_audio", 0, { {-1,{0}} } },
|
||||
#ifdef USE_TV
|
||||
{ MP_CMD_TV_STEP_CHANNEL, "tv_step_channel", 1, { { MP_CMD_ARG_INT ,{0}}, {-1,{0}} }},
|
||||
{ MP_CMD_TV_STEP_NORM, "tv_step_norm",0, { {-1,{0}} } },
|
||||
@@ -317,6 +318,7 @@ static mp_cmd_bind_t def_cmd_binds[] = {
|
||||
{ { 'b', 0 }, "sub_select" },
|
||||
{ { 'j', 0 }, "vobsub_lang" },
|
||||
{ { 'F', 0 }, "forced_subs_only" },
|
||||
{ { '#', 0 }, "switch_audio" },
|
||||
#ifdef USE_EDL
|
||||
{ { 'i', 0 }, "edl_mark" },
|
||||
#endif
|
||||
|
||||
@@ -63,6 +63,7 @@
|
||||
#define MP_CMD_SPEED_SET 59
|
||||
#define MP_CMD_RUN 60
|
||||
#define MP_CMD_SUB_LOG 61
|
||||
#define MP_CMD_SWITCH_AUDIO 62
|
||||
|
||||
#define MP_CMD_GUI_EVENTS 5000
|
||||
#define MP_CMD_GUI_LOADFILE 5001
|
||||
|
||||
Reference in New Issue
Block a user