sendspin: negotiate the first raw format

Flac and Opus are not supported yet.
This commit is contained in:
Wim Taymans 2026-03-13 12:03:11 +01:00
parent 6544996a33
commit b1b5653393

View file

@ -729,8 +729,10 @@ static int parse_player_v1_support(struct client *c, struct spa_json *payload)
if ((res = parse_codec(c, &it[1], &info)) < 0)
return res;
if (count++ == 0)
if (count == 0 && info.media_subtype == SPA_MEDIA_SUBTYPE_raw) {
c->info = info;
count++;
}
}
}
else if (spa_streq(key, "buffer_capacity")) {