• Christopher Brannon's avatar
    Insure proper initialization of stack-allocated struct. · 2a1f4539
    Christopher Brannon authored
    Version 1.0.0 of the libao library added a new field to the
    ao_sample_format struct.  It is a char * named matrix.  When
    an ao_sample_format is allocated on the stack, this field contains
    garbage.  The proper course is to insure that is initialized to NULL.
    NULL indicates that we do not want any mapping.
    The struct is now initialized using a static initializer, and this
    technique is compatible with all known versions of libao.
    2a1f4539
ao_plugin.c 5.18 KB