summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorphintuka <phintuka>2011-03-05 13:52:43 +0000
committerphintuka <phintuka>2011-03-05 13:52:43 +0000
commit1541a784e2815ae378607e656adc219b71a04f2e (patch)
treeae9ad0f94b64aef1f560c9a80c1cdbcc19e03b63
parentc3a2806ce22db336c7ca479db11a380f4269f8a2 (diff)
downloadxineliboutput-1541a784e2815ae378607e656adc219b71a04f2e.tar.gz
xineliboutput-1541a784e2815ae378607e656adc219b71a04f2e.tar.bz2
Allocate osd_command_t aligned (because of pointer members).
(closes #3065450, Thanks to lami123)
-rw-r--r--xine_osd_command.h8
1 files 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