mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-10-04 17:52:29 +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")}, {
|
"a", N_("change audio track")}, {
|
||||||
"v", N_("change video track")}, {
|
"v", N_("change video track")}, {
|
||||||
"s", N_("change subtitle track")}, {
|
"s", N_("change subtitle track")}, {
|
||||||
|
"0", N_("seek to beginning")}, {
|
||||||
"k", N_("show keyboard shortcuts")},};
|
"k", N_("show keyboard shortcuts")},};
|
||||||
guint i, chars_to_pad, desc_len, max_desc_len = 0;
|
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':
|
case 's':
|
||||||
play_cycle_track_selection (play, GST_PLAY_TRACK_TYPE_SUBTITLE);
|
play_cycle_track_selection (play, GST_PLAY_TRACK_TYPE_SUBTITLE);
|
||||||
break;
|
break;
|
||||||
|
case '0':
|
||||||
|
play_do_seek (play, 0, play->rate, play->trick_mode);
|
||||||
|
break;
|
||||||
/* fall through */
|
/* fall through */
|
||||||
default:
|
default:
|
||||||
if (strcmp (key_input, GST_PLAY_KB_ARROW_RIGHT) == 0) {
|
if (strcmp (key_input, GST_PLAY_KB_ARROW_RIGHT) == 0) {
|
||||||
|
|
Loading…
Reference in a new issue