[farsight2/master] Only copy back the new discovered codec if it has been found
Olivier Crête
olivier.crete at collabora.co.uk
Tue Dec 23 15:23:33 PST 2008
---
gst/fsrtpconference/fs-rtp-session.c | 10 ++++++----
1 files changed, 6 insertions(+), 4 deletions(-)
diff --git a/gst/fsrtpconference/fs-rtp-session.c b/gst/fsrtpconference/fs-rtp-session.c
index dad9718..7dac7ce 100644
--- a/gst/fsrtpconference/fs-rtp-session.c
+++ b/gst/fsrtpconference/fs-rtp-session.c
@@ -3331,12 +3331,14 @@ _discovery_caps_changed (GstPad *pad, GParamSpec *pspec, FsRtpSession *session)
ca = lookup_codec_association_by_codec (session->priv->codec_associations,
session->priv->discovery_codec);
- if (ca && ca->need_config)
- gather_caps_parameters (ca, caps);
-
fs_codec_destroy (session->priv->discovery_codec);
session->priv->discovery_codec = NULL;
- session->priv->discovery_codec = fs_codec_copy (ca->codec);
+
+ if (ca && ca->need_config)
+ {
+ gather_caps_parameters (ca, caps);
+ session->priv->discovery_codec = fs_codec_copy (ca->codec);
+ }
out:
--
1.5.6.5
More information about the farsight-commits
mailing list