Skip to content
Snippets Groups Projects
  • George Joseph's avatar
    d07c8a05
    codecs: Fix ABI incompatibility created by adding format_name to ast_codec · d07c8a05
    George Joseph authored
    Adding format_name even to the end of ast_codec caused issued with
    binary codec modules because the pointer would be garbage in asterisk
    when they registered.  So, the ast_codec structure was reverted and an
    internal_ast_codec structure was created just for use in codec.c.  A new
    internal-only API was also added (__ast_codec_register_with_format) so
    that codec_builtin could register codecs with the format_name in a
    separate parameter rather than in the ast_codec structure.
    
    ASTERISK-26144 #close
    Reported-by: Alexei Gradinari
    
    Change-Id: I6df1b08f6a6ae089db23adfe1ebc8636330265ba
    d07c8a05
    History
    codecs: Fix ABI incompatibility created by adding format_name to ast_codec
    George Joseph authored
    Adding format_name even to the end of ast_codec caused issued with
    binary codec modules because the pointer would be garbage in asterisk
    when they registered.  So, the ast_codec structure was reverted and an
    internal_ast_codec structure was created just for use in codec.c.  A new
    internal-only API was also added (__ast_codec_register_with_format) so
    that codec_builtin could register codecs with the format_name in a
    separate parameter rather than in the ast_codec structure.
    
    ASTERISK-26144 #close
    Reported-by: Alexei Gradinari
    
    Change-Id: I6df1b08f6a6ae089db23adfe1ebc8636330265ba