mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-10-29 05:40:27 -04:00
pod: remove the ALIGNED from the pod struct
We don't really want to do this here otherwise structs that include a pod will be padded so that an array of those structs will be aligned. This makes a test case fail where we have a struct with a choice_body followed by 3 uint32_t enum values. The size with and without the aligned attribute is different.
This commit is contained in:
parent
a0f5c4153f
commit
5f4b4b02f9
1 changed files with 1 additions and 1 deletions
|
|
@ -33,7 +33,7 @@ extern "C" {
|
|||
struct spa_pod {
|
||||
uint32_t size; /* size of the body */
|
||||
uint32_t type; /* a basic id of enum spa_type */
|
||||
} SPA_ALIGNED(SPA_POD_ALIGN);
|
||||
};
|
||||
|
||||
#define SPA_POD_VALUE(type,pod) (((type*)(pod))->value)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue