mirror of
https://github.com/mpv-player/mpv
synced 2024-12-27 17:42:17 +00:00
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:
parent
6dec78e475
commit
daf4898668
@ -261,7 +261,7 @@ static int filter_ext(struct vf_instance *vf, struct mp_image *mpi)
|
|||||||
pthread_cond_broadcast(&p->wakeup);
|
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];
|
struct mp_image *out = p->requested[0];
|
||||||
if (out->pts != MP_NOPTS_VALUE) {
|
if (out->pts != MP_NOPTS_VALUE) {
|
||||||
double duration = out->pts;
|
double duration = out->pts;
|
||||||
|
Loading…
Reference in New Issue
Block a user