summaryrefslogtreecommitdiff
path: root/tools/dtmf/gst-dtmf.c
diff options
context:
space:
mode:
Diffstat (limited to 'tools/dtmf/gst-dtmf.c')
-rw-r--r--tools/dtmf/gst-dtmf.c2
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;