Commit a160ef4b authored by michael's avatar michael

Check url_seek() in url_open().


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@13061 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent bc5e9ef0
......@@ -113,6 +113,12 @@ int url_open(URLContext **puc, const char *filename, int flags)
*puc = NULL;
return err;
}
//We must be carefull here as url_seek() could be slow, for example for http
if( (flags & (URL_WRONLY | URL_RDWR))
|| !strcmp(proto_str, "file"))
if(!uc->is_streamed && url_seek(uc, 0, SEEK_SET) < 0)
uc->is_streamed= 1;
*puc = uc;
return 0;
fail:
......
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