mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-23 00:36:51 +00:00
gst-play: Add keyboard shortcut '0' to seek to beginning
https://bugzilla.gnome.org/show_bug.cgi?id=755440
This commit is contained in:
parent
a1d84edd16
commit
2528a5bbd8
1 changed files with 4 additions and 0 deletions
|
@ -973,6 +973,7 @@ print_keyboard_help (void)
|
|||
"a", N_("change audio track")}, {
|
||||
"v", N_("change video track")}, {
|
||||
"s", N_("change subtitle track")}, {
|
||||
"0", N_("seek to beginning")}, {
|
||||
"k", N_("show keyboard shortcuts")},};
|
||||
guint i, chars_to_pad, desc_len, max_desc_len = 0;
|
||||
|
||||
|
@ -1063,6 +1064,9 @@ keyboard_cb (const gchar * key_input, gpointer user_data)
|
|||
case 's':
|
||||
play_cycle_track_selection (play, GST_PLAY_TRACK_TYPE_SUBTITLE);
|
||||
break;
|
||||
case '0':
|
||||
play_do_seek (play, 0, play->rate, play->trick_mode);
|
||||
break;
|
||||
/* fall through */
|
||||
default:
|
||||
if (strcmp (key_input, GST_PLAY_KB_ARROW_RIGHT) == 0) {
|
||||
|
|
Loading…
Reference in a new issue