diff options
author | Max Kellermann <max@duempel.org> | 2015-10-20 12:10:42 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2015-10-20 12:10:42 +0200 |
commit | fc2154ee9278ba7e9ccdc82a210806c1d1279150 (patch) | |
tree | be8571a609e5926c93e0ccd65618332ba00945e4 /src/command/OtherCommands.cxx | |
parent | 76f85e6f7bea6f286389caf96835f2cd61d0961b (diff) | |
download | mpd-fc2154ee9278ba7e9ccdc82a210806c1d1279150.tar.gz mpd-fc2154ee9278ba7e9ccdc82a210806c1d1279150.tar.xz mpd-fc2154ee9278ba7e9ccdc82a210806c1d1279150.zip |
DetachedSong: move code from Update() to LoadFile()
Avoid duplicate AllocatedPath::FromUTF8() invocations in two callers.
Diffstat (limited to 'src/command/OtherCommands.cxx')
-rw-r--r-- | src/command/OtherCommands.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/command/OtherCommands.cxx b/src/command/OtherCommands.cxx index d9c198973..596c9c7f6 100644 --- a/src/command/OtherCommands.cxx +++ b/src/command/OtherCommands.cxx @@ -176,7 +176,7 @@ handle_lsinfo(Client &client, Request args, Response &r) return print_error(r, error); DetachedSong song(path_utf8); - if (!song.Update()) { + if (!song.LoadFile(path_fs)) { r.Error(ACK_ERROR_NO_EXIST, "No such file"); return CommandResult::ERROR; } |