• Martin Storsjö's avatar
    libavutil: Deprecate av_fopen_utf8, provide an avpriv version · 4cdc14aa
    Martin Storsjö authored
    Since every DLL can use an individual CRT on Windows, having
    an exported function that opens a FILE* won't work if that
    FILE* is going to be used from a different DLL (or from user
    application code).
    
    Internally within the libraries, the issue can be worked around
    by duplicating the function in all libraries (this already happened
    implicitly because the function resided in file_open.c) and renaming
    the function to ff_fopen_utf8 (so that it doesn't end up exported from
    the DLLs) and duplicating it in all libraries that use it.
    
    This makes the avpriv_fopen_utf8 / ff_fopen_utf8 function work in
    the exact same way as the existing avpriv_open / ff_open, with the
    same setup as introduced in e743e7ae.
    
    That mechanism doesn't work for external users, thus deprecate the
    existing function.
    Signed-off-by: 's avatarMartin Storsjö <martin@martin.st>
    4cdc14aa
file_open.c 33 Bytes