pidgin.vv: b9590dd3: Declare which media caps Pidgin and Finc...

maiku at soc.pidgin.im maiku at soc.pidgin.im
Tue Mar 31 03:51:01 EDT 2009


-----------------------------------------------------------------
Revision: b9590dd3baa0a323803bb14ec968c433bfb6d1ee
Ancestor: bd37a3831b8fc4e1bcfefd0b85499ee2b6cd98b9
Author: maiku at soc.pidgin.im
Date: 2009-03-31T06:49:19
Branch: im.pidgin.pidgin.vv
URL: http://d.pidgin.im/viewmtn/revision/info/b9590dd3baa0a323803bb14ec968c433bfb6d1ee

Modified files:
        finch/gntmedia.c pidgin/gtkmedia.c

ChangeLog: 

Declare which media caps Pidgin and Finch handle.

-------------- next part --------------
============================================================
--- finch/gntmedia.c	2ae7195f5a382441f6e0e74920df0424b0c33ac2
+++ finch/gntmedia.c	9f7f797b404d86cb1c05ad378dbfd5c8dc191a7c
@@ -467,6 +467,10 @@ void finch_media_manager_init(void)
 			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);
============================================================
--- pidgin/gtkmedia.c	1b5e92d56dba2f0dd2a742823001abda295774fa
+++ pidgin/gtkmedia.c	772cf1ec72d84df1002f54f060383d7799f44404
@@ -1051,6 +1051,13 @@ pidgin_medias_init(void)
 	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);


More information about the Commits mailing list