[farsight2/master] rtpdtmfsound: Try hardwired PCMx only if the clock-rate is 8000

Olivier Crête olivier.crete at collabora.co.uk
Wed Nov 11 13:48:09 PST 2009


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

diff --git a/gst/fsrtpconference/fs-rtp-dtmf-sound-source.c b/gst/fsrtpconference/fs-rtp-dtmf-sound-source.c
index bce405c..6872619 100644
--- a/gst/fsrtpconference/fs-rtp-dtmf-sound-source.c
+++ b/gst/fsrtpconference/fs-rtp-dtmf-sound-source.c
@@ -183,7 +183,7 @@ fs_rtp_dtmf_sound_source_get_codec (FsRtpSpecialSourceClass *klass,
   if (!_check_element_factory ("dtmfsrc"))
     return NULL;
 
-  if (selected_codec->clock_rate != 8000)
+  if (selected_codec->clock_rate == 8000)
   {
     codec = get_pcm_law_sound_codec (negotiated_codec_associations,
         &encoder_name, &payloader_name);
-- 
1.5.6.5




More information about the farsight-commits mailing list