[FFmpeg-cvslog] ffplay: add support for changing the channel by the C key

Marton Balint git at videolan.org
Sun Oct 13 19:42:23 CEST 2013


ffmpeg | branch: master | Marton Balint <cus at passwd.hu> | Sun Oct  6 20:23:34 2013 +0200| [3130416aecc8f3596f993d7768b0001ea2b85e24] | committer: Marton Balint

ffplay: add support for changing the channel by the C key

Signed-off-by: Marton Balint <cus at passwd.hu>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=3130416aecc8f3596f993d7768b0001ea2b85e24
---

 ffplay.c |    6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/ffplay.c b/ffplay.c
index 4b88146..8c0c415 100644
--- a/ffplay.c
+++ b/ffplay.c
@@ -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"



More information about the ffmpeg-cvslog mailing list