impl-port: only send latency param when supported

Check if the port has latency param and only try to set the
latency param when it appears available. This avoids sending unknown
latency params to an old client and erroring out.
This commit is contained in:
Wim Taymans 2021-05-31 11:31:18 +02:00
parent 98353560da
commit c803444123
2 changed files with 9 additions and 3 deletions

View file

@ -793,6 +793,7 @@ struct pw_impl_port {
unsigned int added:1;
struct spa_latency_info latency[2]; /**< latencies */
unsigned int have_latency_param:1;
void *owner_data; /**< extra owner data */
void *user_data; /**< extra user data */