Commit 71d71170 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont
Browse files

gme: limit to 16 MiB if file size is unknown

Allocating and reading 100 MiB at once for a remote file was a bit
excessive IMHO.
parent 636c11b6
......@@ -88,8 +88,8 @@ static int Open (vlc_object_t *obj)
block_t *data = NULL;
if (size <= 0)
{
data = stream_BlockRemaining (demux->s, 100000000);
if (!data )
data = stream_Block (demux->s, 1 << 24);
if (data == NULL)
return VLC_EGENERIC;
}
......
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