impl-port: only add the port when buffers are negotiated

To avoid crashes when the node is scheduled but buffer have been
cleared.

See #904
This commit is contained in:
Wim Taymans 2021-03-25 11:30:58 +01:00
parent b5220c83da
commit 5f7910fcac
2 changed files with 22 additions and 7 deletions

View file

@ -786,9 +786,10 @@ struct pw_impl_port {
struct spa_list mix_list;
struct spa_list node_link;
} rt; /**< data only accessed from the data thread */
unsigned int added:1;
void *owner_data; /**< extra owner data */
void *user_data; /**< extra user data */
void *owner_data; /**< extra owner data */
void *user_data; /**< extra user data */
};
struct pw_control_link {