projects
/
platform
/
upstream
/
gstreamer.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
tools: play: fix endless loop on unhandled keys
[platform/upstream/gstreamer.git]
/
tools
/
gst-play.c
diff --git
a/tools/gst-play.c
b/tools/gst-play.c
index
7715b6a
..
f42ba39
100644
(file)
--- a/
tools/gst-play.c
+++ b/
tools/gst-play.c
@@
-516,8
+516,8
@@
keyboard_cb (const gchar * key_input, gpointer user_data)
case 27: /* ESC */
default:
GST_INFO ("keyboard input:");
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;
}
}
break;
}
}