Author: reimar Date: Wed Apr 4 20:42:33 2012 New Revision: 34838 Log: Use AVIO_FLAG_DIRECT to avoid issues with one more pointless buffering layer. Modified: trunk/stream/stream_ffmpeg.c Modified: trunk/stream/stream_ffmpeg.c ============================================================================== --- trunk/stream/stream_ffmpeg.c Mon Apr 2 15:47:52 2012 (r34837) +++ trunk/stream/stream_ffmpeg.c Wed Apr 4 20:42:33 2012 (r34838) @@ -101,6 +101,13 @@ static int open_f(stream_t *stream, int 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 {
participants (1)
-
reimar