[farsight2/master] Document the codec negotiation a tiny little bit

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


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

diff --git a/gst/fsrtpconference/fs-rtp-codec-negotiation.c b/gst/fsrtpconference/fs-rtp-codec-negotiation.c
index 3615a6b..afae976 100644
--- a/gst/fsrtpconference/fs-rtp-codec-negotiation.c
+++ b/gst/fsrtpconference/fs-rtp-codec-negotiation.c
@@ -477,6 +477,22 @@ _do_sdp_codec_nego (gpointer key, gpointer value, gpointer user_data)
   return FALSE;
 }
 
+/**
+ * negotiate_codecs:
+ * @remote_codecs: The list of remote codecs passed from the other side
+ * @local_codec_associations: The hash table of local codec associations
+ * @local_codecs: The ordered list of local codecs
+ * @use_local_ids: Wheter to use local or remote PTs if they dont match (%TRUE
+ *  for local, %FALSE for remote)
+ * @negotiated_codecs_out: A pointer to a pointer to a #GList where the ordered
+ *  GList of negotiated codecs can be stored (its not touched if no codec could
+ *  be negotiated)
+ *
+ * This function performs the codec negotiation.
+ *
+ * Returns: a #GHashTable of (guint pt) => (CodecAssociation*) or %NULL no codec could be negotiated
+ */
+
 GHashTable *
 negotiate_codecs (const GList *remote_codecs,
     GHashTable *negotiated_codec_associations,
-- 
1.5.6.5




More information about the farsight-commits mailing list