- 04 Mar, 2021 1 commit
-
-
Rosen Penev authored
Shorter. Signed-off-by:
Rosen Penev <rosenp@gmail.com>
-
- 16 Feb, 2021 1 commit
-
-
Max Kellermann authored
If the constructor moves from an ExportedSong instance which refers to somebody else's "Tag" instance, the newly constructed instance will instead refer to its own empty "tag_buffer" field. This broke SimpleDatabase::GetSong(), i.e. all songs on the queue restored from the state file or added using the "addid" command. Closes https://github.com/MusicPlayerDaemon/MPD/issues/1089
-
- 15 Feb, 2021 1 commit
-
-
Max Kellermann authored
After commit 1afa33c3, an old bug was revealed: SimpleDatabase::GetSong() constructs an ExportedSong instance by moving the return value of Song::Export(), which causes the LightSong::tag field to be dangling on the moved-from ExportedSong::tag_buffer. This broke tags from CUE sheets. Closes https://github.com/MusicPlayerDaemon/MPD/issues/1070
-
- 21 Jan, 2021 3 commits
-
-
Max Kellermann authored
Closes https://github.com/MusicPlayerDaemon/MPD/issues/1048
-
Max Kellermann authored
-
Max Kellermann authored
-
- 01 Jan, 2021 1 commit
-
-
Max Kellermann authored
-
- 28 Oct, 2020 2 commits
-
-
Max Kellermann authored
-
Max Kellermann authored
-
- 27 Oct, 2020 1 commit
-
-
Max Kellermann authored
-
- 23 Sep, 2020 1 commit
-
-
Max Kellermann authored
Fixes use-after-free because the temporary goes out of scope.
-
- 07 Sep, 2020 1 commit
-
-
Max Kellermann authored
-
- 06 Jul, 2020 2 commits
-
-
Max Kellermann authored
This fixes compatibility with Plex DLNA. Closes https://github.com/MusicPlayerDaemon/MPD/issues/851
-
Max Kellermann authored
Closes https://github.com/MusicPlayerDaemon/MPD/issues/841
-
- 29 May, 2020 1 commit
-
-
Shen-Ta Hsieh authored
-
- 05 May, 2020 2 commits
-
-
Max Kellermann authored
The `db->close()` call was a `nullptr` dereference because the `db` variable had already been moved. Closes https://github.com/MusicPlayerDaemon/MPD/issues/839
-
Max Kellermann authored
-
- 04 May, 2020 1 commit
-
-
Rosen Penev authored
Reduces unstripped size. stripped size is the same. Also took the time to remove using std::placeholders. Signed-off-by:
Rosen Penev <rosenp@gmail.com>
-
- 22 Apr, 2020 1 commit
-
-
Rosen Penev authored
Found with modernize-use-nodiscard Signed-off-by:
Rosen Penev <rosenp@gmail.com>
-
- 08 Apr, 2020 4 commits
-
-
Max Kellermann authored
Eliminates one strlen() call.
-
Max Kellermann authored
-
Max Kellermann authored
-
Max Kellermann authored
Eliminates lots of overhead.
-
- 03 Apr, 2020 6 commits
-
-
Max Kellermann authored
-
Max Kellermann authored
-
Max Kellermann authored
-
Max Kellermann authored
-
Max Kellermann authored
-
Max Kellermann authored
-
- 02 Apr, 2020 5 commits
-
-
Max Kellermann authored
Use std::string_view to avoid modifying the string for the temporary null terminators.
-
Max Kellermann authored
-
Max Kellermann authored
-
Max Kellermann authored
-
Max Kellermann authored
This method gets called a lot during MPD startup, via FindChild() and directory_load_subdir(), so this is worth optimizing at the expense of code readability. This speeds up MPD startup by 10%.
-
- 26 Mar, 2020 1 commit
-
-
Rosen Penev authored
Found with readability-uppercase-literal-suffix Signed-off-by:
Rosen Penev <rosenp@gmail.com>
-
- 19 Mar, 2020 1 commit
-
-
Rosen Penev authored
Found with modernize-use-default-member-init Signed-off-by:
Rosen Penev <rosenp@gmail.com>
-
- 16 Mar, 2020 2 commits
-
-
Rosen Penev authored
[[maybe_unused]] (introduced in C++17) is standard C++. https://clang.llvm.org/docs/AttributeReference.html#maybe-unused-unused says that this is equivalent to the GNU unused attribute. Signed-off-by:
Rosen Penev <rosenp@gmail.com>
-
Rosen Penev authored
Signed-off-by:
Rosen Penev <rosenp@gmail.com>
-
- 12 Mar, 2020 2 commits
-
-
Rosen Penev authored
The former is deprecated by C++14. It's also functionally the same. From the standard: 19.4 The header<cerrno>is described in Table 43. Its contents are the same as the POSIX header<errno.h>,except that errno shall be defined as a macro. [Note: The intent is to remain in close alignment with the POSIX standard.] A separate errno value shall be provided for each thread. Signed-off-by:
Rosen Penev <rosenp@gmail.com>
-
Rosen Penev authored
The former was deprecated with C++14. According to the C++11 and C++17 standards, both files are identical. Signed-off-by:
Rosen Penev <rosenp@gmail.com>
-