[pulseaudio-commits] src/cardwidget.cc src/pavucontrol.cc
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Sat Feb 27 14:44:41 UTC 2021
src/cardwidget.cc | 2 +-
src/pavucontrol.cc | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
New commits:
commit 1515492168edc2585768da0d733b85bc0dab5a07
Author: Igor V. Kovalenko <igor.v.kovalenko at gmail.com>
Date: Sat Feb 27 15:12:46 2021 +0300
card: do not quit on error sending message to object
Server API versions < 35 do not support PA_COMMAND_SEND_OBJECT_MESSAGE
one of these is current Pipewire pulseaudio server.
Do not quit on error sending message to object, this is already handled as if
send message API is not available.
Part-of: <https://gitlab.freedesktop.org/pulseaudio/pavucontrol/-/merge_requests/57>
diff --git a/src/cardwidget.cc b/src/cardwidget.cc
index a9e4727..089768e 100644
--- a/src/cardwidget.cc
+++ b/src/cardwidget.cc
@@ -141,7 +141,7 @@ void CardWidget::onCodecChange() {
if (!(o = pa_context_send_message_to_object(get_context(), card_bluez_message_handler_path(pulse_card_name).c_str(),
"switch-codec", codec_message.c_str(), NULL, NULL))) {
- show_error(_("pa_context_set_card_profile_by_index() failed"));
+ g_debug(_("pa_context_send_message_to_object() failed: %s"), pa_strerror(pa_context_errno(get_context())));
return;
}
diff --git a/src/pavucontrol.cc b/src/pavucontrol.cc
index 0d74ee8..e735622 100644
--- a/src/pavucontrol.cc
+++ b/src/pavucontrol.cc
@@ -155,7 +155,7 @@ template<typename U> void send_message(pa_context *c, const char *target, const
if (!o) {
delete send_message_userdata;
- show_error(_("pa_context_send_message_to_object() failed"));
+ g_debug(_("pa_context_send_message_to_object() failed: %s"), pa_strerror(pa_context_errno(context)));
return;
}
pa_operation_unref(o);
More information about the pulseaudio-commits
mailing list