mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-07 07:55:41 +00:00
gstutils: Fix build with clang -Werror=cast-align
https://bugzilla.gnome.org/show_bug.cgi?id=755657
This commit is contained in:
parent
6b5decf0e6
commit
11b4c9bbd9
1 changed files with 6 additions and 6 deletions
|
@ -116,22 +116,22 @@ guint gst_util_group_id_next (void);
|
|||
#ifndef __GTK_DOC_IGNORE__
|
||||
#if GST_HAVE_UNALIGNED_ACCESS
|
||||
static inline guint16 __gst_fast_read16(const guint8 *v) {
|
||||
return *(const guint16*)(v);
|
||||
return *(const guint16*)(const void*)(v);
|
||||
}
|
||||
static inline guint32 __gst_fast_read32(const guint8 *v) {
|
||||
return *(const guint32*)(v);
|
||||
return *(const guint32*)(const void*)(v);
|
||||
}
|
||||
static inline guint64 __gst_fast_read64(const guint8 *v) {
|
||||
return *(const guint64*)(v);
|
||||
return *(const guint64*)(const void*)(v);
|
||||
}
|
||||
static inline guint16 __gst_fast_read_swap16(const guint8 *v) {
|
||||
return GUINT16_SWAP_LE_BE(*(const guint16*)(v));
|
||||
return GUINT16_SWAP_LE_BE(*(const guint16*)(const void*)(v));
|
||||
}
|
||||
static inline guint32 __gst_fast_read_swap32(const guint8 *v) {
|
||||
return GUINT32_SWAP_LE_BE(*(const guint32*)(v));
|
||||
return GUINT32_SWAP_LE_BE(*(const guint32*)(const void*)(v));
|
||||
}
|
||||
static inline guint64 __gst_fast_read_swap64(const guint8 *v) {
|
||||
return GUINT64_SWAP_LE_BE(*(const guint64*)(v));
|
||||
return GUINT64_SWAP_LE_BE(*(const guint64*)(const void*)(v));
|
||||
}
|
||||
# define _GST_FAST_READ(s, d) __gst_fast_read##s((const guint8 *)(d))
|
||||
# define _GST_FAST_READ_SWAP(s, d) __gst_fast_read_swap##s((const guint8 *)(d))
|
||||
|
|
Loading…
Reference in a new issue