- 22 May, 2023 1 commit
-
-
Max Kellermann authored
Let OnHeaders() check the status. The status checking code was added by commit 4f021cbc in 2011, but in 2008, commit a8e81326 enabled `CURLOPT_FAILONERROR`, which means the status checking code never had any effect. This allows `LoadExcludeListOrLog()` to hide boring "404 Not Found" log messages via `IsFileNotFound()`.
-
- 21 May, 2023 1 commit
-
-
Max Kellermann authored
Fixes a busy loop in BufferingInputStream::RunThreadLocked() because the method never learns that seeking is ignored, even though the HTTP stream is already broken and can never be read; nobody cared to check for errors. Closes https://github.com/MusicPlayerDaemon/MPD/issues/1727
-
- 28 Nov, 2022 1 commit
-
-
Max Kellermann authored
These settings do not work if CURL was compiled with CURL_DISABLE_PROXY, and cause error "An unknown option was passed in to libcurl". Fixes regression by commit 7ab0dfc8
-
- 27 Sep, 2022 1 commit
-
-
jcorporation authored
This fixes #1616
-
- 08 Aug, 2022 2 commits
-
-
Max Kellermann authored
Closes https://github.com/MusicPlayerDaemon/MPD/issues/1529
-
Max Kellermann authored
-
- 08 Jul, 2022 11 commits
-
-
Max Kellermann authored
-
Max Kellermann authored
-
Max Kellermann authored
The Read() method is not required to fill the whole buffer. By returning as soon as at least one byte was read, we allow faster cancellation.
-
Max Kellermann authored
-
Max Kellermann authored
If seeking fails, don't leave the class with a wrong offset.
-
Max Kellermann authored
-
Max Kellermann authored
Use "size" instead.
-
Max Kellermann authored
-
Max Kellermann authored
-
Max Kellermann authored
cdio_get_devices_with_cap() can return nullptr if no drive was found, or it can instead return an empty list. The latter caused MPD to crash.
-
Max Kellermann authored
-
- 01 Jul, 2022 1 commit
-
-
Max Kellermann authored
-
- 03 Dec, 2021 2 commits
-
-
Max Kellermann authored
-
Max Kellermann authored
-
- 23 Nov, 2021 2 commits
-
-
Rosen Penev authored
Signed-off-by:
Rosen Penev <rosenp@gmail.com>
-
Rosen Penev authored
Signed-off-by:
Rosen Penev <rosenp@gmail.com>
-
- 19 Nov, 2021 1 commit
-
-
Max Kellermann authored
Fixes building with GCC 12.
-
- 12 Nov, 2021 1 commit
-
-
Rosen Penev authored
SonarLint reports the latter to be better: std::scoped_lock basically provides the same feature as std::lock_guard, but is more generic: It can lock several mutexes at the same time, with a deadlock prevention mechanism (see {rule:cpp:S5524}). The equivalent code to perform simultaneous locking with std::lock_guard is significantly more complex. Therefore, it is simpler to use std::scoped_lock all the time, even when locking only one mutex (there will be no performance impact). Signed-off-by:
Rosen Penev <rosenp@gmail.com>
-
- 04 Nov, 2021 1 commit
-
-
Max Kellermann authored
-
- 22 Oct, 2021 1 commit
-
-
Max Kellermann authored
Without clearing the "uri" field, the next Open() call attempts to reuse the old InputStream, but it has already been closed, so Open() always returns nullptr. Closes https://github.com/MusicPlayerDaemon/MPD/issues/1300
-
- 19 Oct, 2021 1 commit
-
-
Max Kellermann authored
-
- 13 Oct, 2021 2 commits
-
-
Max Kellermann authored
-
Max Kellermann authored
-
- 26 Aug, 2021 1 commit
-
-
Rosen Penev authored
Signed-off-by:
Rosen Penev <rosenp@gmail.com>
-
- 05 Aug, 2021 3 commits
-
-
Max Kellermann authored
-
Max Kellermann authored
-
Max Kellermann authored
This plugin has been defunct for several years. Tidal has not ever replied to any of my emails, so they're apparently not interested in MPD support.
-
- 02 Aug, 2021 1 commit
-
-
Max Kellermann authored
ProxyInputStream::Read() assigns the `offset` field, which is the wrong offset because it does not consider Icy metadata removed from the stream. Therefore, after every ProxyInputStream::Read() call, IcyInputStream::Read() needs to override this offset. This was missing at the end of the stream, when Read()==0. Closes https://github.com/MusicPlayerDaemon/MPD/issues/1216
-
- 25 Jun, 2021 1 commit
-
-
Max Kellermann authored
-
- 24 Jun, 2021 2 commits
-
-
Max Kellermann authored
-
Max Kellermann authored
-
- 31 May, 2021 1 commit
-
-
Rosen Penev authored
Found with cppcoreguidelines-special-member-functions Signed-off-by:
Rosen Penev <rosenp@gmail.com>
-
- 27 May, 2021 2 commits
-
-
Max Kellermann authored
Prevents a possible bug which occurs when the caller-provided open() function throws; then the "uri" field is never set.
-
Max Kellermann authored
Prevent false negative after the stream was closed automatically after 20 seconds.
-