Skip to content

Commit

Permalink
[audio] Fix crash when pipewire.so is present but daemon not running
Browse files Browse the repository at this point in the history
  • Loading branch information
jcelerier committed Aug 20, 2023
1 parent 3adabff commit 524806a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/plugins/score-plugin-audio/Audio/PipeWireInterface.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -147,8 +147,7 @@ void PipeWireAudioFactory::setupSettingsWidget(
m_client = std::make_shared<ossia::pipewire_context>();
}

auto loop = m_client->main_loop;
if(!loop)
if(!m_client->registry)
{
on_noPipeWire();
return;
Expand Down

0 comments on commit 524806a

Please sign in to comment.