Commit 69174fad authored by Nicolas George's avatar Nicolas George

vf_thumbnail: forward request_frame at least once.

The current version relied on poll_frame to request
the very first frame, that would not work if the
surrounding code does not call poll_frame.
parent 463705bd
......@@ -176,11 +176,11 @@ static int request_frame(AVFilterLink *link)
/* loop until a frame thumbnail is available (when a frame is queued,
* thumb->n is reset to zero) */
while (thumb->n) {
do {
int ret = avfilter_request_frame(link->src->inputs[0]);
if (ret < 0)
return ret;
}
} while (thumb->n);
return 0;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment