mirror of
https://github.com/mpv-player/mpv
synced 2025-01-19 22:01:10 +00:00
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:
parent
8e8758dbe1
commit
3f0f666d14
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user