/errno.patch Secret
Created
June 3, 2019 14:54
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/src/player.c b/src/player.c | |
index 17fe7ed..870aaab 100644 | |
--- a/src/player.c | |
+++ b/src/player.c | |
@@ -333,7 +333,8 @@ static bool openDevice (player_t * const player) { | |
int driver = ao_default_driver_id (); | |
if ((player->aoDev = ao_open_live (driver, &aoFmt, NULL)) == NULL) { | |
- BarUiMsg (player->settings, MSG_ERR, "Cannot open audio device.\n"); | |
+ BarUiMsg (player->settings, MSG_ERR, "Cannot open audio device (error %i).\n", | |
+ errno); | |
return false; | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment