summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ChangeLog8
-rw-r--r--gst/librfb/gstrfbsrc.c12
-rw-r--r--gst/librfb/rfbdecoder.c1
3 files changed, 20 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index ebde6c85..ac0ac5d1 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2008-07-08 Thijs Vermeir <thijsvermeir@gmail.com>
+
+ patch by: Ilja Pavkovic <illsen@gumblfarz.de>
+
+ * gst/librfb/gstrfbsrc.c:
+ * gst/librfb/rfbdecoder.c:
+ Add property for shared desktop
+
2008-07-08 Sebastian Dröge <sebastian.droege@collabora.co.uk>
* configure.ac:
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;
diff --git a/gst/librfb/rfbdecoder.c b/gst/librfb/rfbdecoder.c
index 0bc1fb2d..f38270aa 100644
--- a/gst/librfb/rfbdecoder.c
+++ b/gst/librfb/rfbdecoder.c
@@ -79,6 +79,7 @@ rfb_decoder_new (void)
decoder->offset_y = 0;
decoder->rect_width = 0;
decoder->rect_height = 0;
+ decoder->shared_flag = TRUE;
return decoder;
}