summaryrefslogtreecommitdiffstats
path: root/gst
diff options
context:
space:
mode:
authorThijs Vermeir <thijsvermeir@gmail.com>2007-11-30 10:46:23 +0000
committerThijs Vermeir <thijsvermeir@gmail.com>2007-11-30 10:46:23 +0000
commitaedf92f4741b2010512e1b9c45b4bc462b33cb86 (patch)
tree7e17fb87af8a4a5a8de732c27b72b6d07a8ea818 /gst
parentf17a78668e4fb25f466bff4f70ba98e05f8b4fe9 (diff)
downloadgst-plugins-bad-aedf92f4741b2010512e1b9c45b4bc462b33cb86.tar.gz
gst-plugins-bad-aedf92f4741b2010512e1b9c45b4bc462b33cb86.tar.bz2
gst-plugins-bad-aedf92f4741b2010512e1b9c45b4bc462b33cb86.zip
gst/librfb/rfbdecoder.c: Use glib macro for swapping
Original commit message from CVS: * gst/librfb/rfbdecoder.c: Use glib macro for swapping
Diffstat (limited to 'gst')
-rw-r--r--gst/librfb/rfbdecoder.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/gst/librfb/rfbdecoder.c b/gst/librfb/rfbdecoder.c
index dd7fe3a4..b4f255f3 100644
--- a/gst/librfb/rfbdecoder.c
+++ b/gst/librfb/rfbdecoder.c
@@ -12,7 +12,6 @@
#include <netinet/in.h>
#include <arpa/inet.h>
#include <errno.h>
-#include <byteswap.h>
#include "vncauth.h"
@@ -723,7 +722,7 @@ rfb_decoder_rre_encoding (RfbDecoder * decoder, gint start_x, gint start_y,
buffer = rfb_decoder_read (decoder, 4 + decoder->bytespp);
number_of_rectangles = RFB_GET_UINT32 (buffer);
- color = bswap_32 (RFB_GET_UINT32 (buffer + 4));
+ color = GUINT32_SWAP_LE_BE ((RFB_GET_UINT32 (buffer + 4)));
g_free (buffer);
GST_DEBUG ("number of rectangles :%d", number_of_rectangles);
@@ -734,7 +733,7 @@ rfb_decoder_rre_encoding (RfbDecoder * decoder, gint start_x, gint start_y,
while (number_of_rectangles--) {
buffer = rfb_decoder_read (decoder, decoder->bytespp + 8);
- color = bswap_32 (RFB_GET_UINT32 (buffer));
+ color = GUINT32_SWAP_LE_BE ((RFB_GET_UINT32 (buffer)));
x = RFB_GET_UINT16 (buffer + decoder->bytespp);
y = RFB_GET_UINT16 (buffer + decoder->bytespp + 2);
w = RFB_GET_UINT16 (buffer + decoder->bytespp + 4);