diff options
author | Jonny Lamb <jonny.lamb@collabora.co.uk> | 2010-10-19 10:37:14 +0100 |
---|---|---|
committer | Jonny Lamb <jonny.lamb@collabora.co.uk> | 2010-10-19 17:40:36 +0100 |
commit | 503df43abadbbdc17774d0e9475313425db1eaae (patch) | |
tree | 13e245c88bf80325e18b994332f1ea44de9eccdc | |
parent | 06c32c0071603f09c44895cc6e43f18445c2e709 (diff) |
content: rename Stream{Added,Removed} to Streams{A,R}
Plural, baby!
Signed-off-by: Jonny Lamb <jonny.lamb@collabora.co.uk>
-rw-r--r-- | src/call-content.c | 20 |
1 files changed, 15 insertions, 5 deletions
diff --git a/src/call-content.c b/src/call-content.c index f8ef6ffa5..f2f7d98ae 100644 --- a/src/call-content.c +++ b/src/call-content.c @@ -806,6 +806,7 @@ call_content_setup_jingle (GabbleCallContent *self, GabbleJingleContent *jingle; GabbleCallStream *stream; gchar *path; + GPtrArray *paths; jingle = gabble_call_member_content_get_jingle_content (mcontent); @@ -819,13 +820,17 @@ call_content_setup_jingle (GabbleCallContent *self, "jingle-content", jingle, NULL); - jingle_media_rtp_set_local_codecs (GABBLE_JINGLE_MEDIA_RTP (jingle), jingle_media_rtp_copy_codecs (priv->local_codecs), TRUE, NULL); priv->streams = g_list_prepend (priv->streams, stream); - gabble_svc_call_content_emit_stream_added (self, path); - g_free (path); + + paths = g_ptr_array_new_with_free_func ((GDestroyNotify) g_free); + g_ptr_array_add (paths, path); + + gabble_svc_call_content_emit_streams_added (self, paths); + + g_ptr_array_unref (paths); } static void @@ -844,6 +849,7 @@ member_content_removed_cb (GabbleCallMemberContent *mcontent, GabbleCallContentPrivate *priv = self->priv; GabbleJingleContent *content; GList *l; + GPtrArray *paths; priv->contents = g_list_remove (priv->contents, mcontent); @@ -856,8 +862,12 @@ member_content_removed_cb (GabbleCallMemberContent *mcontent, if (content == gabble_call_stream_get_jingle_content (stream)) { priv->streams = g_list_delete_link (priv->streams, l); - gabble_svc_call_content_emit_stream_removed (self, - gabble_call_stream_get_object_path (stream)); + + paths = g_ptr_array_new_with_free_func ((GDestroyNotify) g_free); + g_ptr_array_add (paths, g_strdup ( + gabble_call_stream_get_object_path (stream))); + gabble_svc_call_content_emit_streams_removed (self, paths); + g_ptr_array_unref (paths); g_object_unref (stream); break; |