projects
/
platform
/
upstream
/
gst-plugins-base.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
dcfa999
)
gst-play: Handle "space" key event correctly on Windows
author
Seungha Yang
<seungha.yang@navercorp.com>
Sun, 30 Jun 2019 04:10:50 +0000
(13:10 +0900)
committer
Seungha Yang
<seungha.yang@navercorp.com>
Sun, 30 Jun 2019 04:10:50 +0000
(13:10 +0900)
The key name string given by GetKeyNameText() can have uppercase letter.
tools/gst-play.c
patch
|
blob
|
history
diff --git
a/tools/gst-play.c
b/tools/gst-play.c
index
e145275
..
0a03c97
100644
(file)
--- a/
tools/gst-play.c
+++ b/
tools/gst-play.c
@@
-472,7
+472,8
@@
play_bus_msg (GstBus * bus, GstMessage * msg, gpointer user_data)
key = GST_PLAY_KB_ARROW_UP;
else if (strcmp (key, "Down") == 0)
key = GST_PLAY_KB_ARROW_DOWN;
- else if (strcmp (key, "space") == 0)
+ else if (strcmp (key, "space") == 0 ||
+ strcmp (key, "Space") == 0)
key = " ";
else if (strlen (key) > 1)
break;