mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-05 13:29:57 -05:00
rygel: Properly close {sv} iters for GetAll
This fixes browsing the PA Sink and Source container.
This commit is contained in:
parent
1824f6de6a
commit
ed061a3e73
1 changed files with 2 additions and 0 deletions
|
|
@ -909,6 +909,7 @@ static DBusHandlerResult sinks_and_sources_handler(DBusConnection *c, DBusMessag
|
||||||
dbus_message_iter_init_append(r, &iter);
|
dbus_message_iter_init_append(r, &iter);
|
||||||
pa_assert_se(dbus_message_iter_open_container(&iter, DBUS_TYPE_ARRAY, "{sv}", &sub));
|
pa_assert_se(dbus_message_iter_open_container(&iter, DBUS_TYPE_ARRAY, "{sv}", &sub));
|
||||||
append_sink_or_source_container_mediaobject2_properties(r, &sub, path);
|
append_sink_or_source_container_mediaobject2_properties(r, &sub, path);
|
||||||
|
pa_assert_se(dbus_message_iter_close_container(&iter, &sub));
|
||||||
|
|
||||||
} else if (dbus_message_is_method_call(m, "org.freedesktop.DBus.Introspectable", "Introspect")) {
|
} else if (dbus_message_is_method_call(m, "org.freedesktop.DBus.Introspectable", "Introspect")) {
|
||||||
pa_strbuf *sb;
|
pa_strbuf *sb;
|
||||||
|
|
@ -979,6 +980,7 @@ static DBusHandlerResult sinks_and_sources_handler(DBusConnection *c, DBusMessag
|
||||||
|
|
||||||
pa_assert_se(dbus_message_iter_open_container(&iter, DBUS_TYPE_ARRAY, "{sv}", &sub));
|
pa_assert_se(dbus_message_iter_open_container(&iter, DBUS_TYPE_ARRAY, "{sv}", &sub));
|
||||||
append_sink_or_source_item_mediaobject2_properties(r, &sub, path, sink, source);
|
append_sink_or_source_item_mediaobject2_properties(r, &sub, path, sink, source);
|
||||||
|
pa_assert_se(dbus_message_iter_close_container(&iter, &sub));
|
||||||
|
|
||||||
} else if (message_is_property_get(m, "org.gnome.UPnP.MediaItem2", "MIMEType")) {
|
} else if (message_is_property_get(m, "org.gnome.UPnP.MediaItem2", "MIMEType")) {
|
||||||
pa_assert_se(r = dbus_message_new_method_return(m));
|
pa_assert_se(r = dbus_message_new_method_return(m));
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue