goto next;
}
- ret = snprintf(ua_sess->metadata->pathname, PATH_MAX, "%s/%s",
- ua_sess->metadata->pathname, "metadata");
+ ret = snprintf(ua_sess->metadata->pathname, PATH_MAX, "%s/%s-%d/metadata",
+ usess->pathname, app->name, app->key.pid);
if (ret < 0) {
PERROR("asprintf UST create stream");
goto next;
goto error;
}
- ret = snprintf(ua_sess->metadata->pathname, PATH_MAX, "%s/metadata",
- ua_sess->metadata->pathname);
+ ret = snprintf(ua_sess->metadata->pathname, PATH_MAX, "%s/%s-%d/metadata",
+ usess->pathname, app->name, app->key.pid);
if (ret < 0) {
PERROR("asprintf UST create stream");
goto error;