summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOlivier CrĂȘte <olivier.crete@collabora.com>2014-05-09 18:03:41 -0400
committerNicolas Dufresne <nicolas.dufresne@collabora.co.uk>2014-09-18 13:38:00 -0400
commit8d818b6377f19fe9e4e25b3c40c35ba49bcc13ed (patch)
treea17b9752af449a612a3ae9a57de2ac1fb0d349ac
parent35f0811fa6f064cc771e67edc9f73585fb954155 (diff)
downloadfarstream-8d818b6377f19fe9e4e25b3c40c35ba49bcc13ed.tar.gz
rtpdiscocodec: Use GQueue instead g_list_append
-rw-r--r--gst/fsrtpconference/fs-rtp-discover-codecs.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/gst/fsrtpconference/fs-rtp-discover-codecs.c b/gst/fsrtpconference/fs-rtp-discover-codecs.c
index e8528540..c73228e7 100644
--- a/gst/fsrtpconference/fs-rtp-discover-codecs.c
+++ b/gst/fsrtpconference/fs-rtp-discover-codecs.c
@@ -558,14 +558,14 @@ remove_duplicates (GList *list)
static GList *
copy_element_list (GList *inlist)
{
- GList *outlist = NULL;
+ GQueue outqueue = G_QUEUE_INIT;
GList *tmp1;
for (tmp1 = g_list_first (inlist); tmp1; tmp1 = g_list_next (tmp1)) {
- outlist = g_list_append (outlist, g_list_copy (tmp1->data));
+ g_queue_push_tail (&outqueue, g_list_copy (tmp1->data));
g_list_foreach (tmp1->data, (GFunc) gst_object_ref, NULL);
}
- return outlist;
+ return outqueue.head;
}
/* insert given codec_cap list into list_codecs and list_codec_blueprints */