mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-10-31 22:25:38 -04:00
parent
32c015d01e
commit
461e3db741
3 changed files with 12 additions and 1 deletions
|
|
@ -78,6 +78,7 @@ error:
|
|||
static inline uint32_t get_cpu_flags(void)
|
||||
{
|
||||
struct spa_handle *handle;
|
||||
uint32_t flags;
|
||||
void *iface;
|
||||
int res;
|
||||
|
||||
|
|
@ -88,5 +89,9 @@ static inline uint32_t get_cpu_flags(void)
|
|||
fprintf(stderr, "can't get CPU interface %s\n", spa_strerror(res));
|
||||
return 0;
|
||||
}
|
||||
return spa_cpu_get_flags((struct spa_cpu*)iface);
|
||||
flags = spa_cpu_get_flags((struct spa_cpu*)iface);
|
||||
|
||||
free(handle);
|
||||
|
||||
return flags;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue