Browse Source

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.
tags/n0.11
Nicolas George 13 years ago
parent
commit
69174fad73
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      libavfilter/vf_thumbnail.c

+ 2
- 2
libavfilter/vf_thumbnail.c View File

@@ -176,11 +176,11 @@ static int request_frame(AVFilterLink *link)


/* loop until a frame thumbnail is available (when a frame is queued, /* loop until a frame thumbnail is available (when a frame is queued,
* thumb->n is reset to zero) */ * thumb->n is reset to zero) */
while (thumb->n) {
do {
int ret = avfilter_request_frame(link->src->inputs[0]); int ret = avfilter_request_frame(link->src->inputs[0]);
if (ret < 0) if (ret < 0)
return ret; return ret;
}
} while (thumb->n);
return 0; return 0;
} }




Loading…
Cancel
Save