Commit 6a8d05cb authored by Derek Buitenhuis's avatar Derek Buitenhuis

Merge commit 'e192cd9c'

* commit 'e192cd9c':
  smoothstreamingenc: do not open the files as read+write
Merged-by: 's avatarDerek Buitenhuis <derek.buitenhuis@gmail.com>
parents 48847ee3 e192cd9c
...@@ -122,7 +122,7 @@ static int64_t ism_seek(void *opaque, int64_t offset, int whence) ...@@ -122,7 +122,7 @@ static int64_t ism_seek(void *opaque, int64_t offset, int whence)
AVDictionary *opts = NULL; AVDictionary *opts = NULL;
os->tail_out = os->out; os->tail_out = os->out;
av_dict_set(&opts, "truncate", "0", 0); av_dict_set(&opts, "truncate", "0", 0);
ret = ffurl_open_whitelist(&os->out, frag->file, AVIO_FLAG_READ_WRITE, ret = ffurl_open_whitelist(&os->out, frag->file, AVIO_FLAG_WRITE,
&os->ctx->interrupt_callback, &opts, os->ctx->protocol_whitelist); &os->ctx->interrupt_callback, &opts, os->ctx->protocol_whitelist);
av_dict_free(&opts); av_dict_free(&opts);
if (ret < 0) { if (ret < 0) {
...@@ -131,7 +131,7 @@ static int64_t ism_seek(void *opaque, int64_t offset, int whence) ...@@ -131,7 +131,7 @@ static int64_t ism_seek(void *opaque, int64_t offset, int whence)
return ret; return ret;
} }
av_dict_set(&opts, "truncate", "0", 0); av_dict_set(&opts, "truncate", "0", 0);
ffurl_open_whitelist(&os->out2, frag->infofile, AVIO_FLAG_READ_WRITE, ffurl_open_whitelist(&os->out2, frag->infofile, AVIO_FLAG_WRITE,
&os->ctx->interrupt_callback, &opts, os->ctx->protocol_whitelist); &os->ctx->interrupt_callback, &opts, os->ctx->protocol_whitelist);
av_dict_free(&opts); av_dict_free(&opts);
ffurl_seek(os->out, offset - frag->start_pos, SEEK_SET); ffurl_seek(os->out, offset - frag->start_pos, SEEK_SET);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment