mirror of https://git.ffmpeg.org/ffmpeg.git
ffplay: add support for changing the channel by the C key
Signed-off-by: Marton Balint <cus@passwd.hu>
This commit is contained in:
parent
543d81a707
commit
3130416aec
6
ffplay.c
6
ffplay.c
|
@ -3194,6 +3194,11 @@ static void event_loop(VideoState *cur_stream)
|
||||||
case SDLK_v:
|
case SDLK_v:
|
||||||
stream_cycle_channel(cur_stream, AVMEDIA_TYPE_VIDEO);
|
stream_cycle_channel(cur_stream, AVMEDIA_TYPE_VIDEO);
|
||||||
break;
|
break;
|
||||||
|
case SDLK_c:
|
||||||
|
stream_cycle_channel(cur_stream, AVMEDIA_TYPE_VIDEO);
|
||||||
|
stream_cycle_channel(cur_stream, AVMEDIA_TYPE_AUDIO);
|
||||||
|
stream_cycle_channel(cur_stream, AVMEDIA_TYPE_SUBTITLE);
|
||||||
|
break;
|
||||||
case SDLK_t:
|
case SDLK_t:
|
||||||
stream_cycle_channel(cur_stream, AVMEDIA_TYPE_SUBTITLE);
|
stream_cycle_channel(cur_stream, AVMEDIA_TYPE_SUBTITLE);
|
||||||
break;
|
break;
|
||||||
|
@ -3498,6 +3503,7 @@ void show_help_default(const char *opt, const char *arg)
|
||||||
"a cycle audio channel\n"
|
"a cycle audio channel\n"
|
||||||
"v cycle video channel\n"
|
"v cycle video channel\n"
|
||||||
"t cycle subtitle channel\n"
|
"t cycle subtitle channel\n"
|
||||||
|
"c cycle program\n"
|
||||||
"w show audio waves\n"
|
"w show audio waves\n"
|
||||||
"s activate frame-step mode\n"
|
"s activate frame-step mode\n"
|
||||||
"left/right seek backward/forward 10 seconds\n"
|
"left/right seek backward/forward 10 seconds\n"
|
||||||
|
|
Loading…
Reference in New Issue