View | Details | Raw Unified | Return to bug 280143 | Differences between
and this patch

Collapse All | Expand All

(-)b/multimedia/kodi/files/patch-xbmc_music_tags_TagLibVFSStream.cpp (+47 lines)
Line 0 Link Here
1
--- xbmc/music/tags/TagLibVFSStream.cpp.orig	2024-07-20 12:15:29 UTC
2
+++ xbmc/music/tags/TagLibVFSStream.cpp
3
@@ -59,7 +59,7 @@ FileName TagLibVFSStream::name() const
4
  * Reads a block of size \a length at the current get pointer.
5
  */
6
 #if (TAGLIB_MAJOR_VERSION >= 2)
7
-ByteVector TagLibVFSStream::readBlock(unsigned long length)
8
+ByteVector TagLibVFSStream::readBlock(size_t length)
9
 #else
10
 ByteVector TagLibVFSStream::readBlock(TagLib::ulong length)
11
 #endif
12
@@ -282,7 +282,7 @@ bool TagLibVFSStream::isOpen() const
13
  *
14
  * \see Position
15
  */
16
-void TagLibVFSStream::seek(long offset, Position p)
17
+void TagLibVFSStream::seek(TagLib::offset_t offset, Position p)
18
 {
19
   const long fileLen = length();
20
   if (m_bIsReadOnly && fileLen > 0)
21
@@ -340,7 +340,7 @@ void TagLibVFSStream::clear()
22
 /*!
23
  * Returns the current offset within the file.
24
  */
25
-long TagLibVFSStream::tell() const
26
+TagLib::offset_t TagLibVFSStream::tell() const
27
 {
28
   int64_t pos = m_file.GetPosition();
29
   if(pos > LONG_MAX)
30
@@ -352,7 +352,7 @@ long TagLibVFSStream::tell() const
31
 /*!
32
  * Returns the length of the file.
33
  */
34
-long TagLibVFSStream::length()
35
+TagLib::offset_t TagLibVFSStream::length()
36
 {
37
   return (long)m_file.GetLength();
38
 }
39
@@ -360,7 +360,7 @@ long TagLibVFSStream::length()
40
 /*!
41
  * Truncates the file to a \a length.
42
  */
43
-void TagLibVFSStream::truncate(long length)
44
+void TagLibVFSStream::truncate(TagLib::offset_t length)
45
 {
46
   m_file.Truncate(length);
47
 }
(-)b/multimedia/kodi/files/patch-xbmc_music_tags_TagLibVFSStream.h (+41 lines)
Line 0 Link Here
1
--- xbmc/music/tags/TagLibVFSStream.h.orig	2024-06-28 10:37:37 UTC
2
+++ xbmc/music/tags/TagLibVFSStream.h
3
@@ -38,7 +38,7 @@ namespace MUSIC_INFO
4
      * Reads a block of size \a length at the current get pointer.
5
      */
6
 #if (TAGLIB_MAJOR_VERSION >= 2)
7
-    TagLib::ByteVector readBlock(unsigned long length) override;
8
+    TagLib::ByteVector readBlock(size_t length) override;
9
 #else
10
     TagLib::ByteVector readBlock(TagLib::ulong length) override;
11
 #endif
12
@@ -99,7 +99,7 @@ namespace MUSIC_INFO
13
      *
14
      * \see Position
15
      */
16
-    void seek(long offset, TagLib::IOStream::Position p = Beginning) override;
17
+    void seek(TagLib::offset_t offset, TagLib::IOStream::Position p = Beginning) override;
18
 
19
     /*!
20
      * Reset the end-of-file and error flags on the file.
21
@@ -109,17 +109,17 @@ namespace MUSIC_INFO
22
     /*!
23
      * Returns the current offset within the file.
24
      */
25
-    long tell() const override;
26
+    TagLib::offset_t tell() const override;
27
 
28
     /*!
29
      * Returns the length of the file.
30
      */
31
-    long length() override;
32
+    TagLib::offset_t length() override;
33
 
34
     /*!
35
      * Truncates the file to a \a length.
36
      */
37
-    void truncate(long length) override;
38
+    void truncate(TagLib::offset_t length) override;
39
 
40
   protected:
41
     /*!

Return to bug 280143