[vlc-devel] [PATCH 3/7] taglib: IOStream: Return the url as fileName

Hugo Beauzée-Luyssen hugo at beauzee.fr
Fri Oct 4 12:00:26 CEST 2019


Since the only part that matters to taglib is the filename, and more
specifically the extension part.
---
 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)
-- 
2.20.1



More information about the vlc-devel mailing list