Commit a11cd3b6 authored by George Kiagiadakis's avatar George Kiagiadakis
Browse files

parser-endpoint-link: make 'properties' subtables of 'match-endpoint' and 'target-endpoint'

parent 92107e83
......@@ -200,8 +200,7 @@ wp_parser_endpoint_link_data_new (const gchar *location)
res->me.endpoint_data.direction = parse_endpoint_direction (direction);
/* Get the match endpoint properties (Optional) */
res->me.endpoint_data.props =
parse_properties (table, "match-endpoint-properties");
res->me.endpoint_data.props = parse_properties (me, "properties");
/* Get the target-endpoint table */
te = wp_toml_table_get_table (table, "target-endpoint");
......@@ -220,8 +219,7 @@ wp_parser_endpoint_link_data_new (const gchar *location)
pw_direction_reverse (res->me.endpoint_data.direction);
/* Get the target endpoint properties (Optional) */
res->te.endpoint_data.props =
parse_properties (table, "target-endpoint-properties");
res->te.endpoint_data.props = parse_properties (te, "properties");
/* Get the target endpoint streams */
res->te.streams = wp_toml_table_get_string (te, "streams");
......
......@@ -8,10 +8,9 @@ media_class = "Stream/Input/Audio"
media_class = "Audio/Source"
streams = "default.streams"
stream = "Multimedia"
[[target-endpoint-properties]]
name = "api.alsa.path"
value = "hw:0,0"
properties = [
{ name = "api.alsa.path", value = "hw:0,0" },
]
[endpoint-link]
keep = true
......@@ -8,10 +8,9 @@ media_class = "Stream/Output/Audio"
media_class = "Audio/Sink"
streams = "default.streams"
stream = "Multimedia"
[[target-endpoint-properties]]
name = "api.alsa.path"
value = "hw:0,0"
properties = [
{ name = "api.alsa.path", value = "hw:0,0" },
]
[endpoint-link]
keep = true
......@@ -7,10 +7,9 @@ media_class = "Stream/Input/Audio"
media_class = "Audio/Source"
streams = "default.streams"
stream = "Multimedia"
[[target-endpoint-properties]]
name = "api.alsa.path"
value = "hw:0,0"
properties = [
{ name = "api.alsa.path", value = "hw:0,0" },
]
[endpoint-link]
keep = false
......@@ -7,10 +7,9 @@ media_class = "Stream/Output/Audio"
media_class = "Audio/Sink"
streams = "default.streams"
stream = "Multimedia"
[[target-endpoint-properties]]
name = "api.alsa.path"
value = "hw:0,0"
properties = [
{ name = "api.alsa.path", value = "hw:0,0" },
]
[endpoint-link]
keep = false
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment