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 |
} |