mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-20 08:41:07 +00:00
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
This commit is contained in:
parent
2bd1de60ce
commit
7399002e2b
2 changed files with 20 additions and 2 deletions
|
@ -1,3 +1,10 @@
|
||||||
|
2008-07-08 Thijs Vermeir <thijsvermeir@gmail.com>
|
||||||
|
|
||||||
|
patch by: Ilja Pavkovic <illsen@gumblfarz.de>
|
||||||
|
|
||||||
|
* gst/librfb/rfbdecoder.c:
|
||||||
|
Implement ServerCutText message
|
||||||
|
|
||||||
2008-07-08 Thijs Vermeir <thijsvermeir@gmail.com>
|
2008-07-08 Thijs Vermeir <thijsvermeir@gmail.com>
|
||||||
|
|
||||||
patch by: Ilja Pavkovic <illsen@gumblfarz.de>
|
patch by: Ilja Pavkovic <illsen@gumblfarz.de>
|
||||||
|
|
|
@ -810,7 +810,18 @@ rfb_decoder_state_set_colour_map_entries (RfbDecoder * decoder)
|
||||||
static gboolean
|
static gboolean
|
||||||
rfb_decoder_state_server_cut_text (RfbDecoder * decoder)
|
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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue