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
ae37e254
Commit
ae37e254
authored
Feb 26, 2016
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
TagArchive: add overload with ArchiveFile&
parent
c4537fe6
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
26 additions
and
0 deletions
+26
-0
TagArchive.cxx
src/TagArchive.cxx
+13
-0
TagArchive.hxx
src/TagArchive.hxx
+13
-0
No files found.
src/TagArchive.cxx
View file @
ae37e254
...
...
@@ -23,6 +23,7 @@
#include "tag/Generic.hxx"
#include "tag/TagHandler.hxx"
#include "tag/TagBuilder.hxx"
#include "archive/ArchiveFile.hxx"
#include "fs/Path.hxx"
#include "util/Error.hxx"
#include "input/InputStream.hxx"
...
...
@@ -57,3 +58,15 @@ tag_archive_scan(Path path, TagBuilder &builder)
IgnoreError
()));
return
is
&&
tag_stream_scan
(
*
is
,
builder
);
}
bool
tag_archive_scan
(
ArchiveFile
&
archive
,
const
char
*
path_utf8
,
TagBuilder
&
builder
)
{
Mutex
mutex
;
Cond
cond
;
InputStreamPtr
is
(
archive
.
OpenStream
(
path_utf8
,
mutex
,
cond
,
IgnoreError
()));
return
is
&&
tag_stream_scan
(
*
is
,
builder
);
}
src/TagArchive.hxx
View file @
ae37e254
...
...
@@ -22,6 +22,7 @@
#include "check.h"
class
ArchiveFile
;
class
Path
;
struct
TagHandler
;
class
TagBuilder
;
...
...
@@ -48,4 +49,16 @@ tag_archive_scan(Path path, const TagHandler &handler, void *handler_ctx);
bool
tag_archive_scan
(
Path
path
,
TagBuilder
&
builder
);
/**
* Scan the tags of a song file inside an archive. Invokes matching
* decoder plugins, and falls back to generic scanners (APE and ID3)
* if no tags were found (but the file was recognized).
*
* @return true if the file was recognized (even if no metadata was
* found)
*/
bool
tag_archive_scan
(
ArchiveFile
&
archive
,
const
char
*
path_utf8
,
TagBuilder
&
builder
);
#endif
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