pidgin.vv: 74f10e51: Silence warning about videotestsrc not h...
maiku at soc.pidgin.im
maiku at soc.pidgin.im
Thu Mar 19 08:50:39 EDT 2009
-----------------------------------------------------------------
Revision: 74f10e5114439f20b4034a5b2ff4721855fac002
Ancestor: bca16b65288f273ddf2a40e6499723b0fdbddd5f
Author: maiku at soc.pidgin.im
Date: 2009-03-19T12:44:52
Branch: im.pidgin.pidgin.vv
URL: http://d.pidgin.im/viewmtn/revision/info/74f10e5114439f20b4034a5b2ff4721855fac002
Modified files:
libpurple/mediamanager.c
ChangeLog:
Silence warning about videotestsrc not having two properties.
-------------- next part --------------
============================================================
--- libpurple/mediamanager.c 200d4f5c04ce0923fcb6e3ae22a238ea41151d68
+++ libpurple/mediamanager.c 6bf9ae1ede7268dc6a797ef8f2370a22bf18c52e
@@ -498,10 +498,19 @@ purple_media_manager_create_output_windo
ow->sink = purple_media_manager_get_element(
manager, PURPLE_MEDIA_RECV_VIDEO);
- if (participant == NULL)
+ if (participant == NULL) {
/* aka this is a preview sink */
- g_object_set(G_OBJECT(ow->sink), "sync", FALSE,
- "async", "FALSE", NULL);
+ GObjectClass *klass =
+ G_OBJECT_GET_CLASS(ow->sink);
+ if (g_object_class_find_property(klass,
+ "sync"))
+ g_object_set(G_OBJECT(ow->sink),
+ "sync", "FALSE", NULL);
+ if (g_object_class_find_property(klass,
+ "async"))
+ g_object_set(G_OBJECT(ow->sink),
+ "async", FALSE, NULL);
+ }
gst_bin_add_many(GST_BIN(GST_ELEMENT_PARENT(tee)),
queue, ow->sink, NULL);
More information about the Commits
mailing list