# HG changeset patch # User Mike Ruprecht # Date 1237616707 0 # Node ID 6cafb8e35032ac2ae588a54c3af0ecef6f0af9e3 # Parent 99d58fee24b1c65086ee35771c1461fb056029ee Remove purple_media_get_elements function. diff -r 99d58fee24b1 -r 6cafb8e35032 libpurple/media.c --- 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; diff -r 99d58fee24b1 -r 6cafb8e35032 libpurple/media.h --- 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.