From b5caf70b415e1ca5c7a56de5e3b3ae2a874f40c9 Mon Sep 17 00:00:00 2001 From: Jan Schmidt Date: Mon, 26 Oct 2009 11:00:34 +0000 Subject: [PATCH] resindvd: Add a keypress mapping for switching audio track For debugging purposes, make keys 1-8 switch audio track. --- ext/resindvd/resindvdsrc.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ext/resindvd/resindvdsrc.c b/ext/resindvd/resindvdsrc.c index 07162aad12..a4ac9dc420 100644 --- a/ext/resindvd/resindvdsrc.c +++ b/ext/resindvd/resindvdsrc.c @@ -1581,6 +1581,10 @@ rsn_dvdsrc_handle_navigation_event (resinDvdSrc * src, GstEvent * event) } else if (g_str_equal (key, "bracketright")) { nav_res = rsn_dvdsrc_do_command (src, GST_NAVIGATION_COMMAND_NEXT_ANGLE); + } else if (key && key[0] >= '1' && key[0] <= '8') { + gint new_stream = key[0] - '1'; + GST_INFO_OBJECT (src, "Selecting audio stream %d", new_stream); + rsn_dvdsrc_prepare_audio_stream_event (src, new_stream, new_stream); } break; }