mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-04 13:30:12 -05:00
connection: improve old version check
Check the type of the pod in the message instead. Old versions should not have 0 there, new versions keep the number of file descriptors, which should be 0 for the first message.
This commit is contained in:
parent
a5b3538053
commit
cf53ededd0
1 changed files with 1 additions and 1 deletions
|
|
@ -313,7 +313,7 @@ static int prepare_packet(struct pw_protocol_native_connection *conn, struct buf
|
|||
|
||||
if (buf->first) {
|
||||
buf->first = false;
|
||||
if (p[2] != 0) {
|
||||
if (p[3] != 0) {
|
||||
pw_log_warn("old version detected");
|
||||
impl->version = 0;
|
||||
impl->hdr_size = 8;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue