mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2026-04-01 07:15:39 -04:00
sendspin: negotiate the first raw format
Flac and Opus are not supported yet.
This commit is contained in:
parent
6544996a33
commit
b1b5653393
1 changed files with 3 additions and 1 deletions
|
|
@ -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)
|
if ((res = parse_codec(c, &it[1], &info)) < 0)
|
||||||
return res;
|
return res;
|
||||||
|
|
||||||
if (count++ == 0)
|
if (count == 0 && info.media_subtype == SPA_MEDIA_SUBTYPE_raw) {
|
||||||
c->info = info;
|
c->info = info;
|
||||||
|
count++;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else if (spa_streq(key, "buffer_capacity")) {
|
else if (spa_streq(key, "buffer_capacity")) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue