gst/librfb/rfbdecoder.c: Should fix the 64-bit build
authorThijs Vermeir <thijsvermeir@gmail.com>
Mon, 3 Dec 2007 13:08:26 +0000 (13:08 +0000)
committerThijs Vermeir <thijsvermeir@gmail.com>
Mon, 3 Dec 2007 13:08:26 +0000 (13:08 +0000)
Original commit message from CVS:
* gst/librfb/rfbdecoder.c:
Should fix the 64-bit build

ChangeLog
gst/librfb/rfbdecoder.c

index 24526d2..f6747a7 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -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:
index 04e9505..878183e 100644 (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);