mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-06-04 22:48:54 +00:00
[MOVED FROM GST-P-FARSIGHT] Only send dtmf if the method is unspecified or is 1
20070504195251-3e2dc-b95b4b8e8dad87962cf39ec2ee67b6f1b619e9bd.gz
This commit is contained in:
parent
18344ae7b2
commit
eb74905991
1 changed files with 16 additions and 1 deletions
|
@ -84,7 +84,15 @@
|
|||
* <entry>start</entry>
|
||||
* <entry>G_TYPE_BOOLEAN</entry>
|
||||
* <entry>True or False</entry>
|
||||
* <entry>Wether the event is starting or ending.</entry>
|
||||
* <entry>Whether the event is starting or ending.</entry>
|
||||
* </row>
|
||||
* <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 1.
|
||||
* </entry>
|
||||
* </row>
|
||||
* </tbody>
|
||||
* </tgroup>
|
||||
|
@ -321,12 +329,19 @@ gst_rtp_dtmf_src_handle_dtmf_event (GstRTPDTMFSrc *dtmfsrc,
|
|||
{
|
||||
gint event_type;
|
||||
gboolean start;
|
||||
gint method;
|
||||
|
||||
if (!gst_structure_get_int (event_structure, "type", &event_type) ||
|
||||
!gst_structure_get_boolean (event_structure, "start", &start) ||
|
||||
event_type != GST_RTP_DTMF_TYPE_EVENT)
|
||||
goto failure;
|
||||
|
||||
if (gst_structure_get_int (event_structure, "method", &method)) {
|
||||
if (method != 1) {
|
||||
goto failure;
|
||||
}
|
||||
}
|
||||
|
||||
if (start) {
|
||||
gint event_number;
|
||||
gint event_volume;
|
||||
|
|
Loading…
Reference in a new issue