[farsight2/master] Only send dtmf as audio if the current code has a clock-rate of 8000

Olivier Crête olivier.crete at collabora.co.uk
Tue Dec 23 15:23:19 PST 2008


---
 gst/fsrtpconference/fs-rtp-dtmf-sound-source.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/gst/fsrtpconference/fs-rtp-dtmf-sound-source.c b/gst/fsrtpconference/fs-rtp-dtmf-sound-source.c
index 29beae8..f73a4ce 100644
--- a/gst/fsrtpconference/fs-rtp-dtmf-sound-source.c
+++ b/gst/fsrtpconference/fs-rtp-dtmf-sound-source.c
@@ -167,6 +167,9 @@ fs_rtp_dtmf_sound_source_class_want_source (FsRtpSpecialSourceClass *klass,
   if (selected_codec->media_type != FS_MEDIA_TYPE_AUDIO)
     return FALSE;
 
+  if (selected_codec->clock_rate != 8000)
+    return FALSE;
+
   codec = get_pcm_law_sound_codec (negotiated_codecs,
       &encoder_name, &payloader_name);
   if (!codec)
-- 
1.5.6.5




More information about the farsight-commits mailing list