mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-25 01:30:38 +00:00
gst/librfb/rfbdecoder.c: Fixes for 64-bit architectures.
Original commit message from CVS: * gst/librfb/rfbdecoder.c: Fixes for 64-bit architectures.
This commit is contained in:
parent
8ecb295690
commit
a99c79744b
2 changed files with 8 additions and 4 deletions
|
@ -1,3 +1,7 @@
|
||||||
|
2006-11-16 David Schleef <ds@schleef.org>
|
||||||
|
|
||||||
|
* gst/librfb/rfbdecoder.c: Fixes for 64-bit architectures.
|
||||||
|
|
||||||
2006-11-16 David Schleef <ds@schleef.org>
|
2006-11-16 David Schleef <ds@schleef.org>
|
||||||
|
|
||||||
* gst/librfb/gstrfbsrc.h: Oops, add this file.
|
* gst/librfb/gstrfbsrc.h: Oops, add this file.
|
||||||
|
|
|
@ -77,10 +77,10 @@ rfb_decoder_use_file_descriptor (RfbDecoder * decoder, gint fd)
|
||||||
decoder->fd = fd;
|
decoder->fd = fd;
|
||||||
|
|
||||||
decoder->bytestream->get_buffer = rfb_socket_get_buffer;
|
decoder->bytestream->get_buffer = rfb_socket_get_buffer;
|
||||||
decoder->bytestream->user_data = (void *) fd;
|
decoder->bytestream->user_data = GINT_TO_POINTER (fd);
|
||||||
|
|
||||||
decoder->send_data = rfb_socket_send_buffer;
|
decoder->send_data = rfb_socket_send_buffer;
|
||||||
decoder->buffer_handler_data = (void *) fd;
|
decoder->buffer_handler_data = GINT_TO_POINTER (fd);
|
||||||
}
|
}
|
||||||
|
|
||||||
gboolean
|
gboolean
|
||||||
|
@ -396,7 +396,7 @@ static RfbBuffer *
|
||||||
rfb_socket_get_buffer (gint length, gpointer user_data)
|
rfb_socket_get_buffer (gint length, gpointer user_data)
|
||||||
{
|
{
|
||||||
RfbBuffer *buffer;
|
RfbBuffer *buffer;
|
||||||
gint fd = (gint) user_data;
|
gint fd = GPOINTER_TO_INT (user_data);
|
||||||
gint ret;
|
gint ret;
|
||||||
|
|
||||||
buffer = rfb_buffer_new ();
|
buffer = rfb_buffer_new ();
|
||||||
|
@ -420,7 +420,7 @@ rfb_socket_get_buffer (gint length, gpointer user_data)
|
||||||
static gint
|
static gint
|
||||||
rfb_socket_send_buffer (guint8 * buffer, gint length, gpointer user_data)
|
rfb_socket_send_buffer (guint8 * buffer, gint length, gpointer user_data)
|
||||||
{
|
{
|
||||||
gint fd = (gint) user_data;
|
gint fd = GPOINTER_TO_INT (user_data);
|
||||||
gint ret;
|
gint ret;
|
||||||
|
|
||||||
// g_print ("calling write(%d, %p, %d)\n", fd, buffer, length);
|
// g_print ("calling write(%d, %p, %d)\n", fd, buffer, length);
|
||||||
|
|
Loading…
Reference in a new issue