diff options
author | Marton Balint <cus@passwd.hu> | 2013-10-06 20:23:34 +0200 |
---|---|---|
committer | Marton Balint <cus@passwd.hu> | 2013-10-13 12:46:14 +0200 |
commit | 3130416aecc8f3596f993d7768b0001ea2b85e24 (patch) | |
tree | e7850f75674c73f5f2d390af16f2e97fa058eb6c | |
parent | 543d81a7072c2a267495a61c1b22ee6d041a8993 (diff) | |
download | ffmpeg-3130416aecc8f3596f993d7768b0001ea2b85e24.tar.gz |
ffplay: add support for changing the channel by the C key
Signed-off-by: Marton Balint <cus@passwd.hu>
-rw-r--r-- | ffplay.c | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -3194,6 +3194,11 @@ static void event_loop(VideoState *cur_stream) case SDLK_v: stream_cycle_channel(cur_stream, AVMEDIA_TYPE_VIDEO); 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: stream_cycle_channel(cur_stream, AVMEDIA_TYPE_SUBTITLE); break; @@ -3498,6 +3503,7 @@ void show_help_default(const char *opt, const char *arg) "a cycle audio channel\n" "v cycle video channel\n" "t cycle subtitle channel\n" + "c cycle program\n" "w show audio waves\n" "s activate frame-step mode\n" "left/right seek backward/forward 10 seconds\n" |