Mercurial > mplayer.hg
changeset 34750:76ab607371dc
Use AVIO_FLAG_DIRECT to avoid issues with one more pointless buffering layer.
author | reimar |
---|---|
date | Wed, 04 Apr 2012 18:42:33 +0000 |
parents | 45a8184e4b22 |
children | 97b5fb86090e |
files | stream/stream_ffmpeg.c |
diffstat | 1 files changed, 7 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/stream/stream_ffmpeg.c Mon Apr 02 13:47:52 2012 +0000 +++ b/stream/stream_ffmpeg.c Wed Apr 04 18:42:33 2012 +0000 @@ -101,6 +101,13 @@ goto out; } +#ifdef AVIO_FLAG_DIRECT + flags |= AVIO_FLAG_DIRECT; +#else + mp_msg(MSGT_OPEN, MSGL_WARN, "[ffmpeg] No support for AVIO_FLAG_DIRECT, might cause performance and other issues.\n" + "Please update to and rebuild against an FFmpeg version supporting it.\n"); +#endif + if (stream->url) filename = stream->url; else {