mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-03-30 12:49:40 +00:00
rfbsrc: use existing macros to avoid alignment issues
This commit is contained in:
parent
64c6ee0b4e
commit
904a4e0f48
1 changed files with 6 additions and 6 deletions
|
@ -15,13 +15,13 @@
|
|||
|
||||
#include "vncauth.h"
|
||||
|
||||
#define RFB_GET_UINT32(ptr) GUINT32_FROM_BE (*(guint32 *)(ptr))
|
||||
#define RFB_GET_UINT16(ptr) GUINT16_FROM_BE (*(guint16 *)(ptr))
|
||||
#define RFB_GET_UINT8(ptr) (*(guint8 *)(ptr))
|
||||
#define RFB_GET_UINT32(ptr) GST_READ_UINT32_BE(ptr)
|
||||
#define RFB_GET_UINT16(ptr) GST_READ_UINT16_BE(ptr)
|
||||
#define RFB_GET_UINT8(ptr) GST_READ_UINT8(ptr)
|
||||
|
||||
#define RFB_SET_UINT32(ptr, val) (*(guint32 *)(ptr) = GUINT32_TO_BE (val))
|
||||
#define RFB_SET_UINT16(ptr, val) (*(guint16 *)(ptr) = GUINT16_TO_BE (val))
|
||||
#define RFB_SET_UINT8(ptr, val) (*(guint8 *)(ptr) = val)
|
||||
#define RFB_SET_UINT32(ptr, val) GST_WRITE_UINT32_BE((ptr),(val))
|
||||
#define RFB_SET_UINT16(ptr, val) GST_WRITE_UINT16_BE((ptr),(val))
|
||||
#define RFB_SET_UINT8(ptr, val) GST_WRITE_UINT8((ptr),(val))
|
||||
|
||||
GST_DEBUG_CATEGORY_EXTERN (rfbdecoder_debug);
|
||||
#define GST_CAT_DEFAULT rfbdecoder_debug
|
||||
|
|
Loading…
Reference in a new issue