gst-play: Improve Win32 keyboard input handling
authorSeungha Yang <seungha@centricular.com>
Tue, 29 Mar 2022 13:16:14 +0000 (22:16 +0900)
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Wed, 30 Mar 2022 20:37:54 +0000 (20:37 +0000)
commitf465156bf9c67f906c8e280b0be4e0a9cfbb0fa9
tree4479c13c7770c14af2a37ca4110f10b9423be22d
parent2952a73f4083487f33ae83407bef5245d2f8fef2
gst-play: Improve Win32 keyboard input handling

The console HANDLE will be keep signalled state unless application
reads console input buffer immediately. So we should read and flush
console input buffer from the thread where the event is signalled,
instead of GMain context thread.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/2058>
subprojects/gst-plugins-base/tools/gst-play-kb.c