changeset 26331:6cafb8e35032

Remove purple_media_get_elements function.
author Mike Ruprecht <maiku@soc.pidgin.im>
date Sat, 21 Mar 2009 06:25:07 +0000
parents 99d58fee24b1
children 89002b47a0df
files libpurple/media.c libpurple/media.h
diffstat 2 files changed, 0 insertions(+), 45 deletions(-) [+]
line wrap: on
line diff
--- a/libpurple/media.c	Sat Mar 21 06:10:28 2009 +0000
+++ b/libpurple/media.c	Sat Mar 21 06:25:07 2009 +0000
@@ -1115,36 +1115,6 @@
 }
 
 void 
-purple_media_get_elements(PurpleMedia *media, GstElement **audio_src, GstElement **audio_sink,
-                                                  GstElement **video_src, GstElement **video_sink)
-{
-	GList *values;
-
-	g_return_if_fail(PURPLE_IS_MEDIA(media));
-
-	values = g_hash_table_get_values(media->priv->sessions);
-
-	for (; values; values = g_list_delete_link(values, values)) {
-		PurpleMediaSession *session = (PurpleMediaSession*)values->data;
-
-		if (session->type & PURPLE_MEDIA_SEND_AUDIO && audio_src)
-			*audio_src = session->src;
-		if (session->type & PURPLE_MEDIA_SEND_VIDEO && video_src)
-			*video_src = session->src;
-	}
-
-	values = media->priv->streams;
-	for (; values; values = g_list_next(values)) {
-		PurpleMediaStream *stream = (PurpleMediaStream*)values->data;
-
-		if (stream->session->type & PURPLE_MEDIA_RECV_AUDIO && audio_sink)
-			*audio_sink = stream->sink;
-		if (stream->session->type & PURPLE_MEDIA_RECV_VIDEO && video_sink)
-			*video_sink = stream->sink;
-	}
-}
-
-void 
 purple_media_set_src(PurpleMedia *media, const gchar *sess_id, GstElement *src)
 {
 	PurpleMediaSession *session;
--- a/libpurple/media.h	Sat Mar 21 06:10:28 2009 +0000
+++ b/libpurple/media.h	Sat Mar 21 06:25:07 2009 +0000
@@ -351,21 +351,6 @@
 GList *purple_media_get_session_names(PurpleMedia *media);
 
 /**
- * Gets an audio and video source and sink from the media session.
- *
- * Retrieves the first of each element in the media session.
- *
- * @param media The media session to retreive the sources and sinks from.
- * @param audio_src Set to the audio source.
- * @param audio_sink Set to the audio sink.
- * @param video_src Set to the video source.
- * @param video_sink Set to the video sink.
- */
-void purple_media_get_elements(PurpleMedia *media,
-			       GstElement **audio_src, GstElement **audio_sink,
-			       GstElement **video_src, GstElement **video_sink);
-
-/**
  * Sets the source on a session.
  *
  * @param media The media object the session is in.