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
e01bbad7
Commit
e01bbad7
authored
Jan 27, 2020
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lib/xiph/OggVisitor: update the OggStreamState offset
parent
7e3eaa59
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
3 deletions
+10
-3
OggDecoder.cxx
src/decoder/plugins/OggDecoder.cxx
+1
-1
OggVisitor.cxx
src/lib/xiph/OggVisitor.cxx
+2
-1
OggVisitor.hxx
src/lib/xiph/OggVisitor.hxx
+7
-1
No files found.
src/decoder/plugins/OggDecoder.cxx
View file @
e01bbad7
...
...
@@ -72,7 +72,7 @@ inline void
OggDecoder
::
SeekByte
(
offset_type
offset
)
{
input_stream
.
LockSeek
(
offset
);
PostSeek
();
PostSeek
(
offset
);
}
void
...
...
src/lib/xiph/OggVisitor.cxx
View file @
e01bbad7
...
...
@@ -94,9 +94,10 @@ OggVisitor::Visit()
}
void
OggVisitor
::
PostSeek
()
OggVisitor
::
PostSeek
(
uint64_t
offset
)
{
sync
.
Reset
();
sync
.
SetOffset
(
offset
);
/* reset the stream to clear any previous partial packet
data */
...
...
src/lib/xiph/OggVisitor.hxx
View file @
e01bbad7
...
...
@@ -53,12 +53,18 @@ public:
return
stream
.
GetSerialNo
();
}
uint64_t
GetStartOffset
()
const
noexcept
{
return
sync
.
GetStartOffset
();
}
void
Visit
();
/**
* Call this method after seeking the #Reader.
*
* @param offset the current #Reader offset
*/
void
PostSeek
();
void
PostSeek
(
uint64_t
offset
);
private
:
void
EndStream
();
...
...
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