taglib: IOStream: Return the url as fileName
authorHugo Beauzée-Luyssen <hugo@beauzee.fr>
Mon, 18 Mar 2019 14:09:39 +0000 (15:09 +0100)
committerSebastian Ramacher <sramacher@debian.org>
Tue, 14 Jan 2025 22:09:47 +0000 (23:09 +0100)
Since the only part that matters to taglib is the filename, and more
specifically the extension part.

(cherry picked from commit 026a76066efa78f1934ab2c177669a2e6a519cff)

Gbp-Pq: Name 0034-taglib-IOStream-Return-the-url-as-fileName.patch

modules/meta_engine/taglib.cpp

index 8770d0c8a10079b3d94a183fd79df64cc50b09ef..bec6838fa020fc8f089c6782009495c15cf1f578 100644 (file)
@@ -176,7 +176,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)