Skip to content

Commit

Permalink
fix crash on pulseaudio
Browse files Browse the repository at this point in the history
  • Loading branch information
Vendicated committed Oct 14, 2023
1 parent 6a013af commit f16ccf9
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/patchbay.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#include "patchbay.impl.hpp"
#include <dlfcn.h>

namespace vencord
{
Expand Down Expand Up @@ -28,6 +29,13 @@ namespace vencord

if (!instance)
{
auto handle = dlopen("libpipewire-0.3.so", RTLD_LAZY);
if (!handle)
{
throw std::runtime_error("libpipewire is not available");
}
dlclose(handle);

instance = std::unique_ptr<patchbay>(new patchbay);
}

Expand Down

0 comments on commit f16ccf9

Please sign in to comment.