[pulseaudio-discuss] bluez4 endpoint_select_configuration

Tanu Kaskinen tanu.kaskinen at linux.intel.com
Thu Oct 2 02:48:57 PDT 2014


On Wed, 2014-10-01 at 14:33 +0300, motya wrote:
> Hello, I'm trying to understand endpoint_select_configuration function
> behavior in case of HFP endpoint (module is bluez4-util.c). 
> 
> 
> We create a2dp_sbc_t config (local variable struct);
> 
> Then goes it goes
> 
> 
>     if (dbus_message_has_path(m, ENDPOINT_PATH_HFP_AG) ||
> dbus_message_has_path(m, ENDPOINT_PATH_HFP_HS))
>         goto done;
> 
> 
> Line below is 
> 
>     memset(&config, 0, sizeof(config)); //We don't call this as we go
> to goto label
> 
> 
> In "done:" section we send uninitialized config via dbus.
> 
> Is it intentionally or bug or it is just doesn't matter what we send
> in case of HFP there.

I don't know if it matters what we send in case of HFP, but in any case
I think it's a bug to send uninitialized data.

-- 
Tanu



More information about the pulseaudio-discuss mailing list