vlc | branch: master | Hugo Beauzée-Luyssen <[email protected]> | Mon Mar 18 
15:09:39 2019 +0100| [026a76066efa78f1934ab2c177669a2e6a519cff] | committer: 
Hugo Beauzée-Luyssen

taglib: IOStream: Return the url as fileName

Since the only part that matters to taglib is the filename, and more
specifically the extension part.

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

 modules/meta_engine/taglib.cpp | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/modules/meta_engine/taglib.cpp b/modules/meta_engine/taglib.cpp
index 07c5c2290b..8f3299b8f6 100644
--- a/modules/meta_engine/taglib.cpp
+++ b/modules/meta_engine/taglib.cpp
@@ -165,7 +165,9 @@ public:
 
     FileName name() const
     {
-        return m_stream->psz_location;
+        // Taglib only cares about the file name part, so it doesn't matter
+        // whether we include the mrl scheme or not
+        return m_stream->psz_url;
     }
 
     ByteVector readBlock(ulong length)

_______________________________________________
vlc-commits mailing list
[email protected]
https://mailman.videolan.org/listinfo/vlc-commits

Reply via email to