mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-01 22:58:50 -04:00
add some more debug
This commit is contained in:
parent
c78fe6a353
commit
0534571f7d
3 changed files with 17 additions and 11 deletions
|
|
@ -143,7 +143,13 @@ struct spa_fraction {
|
|||
#define spa_memzero(x,l) (memset((x), 0, (l)))
|
||||
#define spa_zero(x) (spa_memzero(&(x), sizeof(x)))
|
||||
|
||||
#define spa_strerror(err) strerror(-(err))
|
||||
#define spa_strerror(err) \
|
||||
({ \
|
||||
int __err = -err; \
|
||||
if (SPA_RESULT_IS_ASYNC(err)) \
|
||||
__err = EINPROGRESS; \
|
||||
strerror(__err); \
|
||||
})
|
||||
|
||||
#ifdef __cplusplus
|
||||
} /* extern "C" */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue