Commit 0b44ac28 authored by Seungha Yang's avatar Seungha Yang 🐑

gst-play: Handle "space" key event correctly on Windows

The key name string given by GetKeyNameText() can have uppercase letter.
parent dcfa999e
......@@ -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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment