[vlc-commits] demux: adaptive: fixup AnyURI
Francois Cartegnie
git at videolan.org
Fri May 22 10:08:47 CEST 2020
vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Wed May 20 17:02:53 2020 +0200| [6b2e2ee875332ba3a33eaf88a7837642f9695d16] | committer: Francois Cartegnie
demux: adaptive: fixup AnyURI
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=6b2e2ee875332ba3a33eaf88a7837642f9695d16
---
modules/demux/adaptive/playlist/Url.cpp | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/modules/demux/adaptive/playlist/Url.cpp b/modules/demux/adaptive/playlist/Url.cpp
index bd20701e37..86385b1afe 100644
--- a/modules/demux/adaptive/playlist/Url.cpp
+++ b/modules/demux/adaptive/playlist/Url.cpp
@@ -125,7 +125,10 @@ std::string Url::toString(size_t index, const BaseRepresentation *rep) const
ret = part;
else
{
- char *psz_resolved = vlc_uri_resolve( ret.c_str(), part.c_str() );
+ char *psz_fixup = vlc_uri_fixup( part.c_str() );
+ char *psz_resolved = vlc_uri_resolve( ret.c_str(),
+ psz_fixup ? psz_fixup : part.c_str() );
+ free(psz_fixup);
if( psz_resolved )
{
ret = std::string( psz_resolved );
More information about the vlc-commits
mailing list