[rygel] media-export: Fix missing title in virtual containers
- From: Jens Georg <jensgeorg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [rygel] media-export: Fix missing title in virtual containers
- Date: Wed, 29 Jul 2020 21:45:25 +0000 (UTC)
commit f50cb9a267f662d2e29d96caffa57794e09b3bc3
Author: Jens Georg <mail jensge org>
Date: Wed Jul 29 23:43:03 2020 +0200
media-export: Fix missing title in virtual containers
The name was not set for virtual objects if created from hash cache.
This usually would only affect BrowseMetadata as BrowseChildren are
constructed differently
Fixes #169
.../media-export/rygel-media-export-query-container-factory.vala | 3 +++
1 file changed, 3 insertions(+)
---
diff --git a/src/plugins/media-export/rygel-media-export-query-container-factory.vala
b/src/plugins/media-export/rygel-media-export-query-container-factory.vala
index dd81e1e3..24bd6125 100644
--- a/src/plugins/media-export/rygel-media-export-query-container-factory.vala
+++ b/src/plugins/media-export/rygel-media-export-query-container-factory.vala
@@ -216,6 +216,9 @@ internal class Rygel.MediaExport.QueryContainerFactory : Object {
if (i + 2 == args.length) {
upnp_class = QueryContainerFactory.map_upnp_class
(attribute);
+ if (name == "") {
+ name = Uri.unescape_string (args[i + 1]);
+ }
}
} else {
args[i + 1] = "%s";
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]