spa: fix the event and command type info

The object id needs to have the object type as the parent.
This commit is contained in:
Wim Taymans 2022-01-27 12:34:04 +01:00
parent f2906a26f1
commit 398b04e145
2 changed files with 16 additions and 16 deletions

View file

@ -45,7 +45,7 @@ extern "C" {
#define SPA_TYPE_INFO_DEVICE_EVENT_ID_BASE SPA_TYPE_INFO_DeviceEventId ":"
static const struct spa_type_info spa_type_device_event_id[] = {
{ SPA_DEVICE_EVENT_ObjectConfig, SPA_TYPE_Int, SPA_TYPE_INFO_DEVICE_EVENT_ID_BASE "ObjectConfig", NULL },
{ SPA_DEVICE_EVENT_ObjectConfig, SPA_TYPE_EVENT_Device, SPA_TYPE_INFO_DEVICE_EVENT_ID_BASE "ObjectConfig", NULL },
{ 0, 0, NULL, NULL },
};