summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOlivier Crete <olivier.crete@collabora.co.uk>2008-03-19 21:17:31 +0000
committerEdward Hervey <bilboed@bilboed.com>2009-02-21 17:48:05 +0100
commitb83757155eecd3324cef159b5dab39473d55ca18 (patch)
tree983bad4d829f0321c64a4107daea64028ae97571
parent9681c48d07ce4c567cfbfd991da5316318928fd2 (diff)
downloadgst-plugins-bad-b83757155eecd3324cef159b5dab39473d55ca18.tar.gz
gst-plugins-bad-b83757155eecd3324cef159b5dab39473d55ca18.tar.bz2
gst-plugins-bad-b83757155eecd3324cef159b5dab39473d55ca18.zip
[MOVED FROM GST-P-FARSIGHT] Make it clear that dtmfsrc also takes named events as input
20080319211731-3e2dc-26c729f6dc8db27e71cf6b22646a81530dbf862f.gz
-rw-r--r--gst/dtmf/gstdtmfsrc.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/gst/dtmf/gstdtmfsrc.c b/gst/dtmf/gstdtmfsrc.c
index 444a79df..71e5dbb9 100644
--- a/gst/dtmf/gstdtmfsrc.c
+++ b/gst/dtmf/gstdtmfsrc.c
@@ -64,7 +64,7 @@
* <entry>0-1</entry>
* <entry>The application uses this field to specify which of the two methods
* specified in RFC 2833 to use. The value should be 0 for tones and 1 for
- * named events. This element is only capable of generating tones.
+ * named events. This element is only capable of generating named events.
* </entry>
* </row>
* <row>
@@ -91,9 +91,9 @@
* <row>
* <entry>method</entry>
* <entry>G_TYPE_INT</entry>
- * <entry>1</entry>
- * <entry>The method used for sending event, this element will react if this field
- * is absent or 2.
+ * <entry>2</entry>
+ * <entry>The method used for sending event, this element will react if this
+ * field is absent or 2.
* </entry>
* </row>
* </tbody>
@@ -109,7 +109,7 @@
* <para>
* <programlisting>
* structure = gst_structure_new ("dtmf-event",
- * "type", G_TYPE_INT, 0,
+ * "type", G_TYPE_INT, 1,
* "number", G_TYPE_INT, 1,
* "volume", G_TYPE_INT, 25,
* "start", G_TYPE_BOOLEAN, TRUE, NULL);
@@ -139,7 +139,7 @@
#include "gstdtmfsrc.h"
-#define GST_TONE_DTMF_TYPE_EVENT 0
+#define GST_TONE_DTMF_TYPE_EVENT 1
#define DEFAULT_PACKET_INTERVAL 50 /* ms */
#define MIN_PACKET_INTERVAL 10 /* ms */
#define MAX_PACKET_INTERVAL 50 /* ms */