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
8a432c9b
Commit
8a432c9b
authored
Aug 03, 2019
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
decoder/mad: move code to LoadNextFrame()
parent
187204f0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
4 deletions
+10
-4
MadDecoderPlugin.cxx
src/decoder/plugins/MadDecoderPlugin.cxx
+10
-4
No files found.
src/decoder/plugins/MadDecoderPlugin.cxx
View file @
8a432c9b
...
...
@@ -207,6 +207,8 @@ private:
*/
bool
HandleCurrentFrame
()
noexcept
;
bool
LoadNextFrame
()
noexcept
;
bool
Read
()
noexcept
;
};
...
...
@@ -965,11 +967,8 @@ MadDecoder::HandleCurrentFrame() noexcept
}
inline
bool
MadDecoder
::
Read
()
noexcept
MadDecoder
::
LoadNextFrame
()
noexcept
{
if
(
!
HandleCurrentFrame
())
return
false
;
while
(
true
)
{
MadDecoderAction
ret
;
do
{
...
...
@@ -999,6 +998,13 @@ MadDecoder::Read() noexcept
}
}
inline
bool
MadDecoder
::
Read
()
noexcept
{
return
HandleCurrentFrame
()
&&
LoadNextFrame
();
}
inline
void
MadDecoder
::
RunDecoder
()
noexcept
{
...
...
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