From 1661ba09eb455a961243f2a88152ce8fdcb514cc Mon Sep 17 00:00:00 2001 From: wm4 Date: Fri, 5 Feb 2016 23:37:03 +0100 Subject: lavfi: fix build on Libav It doesn't provide this function. The code is not really designed to work without it, so it will probably mess up big time, but at least make it compile again. --- player/lavfi.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/player/lavfi.c b/player/lavfi.c index 118a766ea2..40537c7ba8 100644 --- a/player/lavfi.c +++ b/player/lavfi.c @@ -464,8 +464,10 @@ static void feed_input_pads(struct lavfi *c) pad->input_needed = false; pad->input_eof |= !pad->connected; +#if LIBAVFILTER_VERSION_MICRO >= 100 if (!av_buffersrc_get_nb_failed_requests(pad->buffer)) continue; +#endif if (c->draining_recover_eof || c->draining_new_format) continue; -- cgit v1.2.3