diff options
author | Christian Pointner <equinox@mur.at> | 2011-11-08 21:35:14 +0000 |
---|---|---|
committer | Christian Pointner <equinox@mur.at> | 2011-11-08 21:35:14 +0000 |
commit | cd8e1016cdaea0c8cf0bca95ea6f362eeeae9d38 (patch) | |
tree | 74100529bf29cf92710b8ea219dd38b0efff34a8 | |
parent | gencrx and gst-dtmf commands (diff) |
fixed case sensitivity in gst-dtmf
git-svn-id: https://svn.spreadspace.org/mur.sat@187 7de4ea59-55d0-425e-a1af-a3118ea81d4c
-rw-r--r-- | tools/dtmf/gst-dtmf.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/dtmf/gst-dtmf.c b/tools/dtmf/gst-dtmf.c index 97d832f..442436b 100644 --- a/tools/dtmf/gst-dtmf.c +++ b/tools/dtmf/gst-dtmf.c @@ -34,6 +34,7 @@ #include <termios.h> #include <unistd.h> #include <fcntl.h> +#include <ctype.h> static gboolean bus_call (GstBus *bus, GstMessage *msg, gpointer data) { @@ -110,6 +111,7 @@ static gpointer reader_thread_func(gpointer data) gst_element_send_event(element, ev); } code = -1; + sign=tolower(sign); switch(sign) { case '0': code = 0; break; case '1': code = 1; break; |