# HG changeset patch # User reimar # Date 1333564953 0 # Node ID 76ab607371dcb0880fe0383248b280df07c44c64 # Parent 45a8184e4b22c801269d5880eab9000befe4ba9c Use AVIO_FLAG_DIRECT to avoid issues with one more pointless buffering layer. diff -r 45a8184e4b22 -r 76ab607371dc stream/stream_ffmpeg.c --- 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 {