vlc | branch: master | Rémi Denis-Courmont <[email protected]> | Thu Jul 23 22:39:34 2015 +0300| [71d711709c8ad59b7468bc77ab1398ebdf9ff3d8] | committer: Rémi Denis-Courmont
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. > http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=71d711709c8ad59b7468bc77ab1398ebdf9ff3d8 --- modules/demux/gme.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/demux/gme.c b/modules/demux/gme.c index e50bd4a..4baa5a3 100644 --- a/modules/demux/gme.c +++ b/modules/demux/gme.c @@ -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; } _______________________________________________ vlc-commits mailing list [email protected] https://mailman.videolan.org/listinfo/vlc-commits
