[farsight2/master] Give function more explicit name about its memory allocation
Olivier Crête
olivier.crete at collabora.co.uk
Tue Dec 23 15:25:49 PST 2008
---
gst/fsrtpconference/fs-rtp-codec-negotiation.c | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/gst/fsrtpconference/fs-rtp-codec-negotiation.c b/gst/fsrtpconference/fs-rtp-codec-negotiation.c
index 7119e2f..7fb4e01 100644
--- a/gst/fsrtpconference/fs-rtp-codec-negotiation.c
+++ b/gst/fsrtpconference/fs-rtp-codec-negotiation.c
@@ -481,7 +481,7 @@ codec_remove_parameter (FsCodec *codec, const gchar *param_name)
}
static gchar *
-get_param_value (FsCodec *codec, const gchar *param_name)
+dup_param_value (FsCodec *codec, const gchar *param_name)
{
FsCodecParameter *param;
@@ -629,8 +629,8 @@ create_local_codec_associations (
codec_remove_parameter (codec, RECV_PROFILE_ARG);
ca->codec = codec;
- ca->send_profile = get_param_value (codec_pref, SEND_PROFILE_ARG);
- ca->recv_profile = get_param_value (codec_pref, RECV_PROFILE_ARG);
+ ca->send_profile = dup_param_value (codec_pref, SEND_PROFILE_ARG);
+ ca->recv_profile = dup_param_value (codec_pref, RECV_PROFILE_ARG);
codec_associations = list_insert_local_ca (codec_associations, ca);
continue;
@@ -645,8 +645,8 @@ create_local_codec_associations (
codec_remove_parameter (ca->codec, SEND_PROFILE_ARG);
codec_remove_parameter (ca->codec, RECV_PROFILE_ARG);
- ca->send_profile = get_param_value (codec_pref, SEND_PROFILE_ARG);
- ca->recv_profile = get_param_value (codec_pref, RECV_PROFILE_ARG);
+ ca->send_profile = dup_param_value (codec_pref, SEND_PROFILE_ARG);
+ ca->recv_profile = dup_param_value (codec_pref, RECV_PROFILE_ARG);
if (bp)
{
--
1.5.6.5
More information about the farsight-commits
mailing list