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
779d73f9
Commit
779d73f9
authored
Feb 23, 2016
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tag/TagId3: add overload with InputStream& parameter
parent
73307bf2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
30 additions
and
0 deletions
+30
-0
TagId3.cxx
src/tag/TagId3.cxx
+17
-0
TagId3.hxx
src/tag/TagId3.hxx
+13
-0
No files found.
src/tag/TagId3.cxx
View file @
779d73f9
...
...
@@ -344,6 +344,23 @@ tag_id3_import(struct id3_tag *tag)
}
bool
tag_id3_scan
(
InputStream
&
is
,
const
TagHandler
&
handler
,
void
*
handler_ctx
)
{
UniqueId3Tag
tag
;
try
{
tag
=
tag_id3_load
(
is
);
}
catch
(
const
std
::
runtime_error
&
e
)
{
LogError
(
e
);
return
false
;
}
scan_id3_tag
(
tag
.
get
(),
handler
,
handler_ctx
);
return
true
;
}
bool
tag_id3_scan
(
Path
path_fs
,
const
TagHandler
&
handler
,
void
*
handler_ctx
)
{
...
...
src/tag/TagId3.hxx
View file @
779d73f9
...
...
@@ -23,6 +23,7 @@
#include "check.h"
#include "Compiler.h"
class
InputStream
;
class
Path
;
struct
TagHandler
;
struct
Tag
;
...
...
@@ -31,6 +32,10 @@ struct id3_tag;
#ifdef ENABLE_ID3TAG
bool
tag_id3_scan
(
InputStream
&
is
,
const
TagHandler
&
handler
,
void
*
handler_ctx
);
bool
tag_id3_scan
(
Path
path_fs
,
const
TagHandler
&
handler
,
void
*
handler_ctx
);
...
...
@@ -50,6 +55,14 @@ scan_id3_tag(id3_tag *tag,
#include "fs/Path.hxx"
static
inline
bool
tag_id3_scan
(
gcc_unused
InputStream
&
is
,
gcc_unused
const
TagHandler
&
handler
,
gcc_unused
void
*
handler_ctx
)
{
return
false
;
}
static
inline
bool
tag_id3_scan
(
gcc_unused
Path
path_fs
,
gcc_unused
const
TagHandler
&
handler
,
gcc_unused
void
*
handler_ctx
)
...
...
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