<html><head></head><body>IMO this is too fringe to get a key assigned by default. Furthermore, semi-colon does not exist as a key on most European layouts, so that is not going to work.<br><br><div class="gmail_quote">Le 3 avril 2019 11:10:55 GMT+03:00, Antoine Huchet <antoine+vlc@huchet.me> a écrit :<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<pre class="k9mail">This is an attempt to fix <a href="https://trac.videolan.org/vlc/ticket/5708.">https://trac.videolan.org/vlc/ticket/5708.</a><br>This is based on <a href="https://github.com/tguillem/vlc">https://github.com/tguillem/vlc</a> branch qml/38.<hr> include/vlc_actions.h | 4 +++-<br> modules/control/hotkeys.c | 3 +++<br> src/libvlc-module.c | 7 +++++++<br> src/misc/actions.c | 2 ++<br> 4 files changed, 15 insertions(+), 1 deletion(-)<br><br>diff --git a/include/vlc_actions.h b/include/vlc_actions.h<br>index 62f0afae53..15a836b338 100644<br>--- a/include/vlc_actions.h<br>+++ b/include/vlc_actions.h<br>@@ -109,6 +109,7 @@ libvlc_InternalActionsClean(libvlc_int_t *p_libvlc);<br> #define KEY_ZOOM_OUT 0x00610000<br> #define KEY_BRIGHTNESS_UP 0x00620000<br> #define KEY_BRIGHTNESS_DOWN 0x00630000<br>+#define KEY_MEDIA_VIDEO 0x00640000<br> <br> #define KEY_MOUSEWHEELUP 0x00F00000<br> #define KEY_MOUSEWHEELDOWN 0x00F10000<br>@@ -180,8 +181,9 @@ typedef enum vlc_action_id {<br> ACTIONID_CHAPTER_PREV,<br> ACTIONID_CHAPTER_NEXT,<br> ACTIONID_DISC_MENU,<br>- /* audio / subtitle track */<br>+ /* audio / video / subtitle track */<br> ACTIONID_AUDIO_TRACK,<br>+ ACTIONID_VIDEO_TRACK,<br> ACTIONID_SUBTITLE_REVERSE_TRACK,<br> ACTIONID_SUBTITLE_TRACK,<br> /* audio / subtitle delay */<br>diff --git a/modules/control/hotkeys.c b/modules/control/hotkeys.c<br>index aa2a075934..e416fc24b3 100644<br>--- a/modules/control/hotkeys.c<br>+++ b/modules/control/hotkeys.c<br>@@ -351,6 +351,9 @@ PLAYER_ACTION_HANDLER(Track)<br> case ACTIONID_AUDIO_TRACK:<br> vlc_player_SelectNextTrack(player, AUDIO_ES);<br> break;<br>+ case ACTIONID_VIDEO_TRACK:<br>+ vlc_player_SelectNextTrack(player, VIDEO_ES);<br>+ break;<br> case ACTIONID_SUBTITLE_REVERSE_TRACK:<br> vlc_player_SelectPrevTrack(player, SPU_ES);<br> break;<br>diff --git a/src/libvlc-module.c b/src/libvlc-module.c<br>index b6c119668e..61c5d3d1c6 100644<br>--- a/src/libvlc-module.c<br>+++ b/src/libvlc-module.c<br>@@ -1430,6 +1430,9 @@ static const char *const mouse_wheel_texts[] = {<br> <br> #define AUDIO_TRACK_KEY_TEXT N_("Cycle audio track")<br> #define AUDIO_TRACK_KEY_LONGTEXT N_("Cycle through the available audio tracks(languages).")<br>+#define VIDEO_TRACK_KEY_TEXT N_("Cycle video track")<br>+#define VIDEO_TRACK_KEY_LONGTEXT N_("Cycle through the available video tracks.")<br>+<br> #define SUBTITLE_REVERSE_TRACK_KEY_TEXT N_("Cycle subtitle track in reverse order")<br> #define SUBTITLE_REVERSE_TRACK_KEY_LONGTEXT N_("Cycle through the available subtitle tracks in reverse order.")<br> #define SUBTITLE_TRACK_KEY_TEXT N_("Cycle subtitle track")<br>@@ -2322,6 +2325,7 @@ vlc_module_begin ()<br> # define KEY_AUDIODELAY_UP "g"<br> # define KEY_AUDIODELAY_DOWN "f"<br> # define KEY_AUDIO_TRACK "l"<br>+# define KEY_VIDEO_TRACK ";"<br> # define KEY_SUBTITLE_TRACK "s"<br> # define KEY_SUBTITLE_TOGGLE "Shift+s"<br> # define KEY_SUBTITLE_REVTRACK "Alt+s"<br>@@ -2465,6 +2469,7 @@ vlc_module_begin ()<br> # define KEY_LOOP "l"<br> <br> # define KEY_AUDIO_TRACK "b"<br>+# define KEY_VIDEO_TRACK ";"<br> # define KEY_SUBTITLE_TRACK "v"<br> # define KEY_SUBTITLE_TOGGLE "Shift+v"<br> # define KEY_SUBTITLE_REVTRACK "Alt+v"<br>@@ -2627,6 +2632,8 @@ vlc_module_begin ()<br> AUDIODELAY_DOWN_KEY_TEXT, AUDIODELAY_DOWN_KEY_LONGTEXT)<br> add_key("key-audio-track", KEY_AUDIO_TRACK, AUDIO_TRACK_KEY_TEXT,<br> AUDIO_TRACK_KEY_LONGTEXT)<br>+ add_key( "key-video-track", KEY_VIDEO_TRACK, VIDEO_TRACK_KEY_TEXT,<br>+ VIDEO_TRACK_KEY_LONGTEXT)<br> add_key("key-audiodevice-cycle", KEY_AUDIODEVICE_CYCLE,<br> AUDIO_DEVICE_CYCLE_KEY_TEXT,<br> AUDIO_DEVICE_CYCLE_KEY_LONGTEXT)<br>diff --git a/src/misc/actions.c b/src/misc/actions.c<br>index e10eb94790..e028152404 100644<br>--- a/src/misc/actions.c<br>+++ b/src/misc/actions.c<br>@@ -81,6 +81,7 @@ static const struct key_descriptor<br> { N_("Left"), KEY_LEFT },<br> { N_("Media Angle"), KEY_MEDIA_ANGLE },<br> { N_("Media Audio Track"), KEY_MEDIA_AUDIO },<br>+ { N_("Media Video Track"), KEY_MEDIA_VIDEO },<br> { N_("Media Forward"), KEY_MEDIA_FORWARD },<br> { N_("Media Menu"), KEY_MEDIA_MENU },<br> { N_("Media Next Frame"), KEY_MEDIA_FRAME_NEXT },<br>@@ -362,6 +363,7 @@ static const struct name2action<br> { "uncrop-right", ACTIONID_UNCROP_RIGHT, },<br> { "uncrop-top", ACTIONID_UNCROP_TOP, },<br> { "unzoom", ACTIONID_UNZOOM, },<br>+ { "video-track", ACTIONID_VIDEO_TRACK, },<br> { "viewpoint-fov-in", ACTIONID_VIEWPOINT_FOV_IN, },<br> { "viewpoint-fov-out", ACTIONID_VIEWPOINT_FOV_OUT, },<br> { "viewpoint-roll-anticlock", ACTIONID_VIEWPOINT_ROLL_ANTICLOCK, },</pre></blockquote></div><br>-- <br>Envoyé de mon appareil Android avec Courriel K-9 Mail. Veuillez excuser ma brièveté.</body></html>