Revert "global: limit the id to 24 bits"

This reverts commit b8f8409980.
This commit is contained in:
Wim Taymans 2022-01-14 20:02:55 +01:00
parent e68dc49666
commit b48864e77d

View file

@ -36,7 +36,7 @@
PW_LOG_TOPIC_EXTERN(log_global); PW_LOG_TOPIC_EXTERN(log_global);
#define PW_LOG_TOPIC_DEFAULT log_global #define PW_LOG_TOPIC_DEFAULT log_global
static uint32_t serial = 0; static uint64_t serial = 0;
/** \cond */ /** \cond */
struct impl { struct impl {
@ -96,7 +96,9 @@ pw_global_new(struct pw_context *context,
this->func = func; this->func = func;
this->object = object; this->object = object;
this->properties = properties; this->properties = properties;
this->id = serial++ & 0xffffff; this->id = serial++;
if ((uint32_t)this->id == SPA_ID_INVALID)
this->id = serial++;
spa_list_init(&this->resource_list); spa_list_init(&this->resource_list);
spa_hook_list_init(&this->listener_list); spa_hook_list_init(&this->listener_list);