mpd/src
Max Kellermann 76b25a1377 output/alsa: add nullptr check for snd_pcm_name() return value
It is not explicitly documented whether snd_pcm_name() is allowed to
return NULL:
https://www.alsa-project.org/alsa-doc/alsa-lib/group___p_c_m.html#ga5031edc0422df8db1f70af056a12dd77

But apparently this is legal:
0222f45d11/src/pcm/pcm.c (L2761-L2762)

That's ... surprising!

Closes https://github.com/MusicPlayerDaemon/MPD/issues/1645
2022-10-14 23:14:30 +02:00
..
android android/Context: fix typo in assert() variable name 2022-10-14 22:59:39 +02:00
apple apple/Throw: add missing <cstring> header 2022-05-19 09:08:44 +02:00
archive archive/iso9660: fix off-by-one assertion failure 2022-09-06 20:28:33 +02:00
client libfmt 9 support 2022-07-08 10:06:53 +02:00
command mixer/Memento: move IDLE_MIXER out of SetVolume() 2022-08-08 23:32:57 +02:00
config fs/io: move to io/ 2021-12-03 14:35:41 +01:00
db fs/io: move to io/ 2021-12-03 14:35:41 +01:00
decoder decoder/ffmpeg: add libfmt formatter for AVSampleFormat 2022-09-28 11:34:33 +02:00
encoder encoder/flac: only set a serial number for oggflac 2022-09-16 17:58:41 -07:00
event array conversions 2021-11-23 01:38:10 -08:00
filter filter/ReplayGain: invoke the MixerListener after volume change 2022-08-18 14:45:45 +02:00
fs android/Environment: pass JNIEnv to all functions 2022-08-18 18:09:54 +02:00
haiku Haiku: add version info to the resources like win32 does 2019-03-29 14:33:27 +01:00
input Sets the curl proxy ssl verify options to the values of the host configuration options 2022-09-27 20:26:50 +02:00
io fs/io: move to io/ 2021-12-03 14:35:41 +01:00
java java/File: remove assertions to work around -Wtautological-pointer-compare 2022-10-14 23:00:35 +02:00
lib decoder/ffmpeg: add libfmt formatter for AVSampleFormat 2022-09-28 11:34:33 +02:00
mixer mixer/Control: use Mixer::IsGlobal() 2022-08-18 14:33:35 +02:00
neighbor treewide: replace lock_guard with scoped_lock 2021-11-11 17:13:03 -08:00
net net/IPv4Address: add method GetPortBE() 2021-11-26 16:25:43 +01:00
output output/alsa: add nullptr check for snd_pcm_name() return value 2022-10-14 23:14:30 +02:00
pcm more braced init list conversion 2021-12-06 09:16:04 +01:00
player return by braced init list 2021-11-22 23:28:08 -08:00
playlist return by braced init list 2021-11-22 23:28:08 -08:00
protocol manual braced init 2021-11-22 23:30:04 -08:00
queue fs/io: move to io/ 2021-12-03 14:35:41 +01:00
song manual braced init 2021-11-22 23:30:04 -08:00
sticker return by braced init list 2021-11-22 23:28:08 -08:00
storage storage/curl: include cleanup 2022-09-30 18:16:46 +02:00
system system/FatalError: remove obsolete library 2021-10-13 16:53:01 +02:00
tag tag/Id3Picture: fix unaligned access 2022-04-26 21:03:48 +02:00
thread treewide: replace lock_guard with scoped_lock 2021-11-11 17:13:03 -08:00
time time/Parser: remove unused library 2022-09-30 18:17:03 +02:00
unix more [[gnu::...]] attributes 2021-10-13 12:07:05 +02:00
util util/ByteOrder: add class PackedBE32 2022-04-26 21:03:05 +02:00
win32 win32/Win32Main: throw on error 2021-10-13 16:37:56 +02:00
zeroconf meson.build: log_dep is only needed internally 2021-10-23 12:08:43 +02:00
BulkEdit.hxx copyright year 2021 2021-01-01 19:54:28 +01:00
Chrono.hxx copyright year 2021 2021-01-01 19:54:28 +01:00
CommandLine.cxx CommandLine: rename struct options 2021-11-05 08:57:12 +01:00
CommandLine.hxx CommandLine: rename struct options 2021-11-05 08:57:12 +01:00
GitVersion.cxx copyright year 2021 2021-01-01 19:54:28 +01:00
GitVersion.hxx copyright year 2021 2021-01-01 19:54:28 +01:00
Idle.cxx copyright year 2021 2021-01-01 19:54:28 +01:00
Idle.hxx copyright year 2021 2021-01-01 19:54:28 +01:00
IdleFlags.cxx constexpr/std::array conversions 2021-08-16 21:05:56 -07:00
IdleFlags.hxx more [[gnu::...]] attributes 2021-10-13 12:07:05 +02:00
Instance.cxx db/update/InotifyUpdate: convert to class, no global variables 2021-10-13 18:47:56 +02:00
Instance.hxx db/update/InotifyUpdate: convert to class, no global variables 2021-10-13 18:47:56 +02:00
Listen.cxx fs/StandardDirectory: add GetAppRuntimeDir() 2021-10-26 09:30:16 +02:00
Listen.hxx copyright year 2021 2021-01-01 19:54:28 +01:00
LocateUri.cxx more braced init list conversion 2021-12-06 09:16:04 +01:00
LocateUri.hxx copyright year 2021 2021-01-01 19:54:28 +01:00
Log.cxx Log: remove the obsolete printf-style functions 2021-10-13 17:41:19 +02:00
Log.hxx libfmt 9 support 2022-07-08 10:06:53 +02:00
LogBackend.cxx util/StringStrip: use [[gnu::...]] attributes 2021-11-26 16:24:55 +01:00
LogBackend.hxx copyright year 2021 2021-01-01 19:54:28 +01:00
LogInit.cxx LogInit: default to stderr on Windows 2022-09-06 21:04:53 +02:00
LogInit.hxx copyright year 2021 2021-01-01 19:54:28 +01:00
LogLevel.hxx copyright year 2021 2021-01-01 19:54:28 +01:00
Main.cxx Main: load Android mpd.conf from ExternalFilesDir 2022-08-18 18:17:43 +02:00
Main.hxx Main: move top-level exception handler to main() 2021-10-13 16:37:34 +02:00
Mapper.cxx return by braced init list 2021-11-22 23:28:08 -08:00
Mapper.hxx more [[gnu::...]] attributes 2021-10-13 12:07:05 +02:00
MusicBuffer.cxx manual braced init 2021-11-22 23:30:04 -08:00
MusicBuffer.hxx treewide: replace lock_guard with scoped_lock 2021-11-11 17:13:03 -08:00
MusicChunk.cxx copyright year 2021 2021-01-01 19:54:28 +01:00
MusicChunk.hxx more [[gnu::...]] attributes 2021-10-13 12:07:05 +02:00
MusicChunkPtr.cxx copyright year 2021 2021-01-01 19:54:28 +01:00
MusicChunkPtr.hxx copyright year 2021 2021-01-01 19:54:28 +01:00
MusicPipe.cxx treewide: replace lock_guard with scoped_lock 2021-11-11 17:13:03 -08:00
MusicPipe.hxx treewide: replace lock_guard with scoped_lock 2021-11-11 17:13:03 -08:00
Partition.cxx mixer/Volume: refactor to class MixerMemento, per partition 2022-08-08 23:30:27 +02:00
Partition.hxx mixer/Volume: refactor to class MixerMemento, per partition 2022-08-08 23:30:27 +02:00
Permission.cxx Permission: use StringView::Split() 2021-10-26 12:25:47 +02:00
Permission.hxx Permission: refactor getPermissionFromPassword() to return std::optional 2021-10-17 19:58:50 +02:00
PlaylistDatabase.cxx fs/io: move to io/ 2021-12-03 14:35:41 +01:00
PlaylistDatabase.hxx replace TextFile references with LineReader 2021-12-03 14:22:56 +01:00
PlaylistError.cxx copyright year 2021 2021-01-01 19:54:28 +01:00
PlaylistError.hxx copyright year 2021 2021-01-01 19:54:28 +01:00
PlaylistFile.cxx fs/io: move to io/ 2021-12-03 14:35:41 +01:00
PlaylistFile.hxx command/playlist: allow range in playlistdelete 2021-10-25 12:23:37 +02:00
PlaylistPrint.cxx queue/PlaylistEdit: convert start/end parameters to RangeArg 2021-02-15 22:51:09 +01:00
PlaylistPrint.hxx queue/PlaylistEdit: convert start/end parameters to RangeArg 2021-02-15 22:51:09 +01:00
PlaylistSave.cxx fs/io: move to io/ 2021-12-03 14:35:41 +01:00
PlaylistSave.hxx copyright year 2021 2021-01-01 19:54:28 +01:00
PluginUnavailable.hxx copyright year 2021 2021-01-01 19:54:28 +01:00
RemoteTagCache.cxx treewide: replace lock_guard with scoped_lock 2021-11-11 17:13:03 -08:00
RemoteTagCache.hxx RemoteTagCache: use [[gnu::pure]] 2021-10-13 10:31:51 +02:00
RemoteTagCacheHandler.hxx copyright year 2021 2021-01-01 19:54:28 +01:00
ReplayGainConfig.hxx copyright year 2021 2021-01-01 19:54:28 +01:00
ReplayGainGlobal.cxx copyright year 2021 2021-01-01 19:54:28 +01:00
ReplayGainGlobal.hxx copyright year 2021 2021-01-01 19:54:28 +01:00
ReplayGainInfo.cxx copyright year 2021 2021-01-01 19:54:28 +01:00
ReplayGainInfo.hxx more [[gnu::...]] attributes 2021-10-13 12:07:05 +02:00
ReplayGainMode.cxx more [[gnu::...]] attributes 2021-10-13 12:07:05 +02:00
ReplayGainMode.hxx more [[gnu::...]] attributes 2021-10-13 12:07:05 +02:00
SingleMode.cxx more [[gnu::...]] attributes 2021-10-13 12:07:05 +02:00
SingleMode.hxx SingleMode: convert "pure" to "const" 2021-12-03 16:09:34 +01:00
SongLoader.cxx copyright year 2021 2021-01-01 19:54:28 +01:00
SongLoader.hxx more [[gnu::...]] attributes 2021-10-13 12:07:05 +02:00
SongPrint.cxx command/player, ...: use decimal notation 2021-10-18 16:54:53 +02:00
SongPrint.hxx copyright year 2021 2021-01-01 19:54:28 +01:00
SongSave.cxx fs/io: move to io/ 2021-12-03 14:35:41 +01:00
SongSave.hxx replace TextFile references with LineReader 2021-12-03 14:22:56 +01:00
SongUpdate.cxx song/DetachedSong: copy the AudioFormat from LightSong 2021-02-18 22:16:11 +01:00
StateFile.cxx mixer/Volume: refactor to class MixerMemento, per partition 2022-08-08 23:30:27 +02:00
StateFile.hxx more [[gnu::...]] attributes 2021-10-13 12:07:05 +02:00
StateFileConfig.cxx copyright year 2021 2021-01-01 19:54:28 +01:00
StateFileConfig.hxx copyright year 2021 2021-01-01 19:54:28 +01:00
Stats.cxx client/Response: add method Fmt() based on libfmt 2021-05-25 16:01:56 +02:00
Stats.hxx copyright year 2021 2021-01-01 19:54:28 +01:00
TagAny.cxx TagAny: support CUE tracks 2022-03-14 18:42:31 +01:00
TagAny.hxx copyright year 2021 2021-01-01 19:54:28 +01:00
TagArchive.cxx copyright year 2021 2021-01-01 19:54:28 +01:00
TagArchive.hxx copyright year 2021 2021-01-01 19:54:28 +01:00
TagFile.cxx copyright year 2021 2021-01-01 19:54:28 +01:00
TagFile.hxx copyright year 2021 2021-01-01 19:54:28 +01:00
TagPrint.cxx command/player, ...: use decimal notation 2021-10-18 16:54:53 +02:00
TagPrint.hxx copyright year 2021 2021-01-01 19:54:28 +01:00
TagSave.cxx fs/io: move to io/ 2021-12-03 14:35:41 +01:00
TagSave.hxx copyright year 2021 2021-01-01 19:54:28 +01:00
TagStream.cxx Merge branch 'v0.22.x' 2021-01-01 19:59:15 +01:00
TagStream.hxx copyright year 2021 2021-01-01 19:54:28 +01:00
TimePrint.cxx protocol/ArgParser: add function MakeArgError() 2021-05-27 16:01:44 +02:00
TimePrint.hxx copyright year 2021 2021-01-01 19:54:28 +01:00
ls.cxx client/Response: add method Fmt() based on libfmt 2021-05-25 16:01:56 +02:00
ls.hxx more [[gnu::...]] attributes 2021-10-13 12:07:05 +02:00
open.h copyright year 2021 2021-01-01 19:54:28 +01:00