summaryrefslogtreecommitdiff
path: root/libavformat
diff options
context:
space:
mode:
authorMartin Storsjö <martin@martin.st>2012-10-06 02:33:32 +0300
committerMartin Storsjö <martin@martin.st>2012-10-06 13:05:34 +0300
commitfadd3a68213833cd3db36e8d5959a641a485c839 (patch)
tree95c15a2279087192c7a2d68dd7392171f0deb185 /libavformat
parent8e2763786dd0ba0e895eafd6959a768608513eb6 (diff)
smoothstreamingenc: Ignore the return value from mkdir
We don't need to return an error if the directory already existed. We make sure that the directory actually is properly writeable later within ism_write_header by writing a manifest anyway. Signed-off-by: Martin Storsjö <martin@martin.st>
Diffstat (limited to 'libavformat')
-rw-r--r--libavformat/smoothstreamingenc.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/libavformat/smoothstreamingenc.c b/libavformat/smoothstreamingenc.c
index bafed70f46..a8af7118df 100644
--- a/libavformat/smoothstreamingenc.c
+++ b/libavformat/smoothstreamingenc.c
@@ -285,12 +285,7 @@ static int ism_write_header(AVFormatContext *s)
int ret = 0, i;
AVOutputFormat *oformat;
- ret = mkdir(s->filename, 0777);
- if (ret) {
- av_log(s, AV_LOG_ERROR, "mkdir(%s): %s\n", s->filename, strerror(errno));
- return AVERROR(errno);
- }
- ret = 0;
+ mkdir(s->filename, 0777);
oformat = av_guess_format("ismv", NULL, NULL);
if (!oformat) {