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
6b416ce6
Commit
6b416ce6
authored
Oct 04, 2012
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
decoder/flac: move flac_scan_file2() to main plugin file
parent
ef0392e8
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
20 deletions
+9
-20
FLACDecoderPlugin.cxx
src/decoder/FLACDecoderPlugin.cxx
+9
-1
FLACMetaData.cxx
src/decoder/FLACMetaData.cxx
+0
-15
FLACMetaData.hxx
src/decoder/FLACMetaData.hxx
+0
-4
No files found.
src/decoder/FLACDecoderPlugin.cxx
View file @
6b416ce6
...
...
@@ -90,7 +90,15 @@ static bool
flac_scan_file
(
const
char
*
file
,
const
struct
tag_handler
*
handler
,
void
*
handler_ctx
)
{
return
flac_scan_file2
(
file
,
handler
,
handler_ctx
);
FLACMetadataChain
chain
;
if
(
!
chain
.
Read
(
file
))
{
g_debug
(
"Failed to read FLAC tags: %s"
,
chain
.
GetStatusString
());
return
false
;
}
chain
.
Scan
(
handler
,
handler_ctx
);
return
true
;
}
/**
...
...
src/decoder/FLACMetaData.cxx
View file @
6b416ce6
...
...
@@ -239,21 +239,6 @@ flac_vorbis_comments_to_tag(struct tag *tag,
flac_scan_comments
(
comment
,
&
add_tag_handler
,
tag
);
}
bool
flac_scan_file2
(
const
char
*
file
,
const
struct
tag_handler
*
handler
,
void
*
handler_ctx
)
{
FLACMetadataChain
chain
;
if
(
!
chain
.
Read
(
file
))
{
g_debug
(
"Failed to read FLAC tags: %s"
,
chain
.
GetStatusString
());
return
false
;
}
chain
.
Scan
(
handler
,
handler_ctx
);
return
true
;
}
void
FLACMetadataChain
::
Scan
(
const
struct
tag_handler
*
handler
,
void
*
handler_ctx
)
{
...
...
src/decoder/FLACMetaData.hxx
View file @
6b416ce6
...
...
@@ -117,8 +117,4 @@ void
flac_scan_metadata
(
const
FLAC__StreamMetadata
*
block
,
const
struct
tag_handler
*
handler
,
void
*
handler_ctx
);
bool
flac_scan_file2
(
const
char
*
file
,
const
struct
tag_handler
*
handler
,
void
*
handler_ctx
);
#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