]> git.sesse.net Git - ffmpeg/commit
libavformat: Check mkdir return error codes
authorMartin Storsjö <martin@martin.st>
Fri, 5 Sep 2014 19:45:11 +0000 (22:45 +0300)
committerMartin Storsjö <martin@martin.st>
Sun, 7 Sep 2014 20:20:29 +0000 (23:20 +0300)
commit803e82276b3716bf6012ec69e8854dae14a4fd2b
treef877587fe407bf32eb417899d927f68f8cf60b78
parent041caf1a63f091745b95a6d51c23fbdcb604d4ce
libavformat: Check mkdir return error codes

Previously, the returned error codes were intentionally ignored
(see fadd3a68213), 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: Martin Storsjö <martin@martin.st>
libavformat/hdsenc.c
libavformat/smoothstreamingenc.c