summaryrefslogtreecommitdiffstats
path: root/gst/librfb/rfbdecoder.c
diff options
context:
space:
mode:
authorIlja Pavkovic <illsen@gumblfarz.de>2008-07-08 15:24:44 +0000
committerThijs Vermeir <thijsvermeir@gmail.com>2008-07-08 15:24:44 +0000
commit7399002e2bf8cdae51298ff427ded637655543e3 (patch)
treed817ad03bb5315c4c42336de79b43aeccb801ab8 /gst/librfb/rfbdecoder.c
parent2bd1de60ce97f1e74480a6ba375edc865833fca5 (diff)
downloadgst-plugins-bad-7399002e2bf8cdae51298ff427ded637655543e3.tar.gz
gst-plugins-bad-7399002e2bf8cdae51298ff427ded637655543e3.tar.bz2
gst-plugins-bad-7399002e2bf8cdae51298ff427ded637655543e3.zip
gst/librfb/rfbdecoder.c: Implement ServerCutText message
Original commit message from CVS: patch by: Ilja Pavkovic <illsen@gumblfarz.de> * gst/librfb/rfbdecoder.c: Implement ServerCutText message
Diffstat (limited to 'gst/librfb/rfbdecoder.c')
-rw-r--r--gst/librfb/rfbdecoder.c15
1 files changed, 13 insertions, 2 deletions
diff --git a/gst/librfb/rfbdecoder.c b/gst/librfb/rfbdecoder.c
index f38270aa..d16e584f 100644
--- a/gst/librfb/rfbdecoder.c
+++ b/gst/librfb/rfbdecoder.c
@@ -810,7 +810,18 @@ rfb_decoder_state_set_colour_map_entries (RfbDecoder * decoder)
static gboolean
rfb_decoder_state_server_cut_text (RfbDecoder * decoder)
{
- g_critical ("not implemented");
+ guint8 *buffer;
+ gint cut_text_length;
- return FALSE;
+ /* 3 bytes padding, 4 bytes cut_text_length */
+ buffer = rfb_decoder_read (decoder, 7);
+ cut_text_length = RFB_GET_UINT32 (buffer + 3);
+ g_free (buffer);
+
+ buffer = rfb_decoder_read (decoder, cut_text_length);
+ GST_DEBUG ("rfb_decoder_state_server_cut_text: throw away '%s'", buffer);
+ g_free (buffer);
+
+ decoder->state = rfb_decoder_state_normal;
+ return TRUE;
}