[farsight2/master] Copy the codec into the negotiated list

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


---
 gst/fsrtpconference/fs-rtp-codec-negotiation.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/gst/fsrtpconference/fs-rtp-codec-negotiation.c b/gst/fsrtpconference/fs-rtp-codec-negotiation.c
index b0f4719..b515e12 100644
--- a/gst/fsrtpconference/fs-rtp-codec-negotiation.c
+++ b/gst/fsrtpconference/fs-rtp-codec-negotiation.c
@@ -528,7 +528,8 @@ negotiate_codecs (const GList *remote_codecs,
 
       g_hash_table_insert (new_codec_associations,
           GINT_TO_POINTER (remote_codec->id), new_ca);
-      new_negotiated_codecs = g_list_append (new_negotiated_codecs, new_ca->codec);
+      new_negotiated_codecs = g_list_append (new_negotiated_codecs,
+          fs_codec_copy (new_ca->codec));
     } else {
       gchar *tmp = fs_codec_to_string (remote_codec);
       g_debug ("Could not find a valid intersection... for codec %s",
-- 
1.5.6.5




More information about the farsight-commits mailing list