pidgin.vv: 359b1071: Remove purple_media_get_elements functio...
maiku at soc.pidgin.im
maiku at soc.pidgin.im
Sat Mar 21 05:15:41 EDT 2009
-----------------------------------------------------------------
Revision: 359b10710eaadbf62412aabe5de8a5d778fcd02e
Ancestor: 3589b814fb4baa52ae7be71e2ed48eaea592820d
Author: maiku at soc.pidgin.im
Date: 2009-03-21T06:25:07
Branch: im.pidgin.pidgin.vv
URL: http://d.pidgin.im/viewmtn/revision/info/359b10710eaadbf62412aabe5de8a5d778fcd02e
Modified files:
libpurple/media.c libpurple/media.h
ChangeLog:
Remove purple_media_get_elements function.
-------------- next part --------------
============================================================
--- libpurple/media.c 200e976ea57afc4c04c91d188d8f00f6ba3f55af
+++ libpurple/media.c da6cb867c96578246d8928aa955b205e51d644a5
@@ -1115,36 +1115,6 @@ void
}
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;
============================================================
--- libpurple/media.h a369a914f5238f257a51980a5d93fcd920893370
+++ libpurple/media.h a1b248ee309b481ab2c05edaffc6c8d03e396ae1
@@ -351,21 +351,6 @@ GList *purple_media_get_session_names(Pu
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.
More information about the Commits
mailing list