gst/librfb/rfbdecoder.c: Should fix the 64-bit build

Original commit message from CVS:
* gst/librfb/rfbdecoder.c:
Should fix the 64-bit build
This commit is contained in:
Thijs Vermeir 2007-12-03 13:08:26 +00:00
parent d5ad427c73
commit 79b7ae29aa
2 changed files with 14 additions and 5 deletions

View file

@ -1,3 +1,8 @@
2007-12-03 Thijs Vermeir <thijsvermeir@gmail.com>
* gst/librfb/rfbdecoder.c:
Should fix the 64-bit build
2007-11-30 Edgard Lima <edgard.lima@indt.org.br>
* ext/metadata/gstmetadatamux.c:

View file

@ -408,7 +408,7 @@ rfb_decoder_message_set_encodings (GSList * encodings_list)
guint32 *encoding_type = (guint32 *) (message + 4);
while (encodings_list) {
RFB_SET_UINT32 (encoding_type, (guint32) encodings_list->data);
RFB_SET_UINT32 (encoding_type, GPOINTER_TO_UINT (encodings_list->data));
encoding_type++;
encodings_list = encodings_list->next;
}
@ -431,13 +431,17 @@ rfb_decoder_state_set_encodings (RfbDecoder * decoder)
GST_DEBUG ("entered set encodings");
encoder_list = g_slist_append (encoder_list, (guint32 *) ENCODING_TYPE_CORRE);
encoder_list = g_slist_append (encoder_list, (guint32 *) ENCODING_TYPE_RRE);
encoder_list =
g_slist_append (encoder_list, GUINT_TO_POINTER (ENCODING_TYPE_CORRE));
encoder_list =
g_slist_append (encoder_list, GUINT_TO_POINTER (ENCODING_TYPE_RRE));
if (decoder->use_copyrect) {
encoder_list =
g_slist_append (encoder_list, (guint32 *) ENCODING_TYPE_COPYRECT);
g_slist_append (encoder_list,
GUINT_TO_POINTER (ENCODING_TYPE_COPYRECT));
}
encoder_list = g_slist_append (encoder_list, (guint32 *) ENCODING_TYPE_RAW);
encoder_list =
g_slist_append (encoder_list, GUINT_TO_POINTER (ENCODING_TYPE_RAW));
guint8 *message = rfb_decoder_message_set_encodings (encoder_list);