From 7f697a7065fe1dfdce2dfef876714ff093b0ec87 Mon Sep 17 00:00:00 2001 From: Edward Hervey Date: Sun, 5 Jan 2025 12:13:23 +0100 Subject: [PATCH] examples/ipcpipeline: Fix ESC handler Same as for gst-play Part-of: --- .../tests/examples/ipcpipeline/ipc-play.c | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/subprojects/gst-plugins-bad/tests/examples/ipcpipeline/ipc-play.c b/subprojects/gst-plugins-bad/tests/examples/ipcpipeline/ipc-play.c index 33724d2f16..7624ef6623 100644 --- a/subprojects/gst-plugins-bad/tests/examples/ipcpipeline/ipc-play.c +++ b/subprojects/gst-plugins-bad/tests/examples/ipcpipeline/ipc-play.c @@ -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);