vf_vapoursynth: avoid unnecessary waiting

It could in theory happen that the filter loop will enter a blocking
wait, even though it could make progress by emptying the list of
already-filtered images. I'm not quite sure if this could actually cause
a real issue - probably not.
This commit is contained in:
wm4 2014-05-14 21:02:56 +02:00
parent 6dec78e475
commit daf4898668
1 changed files with 1 additions and 1 deletions

View File

@ -261,7 +261,7 @@ static int filter_ext(struct vf_instance *vf, struct mp_image *mpi)
pthread_cond_broadcast(&p->wakeup);
}
if (p->requested[0] && p->requested[0] != &dummy_img) {
while (p->requested[0] && p->requested[0] != &dummy_img) {
struct mp_image *out = p->requested[0];
if (out->pts != MP_NOPTS_VALUE) {
double duration = out->pts;