From 2bd1de60ce97f1e74480a6ba375edc865833fca5 Mon Sep 17 00:00:00 2001 From: Ilja Pavkovic Date: Tue, 8 Jul 2008 14:28:08 +0000 Subject: gst/librfb/: Add property for shared desktop Original commit message from CVS: patch by: Ilja Pavkovic * gst/librfb/gstrfbsrc.c: * gst/librfb/rfbdecoder.c: Add property for shared desktop --- gst/librfb/gstrfbsrc.c | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'gst/librfb/gstrfbsrc.c') diff --git a/gst/librfb/gstrfbsrc.c b/gst/librfb/gstrfbsrc.c index a2b4eca8..376d901d 100644 --- a/gst/librfb/gstrfbsrc.c +++ b/gst/librfb/gstrfbsrc.c @@ -43,7 +43,8 @@ enum ARG_WIDTH, ARG_HEIGHT, ARG_INCREMENTAL, - ARG_USE_COPYRECT + ARG_USE_COPYRECT, + ARG_SHARED }; GST_DEBUG_CATEGORY_STATIC (rfbsrc_debug); @@ -148,6 +149,9 @@ gst_rfb_src_class_init (GstRfbSrcClass * klass) g_object_class_install_property (gobject_class, ARG_USE_COPYRECT, g_param_spec_boolean ("use-copyrect", "Use copyrect encoding", "Use copyrect encoding", FALSE, G_PARAM_READWRITE)); + g_object_class_install_property (gobject_class, ARG_SHARED, + g_param_spec_boolean ("shared", "Share desktop with other clients", + "Share desktop with other clients", TRUE, G_PARAM_READWRITE)); gstbasesrc_class->start = GST_DEBUG_FUNCPTR (gst_rfb_src_start); gstbasesrc_class->stop = GST_DEBUG_FUNCPTR (gst_rfb_src_stop); gstbasesrc_class->event = GST_DEBUG_FUNCPTR (gst_rfb_src_event); @@ -273,6 +277,9 @@ gst_rfb_src_set_property (GObject * object, guint prop_id, case ARG_USE_COPYRECT: src->decoder->use_copyrect = g_value_get_boolean (value); break; + case ARG_SHARED: + src->decoder->shared_flag = g_value_get_boolean (value); + break; default: break; } @@ -315,6 +322,9 @@ gst_rfb_src_get_property (GObject * object, guint prop_id, case ARG_USE_COPYRECT: g_value_set_boolean (value, src->decoder->use_copyrect); break; + case ARG_SHARED: + g_value_set_boolean (value, src->decoder->shared_flag); + break; default: G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec); break; -- cgit v1.2.1