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
2e116c9e
Commit
2e116c9e
authored
Jul 07, 2018
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lib/xiph/FlacMetadataChain: un-inline Read(InputStream)
parent
37897d15
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
17 additions
and
7 deletions
+17
-7
FlacDecoderPlugin.cxx
src/decoder/plugins/FlacDecoderPlugin.cxx
+1
-0
FlacMetadataChain.cxx
src/lib/xiph/FlacMetadataChain.cxx
+13
-0
FlacMetadataChain.hxx
src/lib/xiph/FlacMetadataChain.hxx
+3
-7
No files found.
src/decoder/plugins/FlacDecoderPlugin.cxx
View file @
2e116c9e
...
...
@@ -24,6 +24,7 @@
#include "FlacCommon.hxx"
#include "lib/xiph/FlacMetadataChain.hxx"
#include "OggCodec.hxx"
#include "input/InputStream.hxx"
#include "fs/Path.hxx"
#include "fs/NarrowPath.hxx"
#include "Log.hxx"
...
...
src/lib/xiph/FlacMetadataChain.cxx
View file @
2e116c9e
...
...
@@ -20,8 +20,21 @@
#include "config.h"
#include "FlacMetadataChain.hxx"
#include "FlacMetadataIterator.hxx"
#include "FlacIOHandle.hxx"
#include "decoder/plugins/FlacMetadata.hxx"
bool
FlacMetadataChain
::
Read
(
InputStream
&
is
)
noexcept
{
return
Read
(
::
ToFlacIOHandle
(
is
),
::
GetFlacIOCallbacks
(
is
));
}
bool
FlacMetadataChain
::
ReadOgg
(
InputStream
&
is
)
noexcept
{
return
ReadOgg
(
::
ToFlacIOHandle
(
is
),
::
GetFlacIOCallbacks
(
is
));
}
void
FlacMetadataChain
::
Scan
(
TagHandler
&
handler
)
noexcept
{
...
...
src/lib/xiph/FlacMetadataChain.hxx
View file @
2e116c9e
...
...
@@ -20,11 +20,11 @@
#ifndef MPD_FLAC_METADATA_CHAIN_HXX
#define MPD_FLAC_METADATA_CHAIN_HXX
#include "FlacIOHandle.hxx"
#include "Compiler.h"
#include <FLAC/metadata.h>
class
InputStream
;
class
TagHandler
;
class
FlacMetadataChain
{
...
...
@@ -52,9 +52,7 @@ public:
callbacks
);
}
bool
Read
(
InputStream
&
is
)
noexcept
{
return
Read
(
::
ToFlacIOHandle
(
is
),
::
GetFlacIOCallbacks
(
is
));
}
bool
Read
(
InputStream
&
is
)
noexcept
;
bool
ReadOgg
(
const
char
*
path
)
noexcept
{
return
::
FLAC__metadata_chain_read_ogg
(
chain
,
path
);
...
...
@@ -67,9 +65,7 @@ public:
callbacks
);
}
bool
ReadOgg
(
InputStream
&
is
)
{
return
ReadOgg
(
::
ToFlacIOHandle
(
is
),
::
GetFlacIOCallbacks
(
is
));
}
bool
ReadOgg
(
InputStream
&
is
)
noexcept
;
gcc_pure
FLAC__Metadata_ChainStatus
GetStatus
()
const
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