changeset 26391:24feaf9cfbf1

Declare which media caps Pidgin and Finch handle.
author Mike Ruprecht <maiku@soc.pidgin.im>
date Tue, 31 Mar 2009 06:49:19 +0000
parents 507d2366d329
children 9c671fc1b351
files finch/gntmedia.c pidgin/gtkmedia.c
diffstat 2 files changed, 11 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/finch/gntmedia.c	Tue Mar 31 06:42:24 2009 +0000
+++ b/finch/gntmedia.c	Tue Mar 31 06:49:19 2009 +0000
@@ -467,6 +467,10 @@
 			PURPLE_CMD_FLAG_IM, NULL,
 			call_cmd_cb, _("call: Make an audio call."), NULL);
 
+	purple_media_manager_set_ui_caps(manager, 
+			PURPLE_MEDIA_CAPS_AUDIO |
+			PURPLE_MEDIA_CAPS_AUDIO_SINGLE_DIRECTION);
+
 	purple_debug_info("gntmedia", "Registering media element types\n");
 	purple_media_manager_set_active_element(manager, &default_audio_src);
 	purple_media_manager_set_active_element(manager, &default_audio_sink);
--- a/pidgin/gtkmedia.c	Tue Mar 31 06:42:24 2009 +0000
+++ b/pidgin/gtkmedia.c	Tue Mar 31 06:49:19 2009 +0000
@@ -1051,6 +1051,13 @@
 	g_signal_connect(G_OBJECT(manager), "init-media",
 			 G_CALLBACK(pidgin_media_new_cb), NULL);
 
+	purple_media_manager_set_ui_caps(manager, 
+			PURPLE_MEDIA_CAPS_AUDIO |
+			PURPLE_MEDIA_CAPS_AUDIO_SINGLE_DIRECTION |
+			PURPLE_MEDIA_CAPS_VIDEO |
+			PURPLE_MEDIA_CAPS_VIDEO_SINGLE_DIRECTION |
+			PURPLE_MEDIA_CAPS_AUDIO_VIDEO);
+
 	purple_debug_info("gtkmedia", "Registering media element types\n");
 	purple_media_manager_set_active_element(manager, &default_video_src);
 	purple_media_manager_set_active_element(manager, &default_video_sink);