Commit aab68750 authored by Tim-Philipp Müller's avatar Tim-Philipp Müller
Browse files

tools: play: fix endless loop on unhandled keys

When debugging output is not enabled.
parent d6a6c2a3
......@@ -516,8 +516,8 @@ keyboard_cb (const gchar * key_input, gpointer user_data)
case 27: /* ESC */
default:
GST_INFO ("keyboard input:");
while (*key_input)
GST_INFO (" code %3d", *key_input++);
for (; *key_input != '\0'; ++key_input)
GST_INFO (" code %3d", *key_input);
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