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
9be82891
Commit
9be82891
authored
Dec 29, 2013
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
TagFile: pass reference instead of pointer
parent
c97685fe
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
6 additions
and
9 deletions
+6
-9
SongUpdate.cxx
src/SongUpdate.cxx
+1
-1
TagFile.cxx
src/TagFile.cxx
+2
-4
TagFile.hxx
src/TagFile.hxx
+1
-2
FileCommands.cxx
src/command/FileCommands.cxx
+1
-1
EmbeddedCuePlaylistPlugin.cxx
src/playlist/EmbeddedCuePlaylistPlugin.cxx
+1
-1
No files found.
src/SongUpdate.cxx
View file @
9be82891
...
...
@@ -89,7 +89,7 @@ Song::UpdateFile()
TagBuilder
tag_builder
;
if
(
!
tag_file_scan
(
path_fs
,
&
full_tag_handler
,
&
tag_builder
))
full_tag_handler
,
&
tag_builder
))
return
false
;
if
(
tag_builder
.
IsEmpty
())
...
...
src/TagFile.cxx
View file @
9be82891
...
...
@@ -80,11 +80,9 @@ public:
};
bool
tag_file_scan
(
Path
path_fs
,
const
struct
tag_handler
*
handler
,
void
*
handler_ctx
)
tag_file_scan
(
Path
path_fs
,
const
tag_handler
&
handler
,
void
*
handler_ctx
)
{
assert
(
!
path_fs
.
IsNull
());
assert
(
handler
!=
nullptr
);
/* check if there's a suffix and a plugin */
...
...
@@ -92,7 +90,7 @@ tag_file_scan(Path path_fs,
if
(
suffix
==
nullptr
)
return
false
;
TagFileScan
tfs
(
path_fs
,
suffix
,
*
handler
,
handler_ctx
);
TagFileScan
tfs
(
path_fs
,
suffix
,
handler
,
handler_ctx
);
return
decoder_plugins_try
([
&
](
const
DecoderPlugin
&
plugin
){
return
tfs
.
Scan
(
plugin
);
});
...
...
src/TagFile.hxx
View file @
9be82891
...
...
@@ -33,7 +33,6 @@ struct tag_handler;
* found)
*/
bool
tag_file_scan
(
Path
path
,
const
tag_handler
*
handler
,
void
*
handler_ctx
);
tag_file_scan
(
Path
path
,
const
tag_handler
&
handler
,
void
*
handler_ctx
);
#endif
src/command/FileCommands.cxx
View file @
9be82891
...
...
@@ -114,7 +114,7 @@ handle_read_comments(Client &client, gcc_unused int argc, char *argv[])
return
CommandResult
::
ERROR
;
}
if
(
!
tag_file_scan
(
path_fs
,
&
print_comment_handler
,
&
client
))
{
if
(
!
tag_file_scan
(
path_fs
,
print_comment_handler
,
&
client
))
{
command_error
(
client
,
ACK_ERROR_NO_EXIST
,
"Failed to load file"
);
return
CommandResult
::
ERROR
;
...
...
src/playlist/EmbeddedCuePlaylistPlugin.cxx
View file @
9be82891
...
...
@@ -103,7 +103,7 @@ embcue_playlist_open_uri(const char *uri,
const
auto
playlist
=
new
EmbeddedCuePlaylist
();
tag_file_scan
(
path_fs
,
&
embcue_tag_handler
,
playlist
);
tag_file_scan
(
path_fs
,
embcue_tag_handler
,
playlist
);
if
(
playlist
->
cuesheet
.
empty
())
{
tag_ape_scan2
(
path_fs
,
&
embcue_tag_handler
,
playlist
);
if
(
playlist
->
cuesheet
.
empty
())
...
...
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