]> git.sesse.net Git - ffmpeg/commitdiff
smoothstreamingenc: Ignore the return value from mkdir
authorMartin Storsjö <martin@martin.st>
Fri, 5 Oct 2012 23:33:32 +0000 (02:33 +0300)
committerMartin Storsjö <martin@martin.st>
Sat, 6 Oct 2012 10:05:34 +0000 (13:05 +0300)
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>
libavformat/smoothstreamingenc.c

index bafed70f461c134e33aa5e0618cb9195013fc831..a8af7118df1acffc27ea934bfb4d21be0c3ac527 100644 (file)
@@ -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) {