diff options
author | Ilja Pavkovic <illsen@gumblfarz.de> | 2008-07-08 14:28:08 +0000 |
---|---|---|
committer | Thijs Vermeir <thijsvermeir@gmail.com> | 2008-07-08 14:28:08 +0000 |
commit | 2bd1de60ce97f1e74480a6ba375edc865833fca5 (patch) | |
tree | e65d1a05f9042ec043a5a499cc185298e3eb907a /gst | |
parent | 9c2d06313bd2d6e498982b906d813f740c400855 (diff) | |
download | gst-plugins-bad-2bd1de60ce97f1e74480a6ba375edc865833fca5.tar.gz gst-plugins-bad-2bd1de60ce97f1e74480a6ba375edc865833fca5.tar.bz2 gst-plugins-bad-2bd1de60ce97f1e74480a6ba375edc865833fca5.zip |
gst/librfb/: Add property for shared desktop
Original commit message from CVS:
patch by: Ilja Pavkovic <illsen@gumblfarz.de>
* gst/librfb/gstrfbsrc.c:
* gst/librfb/rfbdecoder.c:
Add property for shared desktop
Diffstat (limited to 'gst')
-rw-r--r-- | gst/librfb/gstrfbsrc.c | 12 | ||||
-rw-r--r-- | gst/librfb/rfbdecoder.c | 1 |
2 files changed, 12 insertions, 1 deletions
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; } |