vf: print error if filtering a frame fails

The filters don't always print an error on their own, and printing an
error is better than silently dropping the frame.
This commit is contained in:
wm4 2014-04-30 22:19:38 +02:00
parent 8e8758dbe1
commit 3f0f666d14
1 changed files with 4 additions and 1 deletions

View File

@ -367,7 +367,10 @@ static int vf_do_filter(struct vf_instance *vf, struct mp_image *img)
vf_fix_img_params(img, &vf->fmt_in);
if (vf->filter_ext) {
return vf->filter_ext(vf, img);
int r = vf->filter_ext(vf, img);
if (r < 0)
MP_ERR(vf, "Error filtering frame.\n");
return r;
} else {
if (img) {
if (vf->filter)