Fix printing D-Bus errors when headset record could not be found
Luiz Augusto von Dentz
maintainerPATCH 1/1 Fix printing D-Bus errors when headset record could not be found
From: Luiz Augusto von Dentz <[email protected]>
When connection is started via headset_config_stream there is no D-Bus message to reply to.
--- audio/headset.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-)
audio/headset.c +2 -1
@@ -1445,7 +1445,8 @@ static void get_record_cb(sdp_list_t *recs, int err, gpointer user_data)error ("Unable to get service record: %s (%d)" ,strerror (-err), -err); p->err = -err; -error_connect_failed (dev->conn, p->msg, p->err); +if (p->msg) +error_connect_failed (dev->conn, p->msg, p->err); goto failed; }
Signature · 1 line
1.7.1
Hi Luiz,
Quoted 7 lines · Luiz Augusto von Dentz
From: Luiz Augusto von Dentz <[email protected]>
When connection is started via
headset_config_streamthere is no D-Bus message to reply to.--- audio/headset.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-)
Pushed upstream. Thanks.
Johan