[farsight2/master] The local and negotiated codec lists have their own copies of the codecs

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


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

diff --git a/gst/fsrtpconference/fs-rtp-codec-negotiation.c b/gst/fsrtpconference/fs-rtp-codec-negotiation.c
index ab96f74..14df523 100644
--- a/gst/fsrtpconference/fs-rtp-codec-negotiation.c
+++ b/gst/fsrtpconference/fs-rtp-codec-negotiation.c
@@ -340,7 +340,7 @@ GHashTable *create_local_codec_associations (FsMediaType media_type,
       }
     }
 
-    local_codecs = g_list_append (local_codecs, lca->codec);
+    local_codecs = g_list_append (local_codecs, fs_codec_copy (lca->codec));
     g_hash_table_insert (codec_associations, GINT_TO_POINTER (lca->codec->id),
         lca);
 
@@ -386,7 +386,7 @@ GHashTable *create_local_codec_associations (FsMediaType media_type,
 
     g_hash_table_insert (codec_associations, GINT_TO_POINTER (ca->codec->id),
         ca);
-    local_codecs = g_list_append (local_codecs, ca->codec);
+    local_codecs = g_list_append (local_codecs, fs_codec_copy (ca->codec));
   }
 
  out:
-- 
1.5.6.5




More information about the farsight-commits mailing list