[pulseaudio-discuss] [PATCH 2/2] alsa-mixer: Free the description key in alsa_path_free().

poljar (Damir Jelić) poljarinho at gmail.com
Wed Dec 25 01:54:44 PST 2013


On Wed, Dec 25, 2013 at 10:07:07AM +0100, Peter Meerwald wrote:
> 
> description_key is never set as far as I see; probably this attribute 
> should be dropped alltogether
> 

description_key is set in pa_alsa_path_new():

    items[0].data = &p->priority;
    items[1].data = &p->description_key;
    items[2].data = &p->description;
    items[3].data = &mute_during_activation;
    items[4].data = &p->eld_device;

    if (!paths_dir)
        paths_dir = get_default_paths_dir();

    fn = pa_maybe_prefix_path(fname, paths_dir);

    r = pa_config_parse(fn, NULL, items, p->proplist, p);

pa_config_parse sets the description_key either to NULL or to some
malloced string. If the alsa mixer path doesn't contain a description-key it will
be NULL.

See this commit for more info 3c1ca6d4b881863b41154b561591cf0a68230c16.


More information about the pulseaudio-discuss mailing list