media-session: only subscribe to readable params

This commit is contained in:
Wim Taymans 2020-05-07 20:58:53 +02:00
parent 6203fb967c
commit 13fd6be747

View file

@ -438,7 +438,8 @@ static void node_event_info(void *object, const struct pw_node_info *info)
case SPA_PARAM_PropInfo: case SPA_PARAM_PropInfo:
case SPA_PARAM_Props: case SPA_PARAM_Props:
case SPA_PARAM_EnumFormat: case SPA_PARAM_EnumFormat:
subscribe[n_subscribe++] = info->params[i].id; if (info->params[i].flags & SPA_PARAM_INFO_READ)
subscribe[n_subscribe++] = info->params[i].id;
break; break;
default: default:
break; break;