[vlc-commits] taglib: IOStream: Return the url as fileName
Hugo Beauzée-Luyssen
git at videolan.org
Tue Oct 29 11:56:06 CET 2019
vlc | branch: master | Hugo Beauzée-Luyssen <hugo at beauzee.fr> | 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)
More information about the vlc-commits
mailing list