[vlc-commits] url: include fragment when composing

Rémi Denis-Courmont git at videolan.org
Fri Oct 26 18:03:03 CEST 2018


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Fri Oct 26 19:01:05 2018 +0300| [c3a0b8f70252f477c926fcb9a67393dfe1275841] | committer: Rémi Denis-Courmont

url: include fragment when composing

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=c3a0b8f70252f477c926fcb9a67393dfe1275841
---

 src/text/url.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/text/url.c b/src/text/url.c
index 6956ac8c7a..e530da0075 100644
--- a/src/text/url.c
+++ b/src/text/url.c
@@ -753,7 +753,8 @@ char *vlc_uri_compose(const vlc_url_t *uri)
         vlc_memstream_puts(&stream, uri->psz_path);
     if (uri->psz_option != NULL)
         vlc_memstream_printf(&stream, "?%s", uri->psz_option);
-    /* NOTE: fragment not handled currently */
+    if (uri->psz_fragment != NULL)
+        vlc_memstream_printf(&stream, "#%s", uri->psz_fragment);
 
     if (vlc_memstream_close(&stream))
         return NULL;



More information about the vlc-commits mailing list