[farsight2/master] rtpdtmfsoundsource: Ignore codecs that don't have a blueprint
Olivier Crête
olivier.crete at collabora.co.uk
Mon Nov 9 10:02:30 PST 2009
---
gst/fsrtpconference/fs-rtp-dtmf-sound-source.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/gst/fsrtpconference/fs-rtp-dtmf-sound-source.c b/gst/fsrtpconference/fs-rtp-dtmf-sound-source.c
index 75b9200..7bd56f2 100644
--- a/gst/fsrtpconference/fs-rtp-dtmf-sound-source.c
+++ b/gst/fsrtpconference/fs-rtp-dtmf-sound-source.c
@@ -160,7 +160,8 @@ _get_main_codec_association (GList *codec_associations, FsCodec *codec)
CodecAssociation *ca = lookup_codec_association_by_codec_without_config (
codec_associations, codec);
- if (ca && codec_association_is_valid_for_sending (ca, TRUE))
+ if (ca && codec_association_is_valid_for_sending (ca, TRUE) &&
+ codec_blueprint_has_factory (ca->blueprint, TRUE))
return ca;
else
return NULL;
--
1.5.6.5
More information about the farsight-commits
mailing list