pidgin.vv: 1f56f207: Remove purple_media_set_src/sink from th..
maiku at soc.pidgin.im
maiku at soc.pidgin.im
Sat Mar 21 05:15:38 EDT 2009
-----------------------------------------------------------------
Revision: 1f56f20787fc3fe82c8632b0ba45efbee555a3c2
Ancestor: 359b10710eaadbf62412aabe5de8a5d778fcd02e
Author: maiku at soc.pidgin.im
Date: 2009-03-21T07:34:13
Branch: im.pidgin.pidgin.vv
URL: http://d.pidgin.im/viewmtn/revision/info/1f56f20787fc3fe82c8632b0ba45efbee555a3c2
Modified files:
libpurple/media.c libpurple/media.h
ChangeLog:
Remove purple_media_set_src/sink from the public API.
-------------- next part --------------
============================================================
--- libpurple/media.c da6cb867c96578246d8928aa955b205e51d644a5
+++ libpurple/media.c 6c0992f678a459ad13cdb13524f04fb8c68c5afc
@@ -1114,7 +1114,7 @@ purple_media_get_session_names(PurpleMed
g_hash_table_get_keys(media->priv->sessions) : NULL;
}
-void
+static void
purple_media_set_src(PurpleMedia *media, const gchar *sess_id, GstElement *src)
{
PurpleMediaSession *session;
@@ -1151,7 +1151,8 @@ purple_media_set_src(PurpleMedia *media,
gst_element_set_locked_state(session->src, FALSE);
}
-void
+#if 0
+static void
purple_media_set_sink(PurpleMedia *media, const gchar *sess_id,
const gchar *participant, GstElement *sink)
{
@@ -1173,6 +1174,7 @@ purple_media_set_sink(PurpleMedia *media
gst_bin_add(GST_BIN(stream->session->media->priv->confbin),
stream->sink);
}
+#endif
GstElement *
purple_media_get_src(PurpleMedia *media, const gchar *sess_id)
============================================================
--- libpurple/media.h a1b248ee309b481ab2c05edaffc6c8d03e396ae1
+++ libpurple/media.h 10430027eca249ad42f084eaddf8cd60f6d92821
@@ -351,26 +351,6 @@ GList *purple_media_get_session_names(Pu
GList *purple_media_get_session_names(PurpleMedia *media);
/**
- * Sets the source on a session.
- *
- * @param media The media object the session is in.
- * @param sess_id The session id of the session to set the source on.
- * @param src The source to set the session source to.
- */
-void purple_media_set_src(PurpleMedia *media, const gchar *sess_id, GstElement *src);
-
-/**
- * Sets the sink on a stream.
- *
- * @param media The media object the session is in.
- * @param sess_id The session id the stream belongs to.
- * @param sess_id The participant the stream is associated with.
- * @param sink The source to set the session sink to.
- */
-void purple_media_set_sink(PurpleMedia *media, const gchar *sess_id,
- const gchar *participant, GstElement *sink);
-
-/**
* Gets the source from a session
*
* @param media The media object the session is in.
More information about the Commits
mailing list