[rygel/wip/meson-new-upnp: 5/5] renderer: Rewrite URI for link-local address
- From: Jens Georg <jensgeorg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [rygel/wip/meson-new-upnp: 5/5] renderer: Rewrite URI for link-local address
- Date: Wed, 28 Nov 2018 19:47:57 +0000 (UTC)
commit f7adf065708b22b59d0647d1551fc07b06860dcf
Author: Jens Georg <mail jensge org>
Date: Tue Nov 20 23:22:52 2018 +0100
renderer: Rewrite URI for link-local address
src/librygel-renderer/rygel-av-transport.vala | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/src/librygel-renderer/rygel-av-transport.vala b/src/librygel-renderer/rygel-av-transport.vala
index 287d16d9..5d448cf5 100644
--- a/src/librygel-renderer/rygel-av-transport.vala
+++ b/src/librygel-renderer/rygel-av-transport.vala
@@ -933,14 +933,15 @@ internal class Rygel.AVTransport : Service {
string uri,
string metadata) {
if (uri.has_prefix ("http://") || uri.has_prefix ("https://")) {
- var message = new Message ("HEAD", uri);
+ var new_uri = this.context.rewrite_uri (uri);
+ var message = new Message ("HEAD", new_uri);
message.request_headers.append ("getContentFeatures.dlna.org",
"1");
message.request_headers.append ("Connection", "close");
this.head_faked = false;
AVTransport.setup_handle_new_transport_uri_callback (this,
message,
- uri,
+ new_uri,
metadata,
action);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]