Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mpd
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Иван Мажукин
mpd
Commits
b2ae5298
Commit
b2ae5298
authored
May 31, 2019
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
archive/iso9660: implement seeking
parent
17dd21ac
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
0 deletions
+9
-0
NEWS
NEWS
+1
-0
Iso9660ArchivePlugin.cxx
src/archive/plugins/Iso9660ArchivePlugin.cxx
+8
-0
No files found.
NEWS
View file @
b2ae5298
...
...
@@ -6,6 +6,7 @@ ver 0.21.26 (not yet released)
- bzip2: fix crash on corrupt bzip2 file
- bzip2: flush output at end of input file
- iso9660: fix unaligned reads
- iso9660: support seeking
- zzip: fix crash on corrupt ZIP file
* decoder
- sndfile: fix lost samples at end of file
...
...
src/archive/plugins/Iso9660ArchivePlugin.cxx
View file @
b2ae5298
...
...
@@ -198,12 +198,20 @@ public:
lsn
(
_lsn
)
{
size
=
_size
;
seekable
=
true
;
SetReady
();
}
/* virtual methods from InputStream */
bool
IsEOF
()
noexcept
override
;
size_t
Read
(
void
*
ptr
,
size_t
size
)
override
;
void
Seek
(
offset_type
new_offset
)
override
{
if
(
new_offset
>
size
)
throw
std
::
runtime_error
(
"Invalid seek offset"
);
offset
=
new_offset
;
}
};
InputStreamPtr
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment