From 1541a784e2815ae378607e656adc219b71a04f2e Mon Sep 17 00:00:00 2001 From: phintuka Date: Sat, 5 Mar 2011 13:52:43 +0000 Subject: Allocate osd_command_t aligned (because of pointer members). (closes #3065450, Thanks to lami123) --- xine_osd_command.h | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/xine_osd_command.h b/xine_osd_command.h index c1550116..c4504621 100644 --- a/xine_osd_command.h +++ b/xine_osd_command.h @@ -4,7 +4,7 @@ * See the main source file 'xineliboutput.c' for copyright information and * how to reach the author. * - * $Id: xine_osd_command.h,v 1.16 2011-01-16 12:48:44 phintuka Exp $ + * $Id: xine_osd_command.h,v 1.17 2011-03-05 13:52:43 phintuka Exp $ * */ @@ -14,7 +14,9 @@ #ifndef PACKED # define PACKED __attribute__((packed)) #endif - +#ifndef ALIGNED +# define ALIGNED __attribute__((aligned)) +#endif #define MAX_OSD_OBJECT 50 @@ -106,7 +108,7 @@ typedef struct osd_command_s { uint8_t flags; uint8_t scaling; -} PACKED osd_command_t; +} PACKED osd_command_t ALIGNED; #if __BYTE_ORDER == __LITTLE_ENDIAN -- cgit v1.2.3