* [PATCH 1/1] Add sbc cap null case while GST AVDTP Signaling.
@ 2012-04-14 6:05 chanyeol.park
2012-04-14 15:59 ` Marcel Holtmann
0 siblings, 1 reply; 4+ messages in thread
From: chanyeol.park @ 2012-04-14 6:05 UTC (permalink / raw)
To: linux-bluetooth; +Cc: hocheol.seo
From: Chan-yeol Park <chanyeol.park@samsung.com>
Due to RF condition or headset malfunctioning, gst audio plug-in
could not get sbc(mandatory codec) information.
---
audio/gstavdtpsink.c | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
diff --git a/audio/gstavdtpsink.c b/audio/gstavdtpsink.c
index b448d57..1d50914 100644
--- a/audio/gstavdtpsink.c
+++ b/audio/gstavdtpsink.c
@@ -1121,6 +1121,11 @@ static gboolean gst_avdtp_sink_update_caps(GstAvdtpSink *self)
sbc = (void *) gst_avdtp_find_caps(self, BT_A2DP_SBC_SINK);
mpeg = (void *) gst_avdtp_find_caps(self, BT_A2DP_MPEG12_SINK);
+ if(!sbc) {
+ GST_ERROR_OBJECT(self, "Failed to find sbc(mandatory codec)");
+ return FALSE;
+ }
+
sbc_structure = gst_avdtp_sink_parse_sbc_caps(self, sbc);
mpeg_structure = gst_avdtp_sink_parse_mpeg_caps(self, mpeg);
--
1.7.5.4
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH 1/1] Add sbc cap null case while GST AVDTP Signaling.
2012-04-14 6:05 [PATCH 1/1] Add sbc cap null case while GST AVDTP Signaling chanyeol.park
@ 2012-04-14 15:59 ` Marcel Holtmann
2012-04-16 2:59 ` chanyeol.park
0 siblings, 1 reply; 4+ messages in thread
From: Marcel Holtmann @ 2012-04-14 15:59 UTC (permalink / raw)
To: chanyeol.park; +Cc: linux-bluetooth, hocheol.seo
Hi Chan-yeol,
> Due to RF condition or headset malfunctioning, gst audio plug-in
> could not get sbc(mandatory codec) information.
> ---
> audio/gstavdtpsink.c | 5 +++++
> 1 files changed, 5 insertions(+), 0 deletions(-)
>
> diff --git a/audio/gstavdtpsink.c b/audio/gstavdtpsink.c
> index b448d57..1d50914 100644
> --- a/audio/gstavdtpsink.c
> +++ b/audio/gstavdtpsink.c
> @@ -1121,6 +1121,11 @@ static gboolean gst_avdtp_sink_update_caps(GstAvdtpSink *self)
> sbc = (void *) gst_avdtp_find_caps(self, BT_A2DP_SBC_SINK);
> mpeg = (void *) gst_avdtp_find_caps(self, BT_A2DP_MPEG12_SINK);
>
> + if(!sbc) {
space before brackets are not not option. Please follow the coding style
and fix this.
> + GST_ERROR_OBJECT(self, "Failed to find sbc(mandatory codec)");
And please use proper error messages aka "Failed to find mandatory SBC
sink".
> + return FALSE;
> + }
> +
> sbc_structure = gst_avdtp_sink_parse_sbc_caps(self, sbc);
> mpeg_structure = gst_avdtp_sink_parse_mpeg_caps(self, mpeg);
>
Regards
Marcel
^ permalink raw reply [flat|nested] 4+ messages in thread
* [PATCH 1/1] Add sbc cap null case while GST AVDTP Signaling.
2012-04-14 15:59 ` Marcel Holtmann
@ 2012-04-16 2:59 ` chanyeol.park
2012-04-16 10:22 ` Johan Hedberg
0 siblings, 1 reply; 4+ messages in thread
From: chanyeol.park @ 2012-04-16 2:59 UTC (permalink / raw)
To: linux-bluetooth
From: Chan-yeol Park <chanyeol.park@samsung.com>
Due to RF condition or headset malfunctioning, gst audio plug-in
could not get sbc(mandatory codec) information.
---
audio/gstavdtpsink.c | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
diff --git a/audio/gstavdtpsink.c b/audio/gstavdtpsink.c
index b448d57..af04a56 100644
--- a/audio/gstavdtpsink.c
+++ b/audio/gstavdtpsink.c
@@ -1121,6 +1121,11 @@ static gboolean gst_avdtp_sink_update_caps(GstAvdtpSink *self)
sbc = (void *) gst_avdtp_find_caps(self, BT_A2DP_SBC_SINK);
mpeg = (void *) gst_avdtp_find_caps(self, BT_A2DP_MPEG12_SINK);
+ if (!sbc) {
+ GST_ERROR_OBJECT(self, "Failed to find mandatory SBC sink");
+ return FALSE;
+ }
+
sbc_structure = gst_avdtp_sink_parse_sbc_caps(self, sbc);
mpeg_structure = gst_avdtp_sink_parse_mpeg_caps(self, mpeg);
--
1.7.5.4
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH 1/1] Add sbc cap null case while GST AVDTP Signaling.
2012-04-16 2:59 ` chanyeol.park
@ 2012-04-16 10:22 ` Johan Hedberg
0 siblings, 0 replies; 4+ messages in thread
From: Johan Hedberg @ 2012-04-16 10:22 UTC (permalink / raw)
To: chanyeol.park; +Cc: linux-bluetooth
Hi Chan-yeol,
On Mon, Apr 16, 2012, chanyeol.park@samsung.com wrote:
> Due to RF condition or headset malfunctioning, gst audio plug-in
> could not get sbc(mandatory codec) information.
> ---
> audio/gstavdtpsink.c | 5 +++++
> 1 files changed, 5 insertions(+), 0 deletions(-)
Applied. Thanks.
Also, please use v2, v3 etc in the future. It makes it easier for me to
track new patches vs new revisions of existing ones.
Johan
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2012-04-16 10:22 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-04-14 6:05 [PATCH 1/1] Add sbc cap null case while GST AVDTP Signaling chanyeol.park
2012-04-14 15:59 ` Marcel Holtmann
2012-04-16 2:59 ` chanyeol.park
2012-04-16 10:22 ` Johan Hedberg
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.