Skip to content

Commit

Permalink
improve error message when pipewire loop creation fails, #561
Browse files Browse the repository at this point in the history
  • Loading branch information
karlstav committed May 14, 2024
1 parent a7adab5 commit e51746e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion input/pipewire.c
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,9 @@ void *input_pipewire(void *audiodata) {
data.loop = pw_main_loop_new(NULL);
if (data.loop == NULL) {
data.cava_audio->terminate = 1;
sprintf(data.cava_audio->error_message, __FILE__ ": Could not create main loop");
sprintf(data.cava_audio->error_message,
__FILE__ ": Could not create main loop. Is your system running pipewire? Maybe try "
"pulse input method instead.");
return 0;
}

Expand Down

0 comments on commit e51746e

Please sign in to comment.