[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 07/12] audio/pw: add more details on error
|
From: |
marcandre . lureau |
|
Subject: |
[PATCH 07/12] audio/pw: add more details on error |
|
Date: |
Sat, 6 May 2023 20:37:30 +0400 |
From: Marc-André Lureau <marcandre.lureau@redhat.com>
PipeWire uses errno to report error details.
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
---
audio/pwaudio.c | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/audio/pwaudio.c b/audio/pwaudio.c
index 2b12b40934..d0bc4680a6 100644
--- a/audio/pwaudio.c
+++ b/audio/pwaudio.c
@@ -750,6 +750,7 @@ static int wait_resync(pwaudio *pw)
}
return 0;
}
+
static void
on_core_error(void *data, uint32_t id, int seq, int res, const char *message)
{
@@ -793,19 +794,19 @@ qpw_audio_init(Audiodev *dev)
pw->dev = dev;
pw->thread_loop = pw_thread_loop_new("PipeWire thread loop", NULL);
if (pw->thread_loop == NULL) {
- error_report("Could not create PipeWire loop");
+ error_report("Could not create PipeWire loop: %s", g_strerror(errno));
goto fail;
}
pw->context =
pw_context_new(pw_thread_loop_get_loop(pw->thread_loop), NULL, 0);
if (pw->context == NULL) {
- error_report("Could not create PipeWire context");
+ error_report("Could not create PipeWire context: %s",
g_strerror(errno));
goto fail;
}
if (pw_thread_loop_start(pw->thread_loop) < 0) {
- error_report("Could not start PipeWire loop");
+ error_report("Could not start PipeWire loop: %s", g_strerror(errno));
goto fail;
}
--
2.40.1
- [PATCH 03/12] audio/pw: Pipewire->PipeWire case fix for user-visible text, (continued)
- [PATCH 03/12] audio/pw: Pipewire->PipeWire case fix for user-visible text, marcandre . lureau, 2023/05/06
- [PATCH 04/12] audio/pw: drop needless case statement, marcandre . lureau, 2023/05/06
- [PATCH 05/12] audio/pw: needless check for NULL, marcandre . lureau, 2023/05/06
- [PATCH 06/12] audio/pw: trace during init before calling pipewire API, marcandre . lureau, 2023/05/06
- [PATCH 07/12] audio/pw: add more details on error,
marcandre . lureau <=
- [PATCH 08/12] audio/pw: factorize some common code, marcandre . lureau, 2023/05/06
- [PATCH 09/12] audio/pw: add more error reporting, marcandre . lureau, 2023/05/06
- [PATCH 10/12] audio/pw: simplify error reporting in stream creation, marcandre . lureau, 2023/05/06
- [PATCH 11/12] audio/pw: remove wrong comment, marcandre . lureau, 2023/05/06
- [PATCH 12/12] audio/pw: improve channel position code, marcandre . lureau, 2023/05/06