mirror of https://github.com/mpv-player/mpv
disable caching
This commit is contained in:
parent
74a2c0fb7f
commit
824bdd8977
|
@ -76,7 +76,7 @@ struct priv {
|
||||||
static int64_t get_size(stream_t *s)
|
static int64_t get_size(stream_t *s)
|
||||||
{
|
{
|
||||||
struct priv *p = s->priv;
|
struct priv *p = s->priv;
|
||||||
if (p->cached_size == -2) {
|
//if (p->cached_size == -2) {
|
||||||
int64_t size = -1;
|
int64_t size = -1;
|
||||||
struct stat st;
|
struct stat st;
|
||||||
if (fstat(p->fd, &st) == 0) {
|
if (fstat(p->fd, &st) == 0) {
|
||||||
|
@ -85,7 +85,7 @@ static int64_t get_size(stream_t *s)
|
||||||
size = st.st_size < 0 ? -1 : st.st_size;
|
size = st.st_size < 0 ? -1 : st.st_size;
|
||||||
}
|
}
|
||||||
p->cached_size = size;
|
p->cached_size = size;
|
||||||
}
|
//}
|
||||||
return p->cached_size;
|
return p->cached_size;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue