mirror of
https://gitlab.freedesktop.org/pipewire/wireplumber.git
synced 2026-04-25 13:20:40 +02:00
parser-endpoint-link: don't parse unused state value
This commit is contained in:
parent
3fe1e96e2e
commit
0552e7da87
2 changed files with 0 additions and 8 deletions
|
|
@ -86,7 +86,6 @@ wp_parser_endpoint_link_data_destroy (gpointer p)
|
|||
g_clear_pointer (&data->te.endpoint_data.media_class, g_free);
|
||||
g_clear_pointer (&data->te.endpoint_data.props, wp_properties_unref);
|
||||
g_clear_pointer (&data->te.stream, g_free);
|
||||
g_clear_pointer (&data->el.state, g_free);
|
||||
|
||||
g_slice_free (struct WpParserEndpointLinkData, data);
|
||||
}
|
||||
|
|
@ -159,7 +158,6 @@ wp_parser_endpoint_link_data_new (const gchar *location)
|
|||
* stream (string)
|
||||
*
|
||||
* [endpoint-link]
|
||||
* state (string)
|
||||
* keep (bool)
|
||||
*/
|
||||
|
||||
|
|
@ -228,11 +226,6 @@ wp_parser_endpoint_link_data_new (const gchar *location)
|
|||
if (!el)
|
||||
goto error;
|
||||
|
||||
/* Get the endpoint link state */
|
||||
res->el.state = wp_toml_table_get_string (el, "state");
|
||||
if (!res->el.state)
|
||||
res->el.state = g_strdup ("active");
|
||||
|
||||
/* Get the endpoint link keep */
|
||||
res->el.keep = FALSE;
|
||||
wp_toml_table_get_boolean (el, "keep", &res->el.keep);
|
||||
|
|
|
|||
|
|
@ -32,7 +32,6 @@ struct WpParserEndpointLinkData {
|
|||
char *stream;
|
||||
} te;
|
||||
struct EndpointLink {
|
||||
char *state;
|
||||
gboolean keep;
|
||||
} el;
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue