• Martin Storsjö's avatar
    libavformat: Check mkdir return error codes · 803e8227
    Martin Storsjö authored
    Previously, the returned error codes were intentionally ignored
    (see fadd3a68), to avoid aborting if the directory already
    existed. If the mkdir actually failed, this was caught when
    opening files within the directory fails anyway.
    
    By handling the error code here (but explicitly ignoring EEXIST),
    the error messages and return codes in these cases are more
    appropriate and less confusing.
    Signed-off-by: 's avatarMartin Storsjö <martin@martin.st>
    803e8227
hdsenc.c 19.2 KB