mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-03-13 23:22:54 +00:00
examples/ipcpipeline: Fix ESC handler
Same as for gst-play Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/8229>
This commit is contained in:
parent
55319cbf32
commit
7f697a7065
1 changed files with 6 additions and 5 deletions
|
@ -318,11 +318,6 @@ keyboard_cb (const gchar * key_input, GstElement * pipeline)
|
|||
case 't':
|
||||
play_switch_trick_mode (pipeline);
|
||||
break;
|
||||
case 27: /* ESC */
|
||||
if (key_input[1] == '\0') {
|
||||
g_main_loop_quit (loop);
|
||||
break;
|
||||
}
|
||||
case '0':
|
||||
play_do_seek (pipeline, 0, cur_rate, trick_mode);
|
||||
break;
|
||||
|
@ -330,6 +325,12 @@ keyboard_cb (const gchar * key_input, GstElement * pipeline)
|
|||
GST_DEBUG_BIN_TO_DOT_FILE_WITH_TS (GST_BIN (pipeline),
|
||||
GST_DEBUG_GRAPH_SHOW_ALL, "ipc.master.requested");
|
||||
break;
|
||||
case 27: /* ESC */
|
||||
if (key_input[1] == '\0') {
|
||||
g_main_loop_quit (loop);
|
||||
break;
|
||||
}
|
||||
/* FALLTHROUGH */
|
||||
default:
|
||||
if (strcmp (key_input, GST_PLAY_KB_ARROW_RIGHT) == 0) {
|
||||
relative_seek (pipeline, +0.08);
|
||||
|
|
Loading…
Reference in a new issue