1. 12 Nov, 2021 1 commit
    • Rosen Penev's avatar
      treewide: replace lock_guard with scoped_lock · 4e0e4c00
      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: 's avatarRosen Penev <rosenp@gmail.com>
      4e0e4c00
  2. 11 Nov, 2021 10 commits
  3. 10 Nov, 2021 1 commit
    • 0xC0ncord's avatar
      output/plugins: fix build error with clang and -stdlib=libc++ · 061dd2df
      0xC0ncord authored
      This fixes this build error observed with clang and -stdlib=libc++:
      
      ../mpd-0.23.3/src/output/plugins/PipeWireOutputPlugin.cxx:661:55: error: implicit instantiation of undefined template 'std::array<std::byte, 64>'
              std::array<std::byte, MAX_CHANNELS * MAX_INTERLEAVE> buffer;
                                                                   ^
      /usr/include/c++/v1/__tuple:219:64: note: template is declared here
      template <class _Tp, size_t _Size> struct _LIBCPP_TEMPLATE_VIS array;
                                                                     ^
      061dd2df
  4. 09 Nov, 2021 1 commit
  5. 08 Nov, 2021 2 commits
    • Max Audron's avatar
      upnp: add option to configure interface for db plugin · 6f81bb4b
      Max Audron authored
      Add an option to the UPnP database plugin to configure which interface
      is used by upnp to discover servers.
      
      upnp by default selects the first interface that is not loopback, which
      in some cases might not be the desired interface. For example if wanting
      to access a DLNA server over a VPN connection.
      
      The "interface" option can now be set to the name of the desired
      interface to achieve this.
      
      The default behaviour remains unchanged.
      6f81bb4b
    • Max Audron's avatar
      upnp: expose interface configuration on UpnpInit2() · 4ed60a57
      Max Audron authored
      Adds the Interface Name as an argument to the *Init functions to make it
      possible to select which interface is used by upnp to detect servers.
      
      Currently "nullptr" is passed in to let the upnp library select an
      interface, as before.
      4ed60a57
  6. 05 Nov, 2021 6 commits
  7. 04 Nov, 2021 8 commits
  8. 03 Nov, 2021 1 commit
  9. 31 Oct, 2021 10 commits