# HG changeset patch # User Mike Ruprecht # Date 1237620853 0 # Node ID 89002b47a0df0732d9fdb1bfa28d671f0d78d154 # Parent 6cafb8e35032ac2ae588a54c3af0ecef6f0af9e3 Remove purple_media_set_src/sink from the public API. diff -r 6cafb8e35032 -r 89002b47a0df libpurple/media.c --- a/libpurple/media.c Sat Mar 21 06:25:07 2009 +0000 +++ b/libpurple/media.c Sat Mar 21 07:34:13 2009 +0000 @@ -1114,7 +1114,7 @@ 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 @@ 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 @@ gst_bin_add(GST_BIN(stream->session->media->priv->confbin), stream->sink); } +#endif GstElement * purple_media_get_src(PurpleMedia *media, const gchar *sess_id) diff -r 6cafb8e35032 -r 89002b47a0df libpurple/media.h --- a/libpurple/media.h Sat Mar 21 06:25:07 2009 +0000 +++ b/libpurple/media.h Sat Mar 21 07:34:13 2009 +0000 @@ -351,26 +351,6 @@ 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.