tools: play: fix endless loop on unhandled keys

When debugging output is not enabled.
This commit is contained in:
Tim-Philipp Müller 2013-11-24 14:33:24 +00:00
parent d6a6c2a3b1
commit aab687505e

View file

@ -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;
}
}