Skip to content

  • Projects
  • Groups
  • Snippets
  • Help
  • This project
    • Loading...
  • Sign in / Register
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
  • Activity
  • Graph
  • Charts
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • Иван Мажукин
  • mpd
  • Repository

Switch branch/tag
  • mpd
  • src
  • output
  • plugins
  • AlsaOutputPlugin.cxx
Find file
BlameHistoryPermalink
  • Max Kellermann's avatar
    output/alsa: add nullptr check for snd_pcm_name() return value · 76b25a13
    Max Kellermann authored Oct 14, 2022
    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:
    https://github.com/alsa-project/alsa-lib/blob/0222f45d11e8b71bf651b985b00fdb0addbf3eed/src/pcm/pcm.c#L2761-L2762
    
    That's ... surprising!
    
    Closes https://github.com/MusicPlayerDaemon/MPD/issues/1645
    76b25a13
AlsaOutputPlugin.cxx 32.8 KB
EditWeb IDE

Replace AlsaOutputPlugin.cxx

Attach a file by drag & drop or click to upload


Cancel
A new branch will be created in your fork and a new merge request will be started.