2011-11-16 12:58:26

by Mikel Astiz

[permalink] [raw]
Subject: [PATCH 2/3] media: sep registration fix

---
audio/media.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/audio/media.c b/audio/media.c
index e5373b8..612408c 100644
--- a/audio/media.c
+++ b/audio/media.c
@@ -659,7 +659,7 @@ static struct media_endpoint
*media_endpoint_create(struct media_adapter *adapte
goto failed;
} else if (strcasecmp(uuid, A2DP_SINK_UUID) == 0) {
endpoint->sep = a2dp_add_sep(&adapter->src,
- AVDTP_SEP_TYPE_SOURCE, codec,
+ AVDTP_SEP_TYPE_SINK, codec,
delay_reporting, &a2dp_endpoint,
endpoint, a2dp_destroy_endpoint, err);
if (endpoint->sep == NULL)
--
1.7.6.4




2011-11-16 13:25:49

by Luiz Augusto von Dentz

[permalink] [raw]
Subject: Re: [PATCH 2/3] media: sep registration fix

Hi Mikel,

On Wed, Nov 16, 2011 at 2:58 PM, Mikel Astiz <[email protected]> wrote:
> ---
> ?audio/media.c | ? ?2 +-
> ?1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/audio/media.c b/audio/media.c
> index e5373b8..612408c 100644
> --- a/audio/media.c
> +++ b/audio/media.c
> @@ -659,7 +659,7 @@ static struct media_endpoint
> *media_endpoint_create(struct media_adapter *adapte
> ? ? ? ? ? ? ? ? ? ? ? ?goto failed;
> ? ? ? ?} else if (strcasecmp(uuid, A2DP_SINK_UUID) == 0) {
> ? ? ? ? ? ? ? ?endpoint->sep = a2dp_add_sep(&adapter->src,
> - ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? AVDTP_SEP_TYPE_SOURCE, codec,
> + ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? AVDTP_SEP_TYPE_SINK, codec,
> ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?delay_reporting, &a2dp_endpoint,
> ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?endpoint, a2dp_destroy_endpoint,
> err);
> ? ? ? ? ? ? ? ?if (endpoint->sep == NULL)
> --
> 1.7.6.4

Nice catch, ack.

--
Luiz Augusto von Dentz