Mercurial > pidgin
comparison libpurple/media/media.c @ 29205:78ac6e4d3de9
Add a list of participants back to PurpleMedia.
author | maiku@pidgin.im |
---|---|
date | Wed, 28 Oct 2009 18:07:27 +0000 |
parents | 86c23178a4fc |
children | 80bdae3ea957 |
comparison
equal
deleted
inserted
replaced
29204:18bc5ae20e23 | 29205:78ac6e4d3de9 |
---|---|
97 gchar *conference_type; | 97 gchar *conference_type; |
98 gboolean initiator; | 98 gboolean initiator; |
99 gpointer prpl_data; | 99 gpointer prpl_data; |
100 | 100 |
101 GHashTable *sessions; /* PurpleMediaSession table */ | 101 GHashTable *sessions; /* PurpleMediaSession table */ |
102 | 102 GList *participants; |
103 GList *streams; /* PurpleMediaStream table */ | 103 GList *streams; /* PurpleMediaStream table */ |
104 #else | 104 #else |
105 gpointer dummy; | 105 gpointer dummy; |
106 #endif | 106 #endif |
107 }; | 107 }; |
336 purple_debug_info("media","purple_media_finalize\n"); | 336 purple_debug_info("media","purple_media_finalize\n"); |
337 | 337 |
338 for (; priv->streams; priv->streams = g_list_delete_link(priv->streams, priv->streams)) | 338 for (; priv->streams; priv->streams = g_list_delete_link(priv->streams, priv->streams)) |
339 purple_media_stream_free(priv->streams->data); | 339 purple_media_stream_free(priv->streams->data); |
340 | 340 |
341 for (; priv->participants; priv->participants = g_list_delete_link( | |
342 priv->participants, priv->participants)) | |
343 g_free(priv->participants->data); | |
344 | |
341 if (priv->sessions) { | 345 if (priv->sessions) { |
342 GList *sessions = g_hash_table_get_values(priv->sessions); | 346 GList *sessions = g_hash_table_get_values(priv->sessions); |
343 for (; sessions; sessions = g_list_delete_link(sessions, sessions)) { | 347 for (; sessions; sessions = g_list_delete_link(sessions, sessions)) { |
344 purple_media_session_free(sessions->data); | 348 purple_media_session_free(sessions->data); |
345 } | 349 } |